class PatientQueueDetails {
  Data? patientQueueData;

  PatientQueueDetails({this.patientQueueData});

  PatientQueueDetails.fromJson(Map<String, dynamic> json) {
    patientQueueData = json['data'] != null ? new Data.fromJson(json['data']) : null;
  }

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

class Data {
  List<PatientInQueueList>? patientInQueueList;
  int? isClinicConfigured;

  Data({this.patientInQueueList, this.isClinicConfigured});

  Data.fromJson(Map<String, dynamic> json) {
    if (json['patientInQueueList'] != null) {
      patientInQueueList = <PatientInQueueList>[];
      json['patientInQueueList'].forEach((v) {
        patientInQueueList!.add(new PatientInQueueList.fromJson(v));
      });
    }
    isClinicConfigured = json['isClinicConfigured'];
  }

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

class PatientInQueueList {
  int? patientID;
  String? patientName;
  String? queueNo;
  int? callType;
  String? roomNo;
  String? calledOn;
  bool? servingNow;

  PatientInQueueList({this.patientID,
        this.patientName,
        this.queueNo,
        this.callType,
        this.roomNo,
        this.calledOn, this.servingNow});

  PatientInQueueList.fromJson(Map<String, dynamic> json) {
    patientID = json['patientID'];
    patientName = json['patientName'];
    queueNo = json['queueNo'];
    callType = json['callType'];
    roomNo = json['roomNo'];
    calledOn = json['calledOn'];
    servingNow = json['servingNow'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['patientID'] = this.patientID;
    data['patientName'] = this.patientName;
    data['queueNo'] = this.queueNo;
    data['callType'] = this.callType;
    data['roomNo'] = this.roomNo;
    data['calledOn'] = this.calledOn;
    data['servingNow'] = this.servingNow;
    return data;
  }
}

// class PatientQueueDetails {
//   int? patientID;
//   String? patientName;
//   String? queueNo;
//   int? callType;
//   String? roomNo;
//   String? calledOn;
//   bool? servingNow;
//   int? isClinicConfigured;
//
//   PatientQueueDetails(
//       {this.patientID,
//         this.patientName,
//         this.queueNo,
//         this.callType,
//         this.roomNo,
//         this.calledOn,
//         this.servingNow, this.isClinicConfigured});
//
//   PatientQueueDetails.fromJson(Map<String, dynamic> json) {
//     patientID = json['patientID'];
//     patientName = json['patientName'];
//     queueNo = json['queueNo'];
//     callType = json['callType'];
//     roomNo = json['roomNo'];
//     calledOn = json['calledOn'];
//     servingNow = json['servingNow'];
//     isClinicConfigured = json['isClinicConfigured'];
//   }
//
//   Map<String, dynamic> toJson() {
//     final Map<String, dynamic> data = Map<String, dynamic>();
//     data['patientID'] = this.patientID;
//     data['patientName'] = this.patientName;
//     data['queueNo'] = this.queueNo;
//     data['callType'] = this.callType;
//     data['roomNo'] = this.roomNo;
//     data['calledOn'] = this.calledOn;
//     data['servingNow'] = this.servingNow;
//     data['isClinicConfigured'] = this.isClinicConfigured;
//     return data;
//   }
// }
