Card.fromJson constructor

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

Implementation

factory Card.fromJson(Map<String, dynamic> json) {
  return Card(
    cardNumber: json["card_pan"],
    cvv: json["cvv"],
    expiryMonth: json["expiry_month"],
    expiryYear: json["expiry_year"]
  );
}