TreasuryFinancialAccountsResourceFinancialAddress.fromJson constructor

TreasuryFinancialAccountsResourceFinancialAddress.fromJson(
  1. Object? json
)

Implementation

factory TreasuryFinancialAccountsResourceFinancialAddress.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TreasuryFinancialAccountsResourceFinancialAddress(
    aba: map['aba'] == null
        ? null
        : TreasuryFinancialAccountsResourceAbaRecord.fromJson(map['aba']),
    supportedNetworks: map['supported_networks'] == null
        ? null
        : (map['supported_networks'] as List<Object?>)
            .map((el) =>
                OutboundPaymentsPaymentMethodDetailsUsBankAccountNetwork
                    .fromJson(el))
            .toList(),
  );
}