Converts the instance to a Map<String, dynamic> for JSON encoding.
Map<String, dynamic>
Map<String, dynamic> toJson() => {"source": source, "type": _type};