toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of this Object in the data type used by jsonDecode.