PaymentIntentUsBankAccount.fromJson constructor
PaymentIntentUsBankAccount.fromJson(
- Object? json
Implementation
factory PaymentIntentUsBankAccount.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentUsBankAccount(
accountHolderType: map['account_holder_type'] == null
? null
: IssuingCardholderType.fromJson(map['account_holder_type']),
accountNumber: map['account_number'] == null
? null
: (map['account_number'] as String),
accountType: map['account_type'] == null
? null
: PaymentIntentAccountType.fromJson(map['account_type']),
financialConnectionsAccount: map['financial_connections_account'] == null
? null
: (map['financial_connections_account'] as String),
routingNumber: map['routing_number'] == null
? null
: (map['routing_number'] as String),
);
}