encode property
SelfEncodable
get
encode
Returns an Encodable that can encode a map of K
and T
.
This let's you use any format extensions directly on a Map of Encodables:
final Map<String, Person> people = ...;
final String json = people.encode.toJson();
Implementation
SelfEncodable get encode => MapSelfEncodable(this);