class PatientERVirtualHistoryResponse {
  List<ErRequestHistoryList> erRequestHistoryList;

  PatientERVirtualHistoryResponse({this.erRequestHistoryList});

  PatientERVirtualHistoryResponse.fromJson(Map<String, dynamic> json) {
    if (json['ErRequestHistoryList'] != null) {
      erRequestHistoryList = new List<ErRequestHistoryList>();
      json['ErRequestHistoryList'].forEach((v) {
        erRequestHistoryList.add(new ErRequestHistoryList.fromJson(v));
      });
    }
  }

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

class ErRequestHistoryList {
  dynamic appointmentNo;
  String arrivalTime;
  int callDuration;
  int callStatus;
  String clientRequestID;
  String doctorID;
  String doctorName;
  String doctorNameN;
  String doctorTitle;
  String exWaitingTime;
  bool isAppointmentHaveRating;
  int patCount;
  int projectID;
  String sArrivalTime;
  int serviceID;
  String stringCallStatus;
  int vCID;
  int watingtimeInteger;

  ErRequestHistoryList(
      {this.appointmentNo,
        this.arrivalTime,
        this.callDuration,
        this.callStatus,
        this.clientRequestID,
        this.doctorID,
        this.doctorName,
        this.doctorNameN,
        this.doctorTitle,
        this.exWaitingTime,
        this.isAppointmentHaveRating,
        this.patCount,
        this.projectID,
        this.sArrivalTime,
        this.serviceID,
        this.stringCallStatus,
        this.vCID,
        this.watingtimeInteger});

  ErRequestHistoryList.fromJson(Map<String, dynamic> json) {
    appointmentNo = json['AppointmentNo'] != null ? json['AppointmentNo'] : "0";
    arrivalTime = json['ArrivalTime'];
    callDuration = json['CallDuration'];
    callStatus = json['CallStatus'];
    clientRequestID = json['ClientRequestID'];
    doctorID = json['DoctorID'];
    doctorName = json['DoctorName'];
    doctorNameN = json['DoctorNameN'];
    doctorTitle = json['DoctorTitle'];
    exWaitingTime = json['Ex_WaitingTime'];
    isAppointmentHaveRating = json['IsAppointmentHaveRating'];
    patCount = json['Pat_Count'];
    projectID = json['ProjectID'];
    sArrivalTime = json['SArrivalTime'];
    serviceID = json['ServiceID'];
    stringCallStatus = json['StringCallStatus'];
    vCID = json['VC_ID'];
    watingtimeInteger = json['WatingtimeInteger'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['AppointmentNo'] = this.appointmentNo;
    data['ArrivalTime'] = this.arrivalTime;
    data['CallDuration'] = this.callDuration;
    data['CallStatus'] = this.callStatus;
    data['ClientRequestID'] = this.clientRequestID;
    data['DoctorID'] = this.doctorID;
    data['DoctorName'] = this.doctorName;
    data['DoctorNameN'] = this.doctorNameN;
    data['DoctorTitle'] = this.doctorTitle;
    data['Ex_WaitingTime'] = this.exWaitingTime;
    data['IsAppointmentHaveRating'] = this.isAppointmentHaveRating;
    data['Pat_Count'] = this.patCount;
    data['ProjectID'] = this.projectID;
    data['SArrivalTime'] = this.sArrivalTime;
    data['ServiceID'] = this.serviceID;
    data['StringCallStatus'] = this.stringCallStatus;
    data['VC_ID'] = this.vCID;
    data['WatingtimeInteger'] = this.watingtimeInteger;
    return data;
  }
}
