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