Card.virtualCardFromJson constructor

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

Implementation

factory Card.virtualCardFromJson(Map<String, dynamic> json) {
  return Card.virtual(
      cardNumber: json["card_pan"],
      nameOnCard: json["name_on_card"],
      expiryDate: json["expiration"],
      cvv: json["cvv"],
      city: json["city"],
      state: json["state"],
      address_1: json["address_1"],
      address_2: json["address_2"]
  );
}