toJson abstract method

Map<String, dynamic> toJson()

Returns a map of properties.

This should really be named toMap, but this is the name of a method that json.encode calls on objects that are not encodable.

Implementation

Map<String, dynamic> toJson();