FundingInstructionsBankTransferZenginRecord.fromJson constructor

FundingInstructionsBankTransferZenginRecord.fromJson(
  1. Object? json
)

Implementation

factory FundingInstructionsBankTransferZenginRecord.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return FundingInstructionsBankTransferZenginRecord(
    accountHolderName: map['account_holder_name'] == null
        ? null
        : (map['account_holder_name'] as String),
    accountNumber: map['account_number'] == null
        ? null
        : (map['account_number'] as String),
    accountType:
        map['account_type'] == null ? null : (map['account_type'] as String),
    bankCode: map['bank_code'] == null ? null : (map['bank_code'] as String),
    bankName: map['bank_name'] == null ? null : (map['bank_name'] as String),
    branchCode:
        map['branch_code'] == null ? null : (map['branch_code'] as String),
    branchName:
        map['branch_name'] == null ? null : (map['branch_name'] as String),
  );
}