class paymentRequisitionPaymentsReceiptsListResponse {
  List<ReceiptsList>? receiptsList;
  String? error;
  String? message;

  paymentRequisitionPaymentsReceiptsListResponse({
    this.receiptsList,
    this.error,
    this.message,
  });

  paymentRequisitionPaymentsReceiptsListResponse.fromJson(
    Map<String, dynamic> json,
  ) {
    if (json['receipts_list'] != null) {
      receiptsList = <ReceiptsList>[];
      json['receipts_list'].forEach((v) {
        receiptsList!.add(ReceiptsList.fromJson(v));
      });
    }
    error = json['error'];
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (receiptsList != null) {
      data['receipts_list'] = receiptsList!.map((v) => v.toJson()).toList();
    }
    data['error'] = error;
    data['message'] = message;
    return data;
  }
}

class ReceiptsList {
  String? id;
  String? amount;
  String? bankName;
  String? bankBranchName;
  String? bankIfscCode;
  String? bankAccountHolderName;
  String? bankAccountNumber;
  String? attachmentDirFilePath;
  String? attachmentViewFileName;
  String? accountId;
  String? description;
  String? paymentReferenceNumber;
  String? receiptDate;
  String? receipientAccount;
  String? payAccount;
  String? requestMode;
  String? createdEmployee;
  String? createdDatetime;
  String? updatedDatetime;
  String? receiptAccountId;

  ReceiptsList({
    this.id,
    this.amount,
    this.bankName,
    this.bankBranchName,
    this.bankIfscCode,
    this.bankAccountHolderName,
    this.bankAccountNumber,
    this.attachmentDirFilePath,
    this.attachmentViewFileName,
    this.accountId,
    this.description,
    this.paymentReferenceNumber,
    this.receiptDate,
    this.receipientAccount,
    this.payAccount,
    this.requestMode,
    this.createdEmployee,
    this.createdDatetime,
    this.updatedDatetime,
    this.receiptAccountId,
  });

  ReceiptsList.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    amount = json['amount'];
    bankName = json['bank_name'];
    bankBranchName = json['bank_branch_name'];
    bankIfscCode = json['bank_ifsc_code'];
    bankAccountHolderName = json['bank_account_holder_name'];
    bankAccountNumber = json['bank_account_number'];
    attachmentDirFilePath = json['attachment_dir_file_path'];
    attachmentViewFileName = json['attachment_view_file_name'];
    accountId = json['account_id'];
    description = json['description'];
    paymentReferenceNumber = json['payment_reference_number'];
    receiptDate = json['receipt_date'];
    receipientAccount = json['receipient_account'];
    payAccount = json['pay_account'];
    requestMode = json['request_mode'];
    createdEmployee = json['created_employee'];
    createdDatetime = json['created_datetime'];
    updatedDatetime = json['updated_datetime'];
    receiptAccountId = json['receipt_account_id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['id'] = id;
    data['amount'] = amount;
    data['bank_name'] = bankName;
    data['bank_branch_name'] = bankBranchName;
    data['bank_ifsc_code'] = bankIfscCode;
    data['bank_account_holder_name'] = bankAccountHolderName;
    data['bank_account_number'] = bankAccountNumber;
    data['attachment_dir_file_path'] = attachmentDirFilePath;
    data['attachment_view_file_name'] = attachmentViewFileName;
    data['account_id'] = accountId;
    data['description'] = description;
    data['payment_reference_number'] = paymentReferenceNumber;
    data['receipt_date'] = receiptDate;
    data['receipient_account'] = receipientAccount;
    data['pay_account'] = payAccount;
    data['request_mode'] = requestMode;
    data['created_employee'] = createdEmployee;
    data['created_datetime'] = createdDatetime;
    data['updated_datetime'] = updatedDatetime;
    data['receipt_account_id'] = receiptAccountId;
    return data;
  }
}
