class paymentRequisitionPaymentsReceiptsDetailsResponse {
  ReceiptDetails? receiptDetails;
  String? error;
  String? message;

  paymentRequisitionPaymentsReceiptsDetailsResponse({
    this.receiptDetails,
    this.error,
    this.message,
  });

  paymentRequisitionPaymentsReceiptsDetailsResponse.fromJson(
    Map<String, dynamic> json,
  ) {
    receiptDetails =
        json['receipt_details'] != null
            ? ReceiptDetails.fromJson(json['receipt_details'])
            : null;
    error = json['error'];
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (receiptDetails != null) {
      data['receipt_details'] = receiptDetails!.toJson();
    }
    data['error'] = error;
    data['message'] = message;
    return data;
  }
}

class ReceiptDetails {
  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;
  String? bankUpiId;

  ReceiptDetails({
    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,
    this.bankUpiId,
  });

  ReceiptDetails.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'];
    bankUpiId = json['bank_upi_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;
    data['bank_upi_id'] = bankUpiId;
    return data;
  }
}
