@override Map<String, dynamic> toJson() { final json = <String, dynamic>{}; json['type'] = type; return json; }