CardData.fromJson constructor

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

Implementation

factory CardData.fromJson(Map<String, dynamic> json) => CardData(
      id: json["id"],
      bin: json["bin"],
      maskedCard: json["masked_card"],
      expiryMonth: json["expiry_month"],
      expiryYear: json["expiry_year"],
      nickname: json["nickname"],
      brand: json["brand"],
      cardType: json["card_type"],
      customer: json["customer"] == null
          ? null
          : Customer.fromJson(json["customer"]),
    );