FundingInstructionsBankTransfer.fromJson constructor

FundingInstructionsBankTransfer.fromJson(
  1. Object? json
)

Implementation

factory FundingInstructionsBankTransfer.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return FundingInstructionsBankTransfer(
    country: (map['country'] as String),
    financialAddresses: (map['financial_addresses'] as List<Object?>)
        .map((el) =>
            FundingInstructionsBankTransferFinancialAddress.fromJson(el))
        .toList(),
    type: FundingInstructionsBankTransferType.fromJson(map['type']),
  );
}