CreditCard.fromJson constructor

CreditCard.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CreditCard.fromJson(Map<String, dynamic> json) {
  return CreditCard(
    number: json['number'] as String,
    name: json['name'] as String,
    expiryMonth: json['expiryMonth'] as String,
    expiryYear: json['expiryYear'] as String,
    cvc: json['cvc'] as String,
  );
}