PaymentMethodData.fromJson constructor

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

Implementation

factory PaymentMethodData.fromJson(Map<String, dynamic> json) =>
    PaymentMethodData(
      id: json["id"],
      type: json["type"],
      address: Address.fromJson(json["address"]),
      name: json["name"],
      last4: json["last4"],
      expirationYear: json["expiration_year"],
      expirationMonth: json["expiration_month"],
      fingerprintToken: json["fingerprint_token"],
    );