class TPCListResponse {
  List<TpcAgentList>? tpcAgentList;
  String? error;
  String? message;

  TPCListResponse({this.tpcAgentList, this.error, this.message});

  TPCListResponse.fromJson(Map<String, dynamic> json) {
    if (json['tpc_agent_list'] != null) {
      tpcAgentList = <TpcAgentList>[];
      json['tpc_agent_list'].forEach((v) {
        tpcAgentList!.add(new TpcAgentList.fromJson(v));
      });
    }
    error = json['error'];
    message = json['message'];
  }

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

class TpcAgentList {
  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? enteredEmpName;
  String? issuedAmount;

  TpcAgentList(
      {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.enteredEmpName,
        this.issuedAmount});

  TpcAgentList.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'];
    enteredEmpName = json['entered_emp_name'];
    issuedAmount = json['issued_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['entered_emp_name'] = this.enteredEmpName;
    data['issued_amount'] = this.issuedAmount;
    return data;
  }
}
