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