SetupIntentPaymentMethodOptionsUsBankAccount.fromJson constructor

SetupIntentPaymentMethodOptionsUsBankAccount.fromJson(
  1. Object? json
)

Implementation

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