toJson method

Map<String, dynamic> toJson()

Converts the instance to a Map<String, dynamic> for JSON encoding.

Implementation

Map<String, dynamic> toJson() => {"source": source, "type": _type};