|
|
|
|
@ -1,4 +1,48 @@
|
|
|
|
|
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;
|
|
|
|
|
@ -6,18 +50,15 @@ class PatientQueueDetails {
|
|
|
|
|
String? roomNo;
|
|
|
|
|
String? calledOn;
|
|
|
|
|
bool? servingNow;
|
|
|
|
|
int? isClinicConfigured;
|
|
|
|
|
|
|
|
|
|
PatientQueueDetails(
|
|
|
|
|
{this.patientID,
|
|
|
|
|
PatientInQueueList({this.patientID,
|
|
|
|
|
this.patientName,
|
|
|
|
|
this.queueNo,
|
|
|
|
|
this.callType,
|
|
|
|
|
this.roomNo,
|
|
|
|
|
this.calledOn,
|
|
|
|
|
this.servingNow, this.isClinicConfigured});
|
|
|
|
|
this.calledOn, this.servingNow});
|
|
|
|
|
|
|
|
|
|
PatientQueueDetails.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
PatientInQueueList.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
patientID = json['patientID'];
|
|
|
|
|
patientName = json['patientName'];
|
|
|
|
|
queueNo = json['queueNo'];
|
|
|
|
|
@ -25,11 +66,10 @@ class PatientQueueDetails {
|
|
|
|
|
roomNo = json['roomNo'];
|
|
|
|
|
calledOn = json['calledOn'];
|
|
|
|
|
servingNow = json['servingNow'];
|
|
|
|
|
isClinicConfigured = json['isClinicConfigured'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = Map<String, dynamic>();
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['patientID'] = this.patientID;
|
|
|
|
|
data['patientName'] = this.patientName;
|
|
|
|
|
data['queueNo'] = this.queueNo;
|
|
|
|
|
@ -37,7 +77,50 @@ class PatientQueueDetails {
|
|
|
|
|
data['roomNo'] = this.roomNo;
|
|
|
|
|
data['calledOn'] = this.calledOn;
|
|
|
|
|
data['servingNow'] = this.servingNow;
|
|
|
|
|
data['isClinicConfigured'] = this.isClinicConfigured;
|
|
|
|
|
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;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|