|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/StarRating.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class SickLeavePatientModel {
|
|
|
|
class SickLeavePatientModel {
|
|
|
|
String setupID;
|
|
|
|
String setupID;
|
|
|
|
int projectID;
|
|
|
|
int projectID;
|
|
|
|
@ -30,8 +32,10 @@ class SickLeavePatientModel {
|
|
|
|
dynamic patientName;
|
|
|
|
dynamic patientName;
|
|
|
|
String projectName;
|
|
|
|
String projectName;
|
|
|
|
String qR;
|
|
|
|
String qR;
|
|
|
|
List<String> speciality;
|
|
|
|
// List<String> speciality;
|
|
|
|
String strRequestDate;
|
|
|
|
String strRequestDate;
|
|
|
|
|
|
|
|
String startDate;
|
|
|
|
|
|
|
|
String endDate;
|
|
|
|
|
|
|
|
|
|
|
|
SickLeavePatientModel(
|
|
|
|
SickLeavePatientModel(
|
|
|
|
{this.setupID,
|
|
|
|
{this.setupID,
|
|
|
|
@ -65,11 +69,14 @@ class SickLeavePatientModel {
|
|
|
|
this.patientName,
|
|
|
|
this.patientName,
|
|
|
|
this.projectName,
|
|
|
|
this.projectName,
|
|
|
|
this.qR,
|
|
|
|
this.qR,
|
|
|
|
this.speciality,
|
|
|
|
// this.speciality,
|
|
|
|
this.strRequestDate});
|
|
|
|
this.strRequestDate,
|
|
|
|
|
|
|
|
this.startDate,
|
|
|
|
|
|
|
|
this.endDate});
|
|
|
|
|
|
|
|
|
|
|
|
SickLeavePatientModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
SickLeavePatientModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
setupID = json['SetupID'];
|
|
|
|
setupID = json['SetupID'];
|
|
|
|
|
|
|
|
|
|
|
|
projectID = json['ProjectID'];
|
|
|
|
projectID = json['ProjectID'];
|
|
|
|
patientID = json['PatientID'];
|
|
|
|
patientID = json['PatientID'];
|
|
|
|
patientType = json['PatientType'];
|
|
|
|
patientType = json['PatientType'];
|
|
|
|
@ -100,13 +107,16 @@ class SickLeavePatientModel {
|
|
|
|
patientName = json['PatientName'];
|
|
|
|
patientName = json['PatientName'];
|
|
|
|
projectName = json['ProjectName'];
|
|
|
|
projectName = json['ProjectName'];
|
|
|
|
qR = json['QR'];
|
|
|
|
qR = json['QR'];
|
|
|
|
speciality = json['Speciality'].cast<String>();
|
|
|
|
// speciality = json['Speciality'].cast<String>();
|
|
|
|
strRequestDate = json['StrRequestDate'];
|
|
|
|
strRequestDate = json['StrRequestDate'];
|
|
|
|
|
|
|
|
startDate = json['StartDate'];
|
|
|
|
|
|
|
|
endDate = json['EndDate'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
data['SetupID'] = this.setupID;
|
|
|
|
data['SetupID'] = this.setupID;
|
|
|
|
|
|
|
|
|
|
|
|
data['ProjectID'] = this.projectID;
|
|
|
|
data['ProjectID'] = this.projectID;
|
|
|
|
data['PatientID'] = this.patientID;
|
|
|
|
data['PatientID'] = this.patientID;
|
|
|
|
data['PatientType'] = this.patientType;
|
|
|
|
data['PatientType'] = this.patientType;
|
|
|
|
@ -137,8 +147,10 @@ class SickLeavePatientModel {
|
|
|
|
data['PatientName'] = this.patientName;
|
|
|
|
data['PatientName'] = this.patientName;
|
|
|
|
data['ProjectName'] = this.projectName;
|
|
|
|
data['ProjectName'] = this.projectName;
|
|
|
|
data['QR'] = this.qR;
|
|
|
|
data['QR'] = this.qR;
|
|
|
|
data['Speciality'] = this.speciality;
|
|
|
|
// data['Speciality'] = this.speciality;
|
|
|
|
data['StrRequestDate'] = this.strRequestDate;
|
|
|
|
data['StrRequestDate'] = this.strRequestDate;
|
|
|
|
|
|
|
|
data['StartDate'] = this.startDate;
|
|
|
|
|
|
|
|
data['EndDate'] = this.endDate;
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|