Map<String, dynamic> toJson() { final json = <String, dynamic>{}; json[r'type'] = this.type; json[r'code'] = this.code; return json; }