added call_config
parent
e82f908885
commit
01bf6736c6
@ -0,0 +1,69 @@
|
|||||||
|
// public int ConcurrentCallDelaySec { get; set; }
|
||||||
|
// public int VoiceType { get; set; }
|
||||||
|
// public int ScreenLanguage { get; set; }
|
||||||
|
// public int VoiceLanguage { get; set; }
|
||||||
|
// public int ScreenMaxDisplayPatients { get; set; }
|
||||||
|
// public string VitalSignText { get; set; }
|
||||||
|
// public string VitalSignTextN { get; set; }
|
||||||
|
// public string DoctorText { get; set; }
|
||||||
|
// public string DoctorTextN { get; set; }
|
||||||
|
// public string ProcedureText { get; set; }
|
||||||
|
// public string ProcedureTextN { get; set; }
|
||||||
|
// public string VaccinationText { get; set; }
|
||||||
|
// public string VaccinationTextN { get; set; }
|
||||||
|
// public string NebulizationText { get; set; }
|
||||||
|
// public string NebulizationTextN { get; set; }
|
||||||
|
|
||||||
|
class CallConfig {
|
||||||
|
int concurrentCallDelaySec;
|
||||||
|
int voiceType;
|
||||||
|
int screenLanguage;
|
||||||
|
int voiceLanguage;
|
||||||
|
int screenMaxDisplayPatients;
|
||||||
|
String vitalSignText;
|
||||||
|
String vitalSignTextN;
|
||||||
|
String doctorText;
|
||||||
|
String doctorTextN;
|
||||||
|
String procedureText;
|
||||||
|
String procedureTextN;
|
||||||
|
String vaccinationText;
|
||||||
|
String vaccinationTextN;
|
||||||
|
String nebulizationText;
|
||||||
|
String nebulizationTextN;
|
||||||
|
|
||||||
|
CallConfig({
|
||||||
|
this.concurrentCallDelaySec,
|
||||||
|
this.voiceType,
|
||||||
|
this.screenLanguage,
|
||||||
|
this.voiceLanguage,
|
||||||
|
this.screenMaxDisplayPatients,
|
||||||
|
this.vitalSignText,
|
||||||
|
this.vitalSignTextN,
|
||||||
|
this.doctorText,
|
||||||
|
this.doctorTextN,
|
||||||
|
this.procedureText,
|
||||||
|
this.procedureTextN,
|
||||||
|
this.vaccinationText,
|
||||||
|
this.vaccinationTextN,
|
||||||
|
this.nebulizationText,
|
||||||
|
this.nebulizationTextN,
|
||||||
|
});
|
||||||
|
|
||||||
|
CallConfig.fromJson(Map<String, dynamic> json) {
|
||||||
|
concurrentCallDelaySec = json['concurrentCallDelaySec'];
|
||||||
|
voiceType = json['voiceType'];
|
||||||
|
screenLanguage = json['screenLanguage'];
|
||||||
|
voiceLanguage = json['voiceLanguage'];
|
||||||
|
screenMaxDisplayPatients = json['screenMaxDisplayPatients'];
|
||||||
|
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'];
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,59 +0,0 @@
|
|||||||
import 'dart:convert';
|
|
||||||
Xyz xyzFromJson(String str) => Xyz.fromJson(json.decode(str));
|
|
||||||
String xyzToJson(Xyz data) => json.encode(data.toJson());
|
|
||||||
class Xyz {
|
|
||||||
Xyz({
|
|
||||||
this.callNo,
|
|
||||||
this.roomNo,
|
|
||||||
this.callType,
|
|
||||||
this.createdON,
|
|
||||||
this.doctorName,
|
|
||||||
this.doctorNameN,
|
|
||||||
this.editedON,
|
|
||||||
this.mobileNo,
|
|
||||||
this.patientGender,
|
|
||||||
this.patientID,
|
|
||||||
this.queueNo,});
|
|
||||||
|
|
||||||
Xyz.fromJson(dynamic json) {
|
|
||||||
callNo = json['CallNo'];
|
|
||||||
roomNo = json['RoomNo'];
|
|
||||||
callType = json['CallType'];
|
|
||||||
createdON = json['CreatedON'];
|
|
||||||
doctorName = json['DoctorName'];
|
|
||||||
doctorNameN = json['DoctorNameN'];
|
|
||||||
editedON = json['EditedON'];
|
|
||||||
mobileNo = json['MobileNo'];
|
|
||||||
patientGender = json['PatientGender'];
|
|
||||||
patientID = json['PatientID'];
|
|
||||||
queueNo = json['QueueNo'];
|
|
||||||
}
|
|
||||||
int callNo;
|
|
||||||
String roomNo;
|
|
||||||
int callType;
|
|
||||||
String createdON;
|
|
||||||
String doctorName;
|
|
||||||
String doctorNameN;
|
|
||||||
String editedON;
|
|
||||||
String mobileNo;
|
|
||||||
int patientGender;
|
|
||||||
int patientID;
|
|
||||||
String queueNo;
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final map = <String, dynamic>{};
|
|
||||||
map['CallNo'] = callNo;
|
|
||||||
map['RoomNo'] = roomNo;
|
|
||||||
map['CallType'] = callType;
|
|
||||||
map['CreatedON'] = createdON;
|
|
||||||
map['DoctorName'] = doctorName;
|
|
||||||
map['DoctorNameN'] = doctorNameN;
|
|
||||||
map['EditedON'] = editedON;
|
|
||||||
map['MobileNo'] = mobileNo;
|
|
||||||
map['PatientGender'] = patientGender;
|
|
||||||
map['PatientID'] = patientID;
|
|
||||||
map['QueueNo'] = queueNo;
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue