toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.amount != null) data['amount'] = this.amount;
if (this.currency != null) data['currency'] = this.currency;
if (this.returnURL != null) data['returnURL'] = this.returnURL;
if (this.type != null) data['type'] = this.type;
if (this.name != null) data['name'] = this.name;
if (this.statementDescriptor != null) data['statement_descriptor'] = this.statementDescriptor;
if (this.country != null) data['country'] = this.country;
if (this.email != null) data['email'] = this.email;
if (this.card != null) data['card'] = this.card!.toJson();
return data;
}