FundingInstructionsBankTransferFinancialAddress.fromJson constructor

FundingInstructionsBankTransferFinancialAddress.fromJson(
  1. Object? json
)

Implementation

factory FundingInstructionsBankTransferFinancialAddress.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return FundingInstructionsBankTransferFinancialAddress(
    aba: map['aba'] == null
        ? null
        : FundingInstructionsBankTransferAbaRecord.fromJson(map['aba']),
    iban: map['iban'] == null
        ? null
        : FundingInstructionsBankTransferIbanRecord.fromJson(map['iban']),
    sortCode: map['sort_code'] == null
        ? null
        : FundingInstructionsBankTransferSortCodeRecord.fromJson(
            map['sort_code']),
    spei: map['spei'] == null
        ? null
        : FundingInstructionsBankTransferSpeiRecord.fromJson(map['spei']),
    supportedNetworks: map['supported_networks'] == null
        ? null
        : (map['supported_networks'] as List<Object?>)
            .map((el) =>
                FundingInstructionsBankTransferFinancialAddressSupportedNetworksItem
                    .fromJson(el))
            .toList(),
    swift: map['swift'] == null
        ? null
        : FundingInstructionsBankTransferSwiftRecord.fromJson(map['swift']),
    type: FundingInstructionsBankTransferFinancialAddressType.fromJson(
        map['type']),
    zengin: map['zengin'] == null
        ? null
        : FundingInstructionsBankTransferZenginRecord.fromJson(map['zengin']),
  );
}