SessionUsBankAccount.fromJson constructor

SessionUsBankAccount.fromJson(
  1. Object? json
)

Implementation

factory SessionUsBankAccount.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SessionUsBankAccount(
    financialConnections: map['financial_connections'] == null
        ? null
        : SessionFinancialConnections.fromJson(map['financial_connections']),
    setupFutureUsage: map['setup_future_usage'] == null
        ? null
        : CheckoutAcssDebitPaymentMethodOptionsSetupFutureUsage.fromJson(
            map['setup_future_usage']),
    verificationMethod: map['verification_method'] == null
        ? null
        : CheckoutUsBankAccountPaymentMethodOptionsVerificationMethod
            .fromJson(map['verification_method']),
  );
}