CreditCard.fromJson constructor

CreditCard.fromJson(
  1. Map json
)

Implementation

factory CreditCard.fromJson(Map<dynamic, dynamic> json) {
  return CreditCard(
      addressCity: json['addressCity'],
      addressCountry: json['addressCountry'],
      addressLine1: json['addressLine1'],
      addressLine2: json['addressLine2'],
      addressState: json['addressState'],
      addressZip: json['addressZip'],
      brand: json['brand'],
      cardId: json['cardId'],
      currency: json['currency'],
      country: json['country'],
      expMonth: json['expMonth'],
      expYear: json['expYear'],
      funding: json['funding'],
      last4: json['last4'],
      name: json['name'],
      cvc: json['cvc'],
      number: json['number'],
      token: json['token']);
}