PaymentIntentPaymentMethodOptionsUsBankAccount.fromJson constructor

PaymentIntentPaymentMethodOptionsUsBankAccount.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentPaymentMethodOptionsUsBankAccount.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentPaymentMethodOptionsUsBankAccount(
    financialConnections: map['financial_connections'] == null
        ? null
        : LinkedAccountOptionsUsBankAccount.fromJson(
            map['financial_connections']),
    mandateOptions: map['mandate_options'] == null
        ? null
        : PaymentMethodOptionsUsBankAccountMandateOptions.fromJson(
            map['mandate_options']),
    preferredSettlementSpeed: map['preferred_settlement_speed'] == null
        ? null
        : PaymentIntentPaymentMethodOptionsUsBankAccountPreferredSettlementSpeed
            .fromJson(map['preferred_settlement_speed']),
    setupFutureUsage: map['setup_future_usage'] == null
        ? null
        : CheckoutAcssDebitPaymentMethodOptionsSetupFutureUsage.fromJson(
            map['setup_future_usage']),
    verificationMethod: map['verification_method'] == null
        ? null
        : CheckoutAcssDebitPaymentMethodOptionsVerificationMethod.fromJson(
            map['verification_method']),
  );
}