Returns a representation of this object as a JSON object.
Map<String, String> toJson() { return <String, String>{ 'type': type, 'subtype': subtype, }; }