Structure Update
parent
f524cee132
commit
0027f88df5
@ -1,112 +0,0 @@
|
||||
class CallConfig {
|
||||
late int id;
|
||||
late bool globalClinicPrefixReq;
|
||||
late bool clinicPrefixReq;
|
||||
late int concurrentCallDelaySec;
|
||||
late int voiceType;
|
||||
late int screenLanguage;
|
||||
late int voiceLanguage;
|
||||
late int screenMaxDisplayPatients;
|
||||
late int prioritySMS;
|
||||
late int priorityWhatsApp;
|
||||
late int priorityEmail;
|
||||
late String vitalSignText;
|
||||
late String vitalSignTextN;
|
||||
late String doctorText;
|
||||
late String doctorTextN;
|
||||
late String procedureText;
|
||||
late String procedureTextN;
|
||||
late String vaccinationText;
|
||||
late String vaccinationTextN;
|
||||
late String nebulizationText;
|
||||
late String nebulizationTextN;
|
||||
late int createdBy;
|
||||
late String createdOn;
|
||||
late int editedBy;
|
||||
late String editedOn;
|
||||
|
||||
CallConfig(
|
||||
{this.id = 0,
|
||||
this.globalClinicPrefixReq = false,
|
||||
this.clinicPrefixReq = false,
|
||||
this.concurrentCallDelaySec = 8,
|
||||
this.voiceType = 0,
|
||||
this.screenLanguage = 1,
|
||||
this.voiceLanguage = 1,
|
||||
this.screenMaxDisplayPatients = 5,
|
||||
this.prioritySMS = 1,
|
||||
this.priorityWhatsApp = 1,
|
||||
this.priorityEmail = 1,
|
||||
this.vitalSignText = "",
|
||||
this.vitalSignTextN = "",
|
||||
this.doctorText = "",
|
||||
this.doctorTextN = "",
|
||||
this.procedureText = "",
|
||||
this.procedureTextN = "",
|
||||
this.vaccinationText = "",
|
||||
this.vaccinationTextN = "",
|
||||
this.nebulizationText = "",
|
||||
this.nebulizationTextN = "",
|
||||
this.createdBy = 0,
|
||||
this.createdOn = "",
|
||||
this.editedBy = 0,
|
||||
this.editedOn = ""});
|
||||
|
||||
CallConfig.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
globalClinicPrefixReq = json['globalClinicPrefixReq'];
|
||||
clinicPrefixReq = json['clinicPrefixReq'];
|
||||
concurrentCallDelaySec = json['concurrentCallDelaySec'];
|
||||
voiceType = json['voiceType'];
|
||||
screenLanguage = json['screenLanguage'] ?? 1;
|
||||
voiceLanguage = json['voiceLanguage'];
|
||||
screenMaxDisplayPatients = json['screenMaxDisplayPatients'];
|
||||
prioritySMS = json['prioritySMS'];
|
||||
priorityWhatsApp = json['priorityWhatsApp'];
|
||||
priorityEmail = json['priorityEmail'];
|
||||
vitalSignText = json['vitalSignText'];
|
||||
vitalSignTextN = json['vitalSignTextN'];
|
||||
doctorText = json['doctorText'];
|
||||
doctorTextN = json['doctorTextN'];
|
||||
procedureText = json['procedureText'];
|
||||
procedureTextN = json['procedureTextN'];
|
||||
vaccinationText = json['vaccinationText'];
|
||||
vaccinationTextN = json['vaccinationTextN'];
|
||||
nebulizationText = json['nebulizationText'];
|
||||
nebulizationTextN = json['nebulizationTextN'];
|
||||
createdBy = json['createdBy'];
|
||||
createdOn = json['createdOn'];
|
||||
editedBy = json['editedBy'];
|
||||
editedOn = json['editedOn'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['id'] = id;
|
||||
data['globalClinicPrefixReq'] = globalClinicPrefixReq;
|
||||
data['clinicPrefixReq'] = clinicPrefixReq;
|
||||
data['concurrentCallDelaySec'] = concurrentCallDelaySec;
|
||||
data['voiceType'] = voiceType;
|
||||
data['screenLanguage'] = screenLanguage;
|
||||
data['voiceLanguage'] = voiceLanguage;
|
||||
data['screenMaxDisplayPatients'] = screenMaxDisplayPatients;
|
||||
data['prioritySMS'] = prioritySMS;
|
||||
data['priorityWhatsApp'] = priorityWhatsApp;
|
||||
data['priorityEmail'] = priorityEmail;
|
||||
data['vitalSignText'] = vitalSignText;
|
||||
data['vitalSignTextN'] = vitalSignTextN;
|
||||
data['doctorText'] = doctorText;
|
||||
data['doctorTextN'] = doctorTextN;
|
||||
data['procedureText'] = procedureText;
|
||||
data['procedureTextN'] = procedureTextN;
|
||||
data['vaccinationText'] = vaccinationText;
|
||||
data['vaccinationTextN'] = vaccinationTextN;
|
||||
data['nebulizationText'] = nebulizationText;
|
||||
data['nebulizationTextN'] = nebulizationTextN;
|
||||
data['createdBy'] = createdBy;
|
||||
data['createdOn'] = createdOn;
|
||||
data['editedBy'] = editedBy;
|
||||
data['editedOn'] = editedOn;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,155 @@
|
||||
import 'dart:ui';
|
||||
|
||||
var data = {
|
||||
"roomText": "غرفة",
|
||||
"queueNoText": "رقم قائمة الانتظار",
|
||||
"callForText": "يدعو إلى",
|
||||
"currentServeText": "العرض الحالي",
|
||||
"callTypeVitalSignText": "علامة حيوية",
|
||||
"callTypeDoctorText": "طبيب",
|
||||
"callTypeProcedureText": "إجراء",
|
||||
"callTypeVaccinationText": "تلقيح",
|
||||
"callTypeNebulizationText": "الإرذاذ",
|
||||
};
|
||||
|
||||
class CallConfig {
|
||||
late int id;
|
||||
late bool globalClinicPrefixReq;
|
||||
late bool clinicPrefixReq;
|
||||
late int concurrentCallDelaySec;
|
||||
late int voiceType;
|
||||
late int screenLanguage;
|
||||
late int voiceLanguage;
|
||||
late int screenMaxDisplayPatients;
|
||||
late int prioritySMS;
|
||||
late int priorityWhatsApp;
|
||||
late int priorityEmail;
|
||||
late String vitalSignText;
|
||||
late String doctorText;
|
||||
late String procedureText;
|
||||
late String vaccinationText;
|
||||
late String nebulizationText;
|
||||
late int createdBy;
|
||||
late String createdOn;
|
||||
late int editedBy;
|
||||
late String editedOn;
|
||||
late String roomText;
|
||||
late String queueNoText;
|
||||
late String callForText;
|
||||
late String currentServeText;
|
||||
late String callTypeVitalSignText;
|
||||
late String callTypeDoctorText;
|
||||
late String callTypeProcedureText;
|
||||
late String callTypeVaccinationText;
|
||||
late String callTypeNebulizationText;
|
||||
late TextDirection textDirection;
|
||||
|
||||
CallConfig({
|
||||
this.id = 0,
|
||||
this.globalClinicPrefixReq = false,
|
||||
this.clinicPrefixReq = false,
|
||||
this.concurrentCallDelaySec = 8,
|
||||
this.voiceType = 0,
|
||||
this.screenLanguage = 1,
|
||||
this.voiceLanguage = 1,
|
||||
this.screenMaxDisplayPatients = 5,
|
||||
this.prioritySMS = 1,
|
||||
this.priorityWhatsApp = 1,
|
||||
this.priorityEmail = 1,
|
||||
this.vitalSignText = "",
|
||||
this.doctorText = "",
|
||||
this.procedureText = "",
|
||||
this.vaccinationText = "",
|
||||
this.nebulizationText = "",
|
||||
this.createdBy = 0,
|
||||
this.createdOn = "",
|
||||
this.editedBy = 0,
|
||||
this.editedOn = "",
|
||||
this.roomText = "",
|
||||
this.queueNoText = "",
|
||||
this.callForText = "",
|
||||
this.currentServeText = "",
|
||||
this.callTypeVitalSignText = "",
|
||||
this.callTypeDoctorText = "",
|
||||
this.callTypeProcedureText = "",
|
||||
this.callTypeVaccinationText = "",
|
||||
this.callTypeNebulizationText = "",
|
||||
this.textDirection = TextDirection.ltr,
|
||||
});
|
||||
|
||||
CallConfig.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
globalClinicPrefixReq = json['globalClinicPrefixReq'];
|
||||
clinicPrefixReq = json['clinicPrefixReq'];
|
||||
concurrentCallDelaySec = json['concurrentCallDelaySec'];
|
||||
voiceType = json['voiceType'];
|
||||
screenLanguage = json['screenLanguage'] ?? 1;
|
||||
voiceLanguage = json['voiceLanguage'];
|
||||
screenMaxDisplayPatients = json['screenMaxDisplayPatients'];
|
||||
prioritySMS = json['prioritySMS'];
|
||||
priorityWhatsApp = json['priorityWhatsApp'];
|
||||
priorityEmail = json['priorityEmail'];
|
||||
vitalSignText = json['vitalSignText'];
|
||||
doctorText = json['doctorText'];
|
||||
procedureText = json['procedureText'];
|
||||
vaccinationText = json['vaccinationText'];
|
||||
nebulizationText = json['nebulizationText'];
|
||||
createdBy = json['createdBy'];
|
||||
createdOn = json['createdOn'];
|
||||
editedBy = json['editedBy'];
|
||||
editedOn = json['editedOn'];
|
||||
roomText = json['roomText'];
|
||||
queueNoText = json['queueNoText'];
|
||||
callForText = json['callForText'];
|
||||
currentServeText = json['currentServeText'];
|
||||
callTypeVitalSignText = json['callTypeVitalSignText'];
|
||||
callTypeVitalSignText = json['callTypeVitalSignText'];
|
||||
callTypeDoctorText = json['callTypeDoctorText'];
|
||||
callTypeProcedureText = json['callTypeProcedureText'];
|
||||
callTypeVaccinationText = json['callTypeVaccinationText'];
|
||||
callTypeNebulizationText = json['callTypeNebulizationText'];
|
||||
// textDirection = json['textDirection'] == 2 ? TextDirection.rtl : TextDirection.ltr;
|
||||
textDirection = TextDirection.ltr;
|
||||
}
|
||||
|
||||
static var data = {
|
||||
"id": 1,
|
||||
"globalClinicPrefixReq": true,
|
||||
"clinicPrefixReq": true,
|
||||
"concurrentCallDelaySec": 2,
|
||||
"voiceType": 2,
|
||||
"voiceTypeText": "Female",
|
||||
"screenLanguage": 1,
|
||||
"screenLanguageText": "English",
|
||||
"voiceLanguage": 1,
|
||||
"voiceLanguageText": "English",
|
||||
"screenMaxDisplayPatients": 3,
|
||||
"isNotiReq": true,
|
||||
"prioritySMS": 2,
|
||||
"priorityWhatsApp": 3,
|
||||
"priorityEmail": 1,
|
||||
"textDirection": 2,
|
||||
"vitalSignText": "Call For VitalSign",
|
||||
"doctorText": "دعوة للحصول على علامة حيوية",
|
||||
// "doctorText": "Call For Doctor",
|
||||
"procedureText": "Call For Procedure",
|
||||
"vaccinationText": "Call For Vaccination",
|
||||
"nebulizationText": "Call For Nebulization",
|
||||
"roomText": "غرفة",
|
||||
// "roomText": "Room",
|
||||
"queueNoText": "رقم الانتظار",
|
||||
"callForText": "يدعو إلى",
|
||||
"currentServeText": "Current Serving",
|
||||
"callTypeVitalSignText": "علامة حيوية",
|
||||
"callTypeDoctorText": "طبيب",
|
||||
"callTypeProcedureText": "إجراء",
|
||||
"callTypeVaccinationText": "تلقيح",
|
||||
"callTypeNebulizationText": "الإرذاذ",
|
||||
"createdBy": 101,
|
||||
"createdOn": "2023-08-08T00:00:00",
|
||||
"editedBy": 101,
|
||||
"editedOn": "2023-09-26T16:30:41.92"
|
||||
};
|
||||
|
||||
static CallConfig testCallConfig = CallConfig.fromJson(data);
|
||||
}
|
||||
Loading…
Reference in New Issue