InvoicePaymentMethodOptionsUsBankAccount.fromJson constructor

InvoicePaymentMethodOptionsUsBankAccount.fromJson(
  1. Object? json
)

Implementation

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