class PendingTPCAgentListResponse {
  List<PendingTpcIssueList>? pendingTpcIssueList;
  String? error;
  String? message;

  PendingTPCAgentListResponse(
      {this.pendingTpcIssueList, this.error, this.message});

  PendingTPCAgentListResponse.fromJson(Map<String, dynamic> json) {
    if (json['pending_tpc_issue_list'] != null) {
      pendingTpcIssueList = <PendingTpcIssueList>[];
      json['pending_tpc_issue_list'].forEach((v) {
        pendingTpcIssueList!.add(new PendingTpcIssueList.fromJson(v));
      });
    }
    error = json['error'];
    message = json['message'];
  }

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

class PendingTpcIssueList {
  String? id;
  String? name;
  String? mobileNumber;
  String? idProofDirFilePath;
  String? idProofViewFileName;
  String? bankName;
  String? bankBeneficiaryName;
  String? bankAccountNo;
  String? bankIfscCode;
  String? note;
  String? enteredEmpId;
  String? isExists;
  String? createdDatetime;
  String? updatedDatetime;
  String? tpcAgentId;
  String? aname;
  String? ename;
  String? orderId;
  String? totalAmount;
  String? paidAmount;
  String? orderNumber;
  String? level1TpcApprovedAmount;
  String? level2TpcApprovedAmount;
  String? status;
  String? tpcStatus;
  String? requestedTpcAmount;

  PendingTpcIssueList(
      {this.id,
        this.name,
        this.mobileNumber,
        this.idProofDirFilePath,
        this.idProofViewFileName,
        this.bankName,
        this.bankBeneficiaryName,
        this.bankAccountNo,
        this.bankIfscCode,
        this.note,
        this.enteredEmpId,
        this.isExists,
        this.createdDatetime,
        this.updatedDatetime,
        this.tpcAgentId,
        this.aname,
        this.ename,
        this.orderId,
        this.totalAmount,
        this.paidAmount,
        this.orderNumber,
        this.level1TpcApprovedAmount,
        this.level2TpcApprovedAmount,
        this.status,
        this.tpcStatus,
        this.requestedTpcAmount});

  PendingTpcIssueList.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    mobileNumber = json['mobile_number'];
    idProofDirFilePath = json['id_proof_dir_file_path'];
    idProofViewFileName = json['id_proof_view_file_name'];
    bankName = json['bank_name'];
    bankBeneficiaryName = json['bank_beneficiary_name'];
    bankAccountNo = json['bank_account_no'];
    bankIfscCode = json['bank_ifsc_code'];
    note = json['note'];
    enteredEmpId = json['entered_emp_id'];
    isExists = json['is_exists'];
    createdDatetime = json['created_datetime'];
    updatedDatetime = json['updated_datetime'];
    tpcAgentId = json['tpc_agent_id'];
    aname = json['aname'];
    ename = json['ename'];
    orderId = json['order_id'];
    totalAmount = json['total_amount'];
    paidAmount = json['paid_amount'];
    orderNumber = json['order_number'];
    level1TpcApprovedAmount = json['level1_tpc_approved_amount'];
    level2TpcApprovedAmount = json['level2_tpc_approved_amount'];
    status = json['status'];
    tpcStatus = json['tpc_status'];
    requestedTpcAmount = json['requested_tpc_amount'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['mobile_number'] = this.mobileNumber;
    data['id_proof_dir_file_path'] = this.idProofDirFilePath;
    data['id_proof_view_file_name'] = this.idProofViewFileName;
    data['bank_name'] = this.bankName;
    data['bank_beneficiary_name'] = this.bankBeneficiaryName;
    data['bank_account_no'] = this.bankAccountNo;
    data['bank_ifsc_code'] = this.bankIfscCode;
    data['note'] = this.note;
    data['entered_emp_id'] = this.enteredEmpId;
    data['is_exists'] = this.isExists;
    data['created_datetime'] = this.createdDatetime;
    data['updated_datetime'] = this.updatedDatetime;
    data['tpc_agent_id'] = this.tpcAgentId;
    data['aname'] = this.aname;
    data['ename'] = this.ename;
    data['order_id'] = this.orderId;
    data['total_amount'] = this.totalAmount;
    data['paid_amount'] = this.paidAmount;
    data['order_number'] = this.orderNumber;
    data['level1_tpc_approved_amount'] = this.level1TpcApprovedAmount;
    data['level2_tpc_approved_amount'] = this.level2TpcApprovedAmount;
    data['status'] = this.status;
    data['tpc_status'] = this.tpcStatus;
    data['requested_tpc_amount'] = this.requestedTpcAmount;
    return data;
  }
}
