TreasuryFinancialAccountFeatures.fromJson constructor

TreasuryFinancialAccountFeatures.fromJson(
  1. Object? json
)

Implementation

factory TreasuryFinancialAccountFeatures.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TreasuryFinancialAccountFeatures(
    cardIssuing: map['card_issuing'] == null
        ? null
        : TreasuryFinancialAccountsResourceToggleSettings.fromJson(
            map['card_issuing']),
    depositInsurance: map['deposit_insurance'] == null
        ? null
        : TreasuryFinancialAccountsResourceToggleSettings.fromJson(
            map['deposit_insurance']),
    financialAddresses: map['financial_addresses'] == null
        ? null
        : TreasuryFinancialAccountsResourceFinancialAddressesFeatures
            .fromJson(map['financial_addresses']),
    inboundTransfers: map['inbound_transfers'] == null
        ? null
        : TreasuryFinancialAccountsResourceInboundTransfers.fromJson(
            map['inbound_transfers']),
    intraStripeFlows: map['intra_stripe_flows'] == null
        ? null
        : TreasuryFinancialAccountsResourceToggleSettings.fromJson(
            map['intra_stripe_flows']),
    outboundPayments: map['outbound_payments'] == null
        ? null
        : TreasuryFinancialAccountsResourceOutboundPayments.fromJson(
            map['outbound_payments']),
    outboundTransfers: map['outbound_transfers'] == null
        ? null
        : TreasuryFinancialAccountsResourceOutboundTransfers.fromJson(
            map['outbound_transfers']),
  );
}