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.
78 lines
2.0 KiB
Dart
78 lines
2.0 KiB
Dart
class PatientAppointmentJourneyModel {
|
|
int totalItemsCount;
|
|
List<Data> data;
|
|
int messageStatus;
|
|
String message;
|
|
|
|
PatientAppointmentJourneyModel(
|
|
{this.totalItemsCount, this.data, this.messageStatus, this.message});
|
|
|
|
PatientAppointmentJourneyModel.fromJson(Map<String, dynamic> json) {
|
|
totalItemsCount = json['totalItemsCount'];
|
|
if (json['data'] != null) {
|
|
data = <Data>[];
|
|
json['data'].forEach((v) {
|
|
data.add(new Data.fromJson(v));
|
|
});
|
|
}
|
|
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.map((v) => v.toJson()).toList();
|
|
}
|
|
data['messageStatus'] = this.messageStatus;
|
|
data['message'] = this.message;
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class Data {
|
|
int id;
|
|
int callType;
|
|
String calledOn;
|
|
dynamic servedStartOn;
|
|
dynamic servedEndOn;
|
|
bool isAppeared;
|
|
bool isServed;
|
|
dynamic roomNo;
|
|
|
|
Data(
|
|
{this.id,
|
|
this.callType,
|
|
this.calledOn,
|
|
this.servedStartOn,
|
|
this.servedEndOn,
|
|
this.isAppeared,
|
|
this.isServed,
|
|
this.roomNo});
|
|
|
|
Data.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
callType = json['callType'];
|
|
calledOn = json['calledOn'];
|
|
servedStartOn = json['servedStartOn'];
|
|
servedEndOn = json['servedEndOn'];
|
|
isAppeared = json['isAppeared'];
|
|
isServed = json['isServed'];
|
|
roomNo = json['roomNo'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['id'] = this.id;
|
|
data['callType'] = this.callType;
|
|
data['calledOn'] = this.calledOn;
|
|
data['servedStartOn'] = this.servedStartOn;
|
|
data['servedEndOn'] = this.servedEndOn;
|
|
data['isAppeared'] = this.isAppeared;
|
|
data['isServed'] = this.isServed;
|
|
data['roomNo'] = this.roomNo;
|
|
return data;
|
|
}
|
|
}
|