toJson method

Map<String, String> toJson()

Returns a representation of this object as a JSON object.

Implementation

Map<String, String> toJson() {
  return <String, String>{
    'type': type,
    'subtype': subtype,
  };
}