toJson abstract method

Map<String, dynamic> toJson()

Convert this preset value to its encodable hashmap of String to it's encodable data. Override this method to declare how this field can be converted to it's encodable version.

Implementation

Map<String, dynamic> toJson();