toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['cardId'] = this.cardId;
  data['paymentCardId'] = this.paymentCardId;
  data['cardHolderName'] = this.cardHolderName;
  data['cardBrand'] = this.cardBrand;
  data['cardExpMonth'] = this.cardExpMonth;
  data['cardExpYear'] = this.cardExpYear;
  data['cardLast4'] = this.cardLast4;
  data['timestamp'] = this.timestamp;
  data['gateway'] = this.gateway;
  data['setAsDefault'] = this.setAsDefault;
  return data;
}