You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.5 KiB
Dart
57 lines
1.5 KiB
Dart
class GetPatientQueueNoModel {
|
|
int totalItemsCount;
|
|
Data data;
|
|
int messageStatus;
|
|
String message;
|
|
|
|
GetPatientQueueNoModel(
|
|
{this.totalItemsCount, this.data, this.messageStatus, this.message});
|
|
|
|
GetPatientQueueNoModel.fromJson(Map<String, dynamic> json) {
|
|
totalItemsCount = json['totalItemsCount'];
|
|
data = json['data'] != null ? new Data.fromJson(json['data']) : null;
|
|
messageStatus = json['messageStatus'];
|
|
message = json['message'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['totalItemsCount'] = this.totalItemsCount;
|
|
if (this.data != null) {
|
|
data['data'] = this.data.toJson();
|
|
}
|
|
data['messageStatus'] = this.messageStatus;
|
|
data['message'] = this.message;
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class Data {
|
|
bool hasQueue;
|
|
String queueNo;
|
|
String queueNoCurServing;
|
|
String approxWaitingTimeMin;
|
|
|
|
Data(
|
|
{this.hasQueue,
|
|
this.queueNo,
|
|
this.queueNoCurServing,
|
|
this.approxWaitingTimeMin});
|
|
|
|
Data.fromJson(Map<String, dynamic> json) {
|
|
hasQueue = json['hasQueue'];
|
|
queueNo = json['queueNo'];
|
|
queueNoCurServing = json['queueNoCurServing'];
|
|
approxWaitingTimeMin = json['approxWaitingTimeMin'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['hasQueue'] = this.hasQueue;
|
|
data['queueNo'] = this.queueNo;
|
|
data['queueNoCurServing'] = this.queueNoCurServing;
|
|
data['approxWaitingTimeMin'] = this.approxWaitingTimeMin;
|
|
return data;
|
|
}
|
|
}
|