toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.addressCity != null) data['addressCity'] = this.addressCity;
if (this.addressCountry != null) data['addressCountry'] = this.addressCountry;
data['addressLine1'] = this.addressLine1;
data['addressLine2'] = this.addressLine2;
if (this.addressState != null) data['addressState'] = this.addressState;
if (this.addressZip != null) data['addressZip'] = this.addressZip;
if (this.brand != null) data['brand'] = this.brand;
if (this.cardId != null) data['cardId'] = this.cardId;
if (this.country != null) data['country'] = this.country;
if (this.expMonth != null) data['expMonth'] = this.expMonth;
if (this.expYear != null) data['expYear'] = this.expYear;
if (this.funding != null) data['funding'] = this.funding;
if (this.currency != null) data['currency'] = this.currency;
data['last4'] = this.last4;
if (this.name != null) data['name'] = this.name;
if (this.number != null) data['number'] = this.number;
if (this.cvc != null) data['cvc'] = this.cvc;
if (this.token != null) data['token'] = this.token;
return data;
}