CreditCard.fromJson constructor
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,
);
}