PaymentMethodUsBankAccount.fromJson constructor
PaymentMethodUsBankAccount.fromJson(
- Object? json
Implementation
factory PaymentMethodUsBankAccount.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodUsBankAccount(
accountHolderType: map['account_holder_type'] == null
? null
: InboundTransfersPaymentMethodDetailsUsBankAccountAccountHolderType
.fromJson(map['account_holder_type']),
accountType: map['account_type'] == null
? null
: InboundTransfersPaymentMethodDetailsUsBankAccountAccountType
.fromJson(map['account_type']),
bankName: map['bank_name'] == null ? null : (map['bank_name'] as String),
financialConnectionsAccount: map['financial_connections_account'] == null
? null
: (map['financial_connections_account'] as String),
fingerprint:
map['fingerprint'] == null ? null : (map['fingerprint'] as String),
last4: map['last4'] == null ? null : (map['last4'] as String),
networks: map['networks'] == null
? null
: PaymentMethodUsBankAccountNetworks.fromJson(map['networks']),
routingNumber: map['routing_number'] == null
? null
: (map['routing_number'] as String),
statusDetails: map['status_details'] == null
? null
: PaymentMethodUsBankAccountStatusDetails.fromJson(
map['status_details']),
);
}