JsonEncoder const constructor
const JsonEncoder(Creates a JSON encoder.
The JSON encoder handles numbers, strings, booleans, null, lists and maps with string keys directly.
Any other object is attempted converted by toEncodable
to an object that is of one of the convertible types.
If toEncodable
is omitted, it defaults to calling .toJson()
on the object.
Source
const JsonEncoder([toEncodable(object)]) : this.indent = null, this._toEncodable = toEncodable;
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-convert/JsonEncoder/JsonEncoder.html