SetupAttemptPaymentMethodDetailsCardWallet.fromJson constructor

SetupAttemptPaymentMethodDetailsCardWallet.fromJson(
  1. Object? json
)

Implementation

factory SetupAttemptPaymentMethodDetailsCardWallet.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SetupAttemptPaymentMethodDetailsCardWallet(
    applePay: map['apple_pay'] == null
        ? null
        : PaymentMethodDetailsCardWalletApplePay.fromJson(map['apple_pay']),
    googlePay: map['google_pay'] == null
        ? null
        : PaymentMethodDetailsCardWalletGooglePay.fromJson(map['google_pay']),
    type:
        SetupAttemptPaymentMethodDetailsCardWalletType.fromJson(map['type']),
  );
}