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.
65 lines
1.8 KiB
Dart
65 lines
1.8 KiB
Dart
class PostHistoriesRequestModel {
|
|
List<ListMedicalHistoryVM> listMedicalHistoryVM;
|
|
|
|
PostHistoriesRequestModel({this.listMedicalHistoryVM});
|
|
|
|
PostHistoriesRequestModel.fromJson(Map<String, dynamic> json) {
|
|
if (json['listMedicalHistoryVM'] != null) {
|
|
listMedicalHistoryVM = new List<ListMedicalHistoryVM>();
|
|
json['listMedicalHistoryVM'].forEach((v) {
|
|
listMedicalHistoryVM.add(new ListMedicalHistoryVM.fromJson(v));
|
|
});
|
|
}
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
if (this.listMedicalHistoryVM != null) {
|
|
data['listMedicalHistoryVM'] =
|
|
this.listMedicalHistoryVM.map((v) => v.toJson()).toList();
|
|
}
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class ListMedicalHistoryVM {
|
|
int patientMRN;
|
|
int historyType;
|
|
int historyId;
|
|
int episodeId;
|
|
int appointmentNo;
|
|
bool isChecked;
|
|
String remarks;
|
|
|
|
ListMedicalHistoryVM(
|
|
{this.patientMRN,
|
|
this.historyType,
|
|
this.historyId,
|
|
this.episodeId,
|
|
this.appointmentNo,
|
|
this.isChecked,
|
|
this.remarks});
|
|
|
|
ListMedicalHistoryVM.fromJson(Map<String, dynamic> json) {
|
|
patientMRN = json['patientMRN'];
|
|
historyType = json['historyType'];
|
|
historyId = json['historyId'];
|
|
episodeId = json['episodeId'];
|
|
appointmentNo = json['appointmentNo'];
|
|
isChecked = json['isChecked'];
|
|
remarks = json['remarks'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['patientMRN'] = this.patientMRN;
|
|
data['historyType'] = this.historyType;
|
|
data['historyId'] = this.historyId;
|
|
data['episodeId'] = this.episodeId;
|
|
data['appointmentNo'] = this.appointmentNo;
|
|
data['isChecked'] = this.isChecked;
|
|
data['remarks'] = this.remarks;
|
|
return data;
|
|
}
|
|
}
|