toJson method

Map<String, String> toJson ()

Returns the JSON representation.

Implementation

Map<String, String> toJson() => {'type': type, 'id': id};