toJson method

Map<String, dynamic> toJson()

Serializes this instance to a JSON object.

Implementation

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