PaymentIntentCreateOptionsPaymentMethodOptionsUsBankAccount.fromJson constructor

PaymentIntentCreateOptionsPaymentMethodOptionsUsBankAccount.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentCreateOptionsPaymentMethodOptionsUsBankAccount.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentCreateOptionsPaymentMethodOptionsUsBankAccount(
    financialConnections: map['financial_connections'] == null
        ? null
        : PaymentIntentFinancialConnections.fromJson(
            map['financial_connections']),
    mandateOptions: map['mandate_options'] == null
        ? null
        : PaymentIntentCreateOptionsPaymentMethodOptionsUsBankAccountMandateOptions
            .fromJson(map['mandate_options']),
    networks: map['networks'] == null
        ? null
        : PaymentIntentNetworks.fromJson(map['networks']),
    preferredSettlementSpeed: map['preferred_settlement_speed'] == null
        ? null
        : PaymentIntentPreferredSettlementSpeed.fromJson(
            map['preferred_settlement_speed']),
    setupFutureUsage: map['setup_future_usage'] == null
        ? null
        : PaymentIntentSetupFutureUsage.fromJson(map['setup_future_usage']),
    verificationMethod: map['verification_method'] == null
        ? null
        : CheckoutAcssDebitPaymentMethodOptionsVerificationMethod.fromJson(
            map['verification_method']),
  );
}