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.
toMap
Map<String, dynamic> toJson();