TreasuryFinancialAccountUpdateFeaturesOptions.fromJson constructor

TreasuryFinancialAccountUpdateFeaturesOptions.fromJson(
  1. Object? json
)

Implementation

factory TreasuryFinancialAccountUpdateFeaturesOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TreasuryFinancialAccountUpdateFeaturesOptions(
    cardIssuing: map['card_issuing'] == null
        ? null
        : FinancialAccountCardIssuing.fromJson(map['card_issuing']),
    depositInsurance: map['deposit_insurance'] == null
        ? null
        : FinancialAccountCardIssuing.fromJson(map['deposit_insurance']),
    expand: map['expand'] == null
        ? null
        : (map['expand'] as List<Object?>)
            .map((el) => (el as String))
            .toList(),
    financialAddresses: map['financial_addresses'] == null
        ? null
        : FinancialAccountFinancialAddresses.fromJson(
            map['financial_addresses']),
    inboundTransfers: map['inbound_transfers'] == null
        ? null
        : FinancialAccountInboundTransfers.fromJson(map['inbound_transfers']),
    intraStripeFlows: map['intra_stripe_flows'] == null
        ? null
        : FinancialAccountCardIssuing.fromJson(map['intra_stripe_flows']),
    outboundPayments: map['outbound_payments'] == null
        ? null
        : FinancialAccountOutboundPayments.fromJson(map['outbound_payments']),
    outboundTransfers: map['outbound_transfers'] == null
        ? null
        : FinancialAccountOutboundPayments.fromJson(
            map['outbound_transfers']),
  );
}