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.
186 lines
5.3 KiB
Dart
186 lines
5.3 KiB
Dart
/*
|
|
*@author: Amjad Amireh
|
|
*@Date:15/6/2020
|
|
*@param:
|
|
*@return:
|
|
*@desc: Find list of pending patients Model
|
|
*/
|
|
import 'dart:convert';
|
|
|
|
ListPendingPatientListModel listPendingPatientListModelFromJson(String? str) =>
|
|
ListPendingPatientListModel.fromJson(json.decode(str!));
|
|
|
|
String? listPendingPatientListModelToJson(ListPendingPatientListModel data) => json.encode(data.toJson());
|
|
|
|
class ListPendingPatientListModel {
|
|
ListPendingPatientListModel({
|
|
this.acceptedBy,
|
|
this.acceptedOn,
|
|
this.age,
|
|
this.appointmentNo,
|
|
this.arrivalTime,
|
|
this.arrivalTimeD,
|
|
this.callStatus,
|
|
this.clientRequestId,
|
|
this.clinicName,
|
|
this.consoltationEnd,
|
|
this.consultationNotes,
|
|
this.createdOn,
|
|
this.dateOfBirth,
|
|
this.deviceToken,
|
|
this.deviceType,
|
|
this.doctorName,
|
|
this.editOn,
|
|
this.gender,
|
|
this.isFollowUp,
|
|
this.isFromVida,
|
|
this.isLoginB,
|
|
this.isOutKsa,
|
|
this.isRejected,
|
|
this.language,
|
|
this.latitude,
|
|
this.longitude,
|
|
this.mobileNumber,
|
|
this.openSession,
|
|
this.openTokenId,
|
|
this.patientId,
|
|
this.patientName,
|
|
this.patientStatus,
|
|
this.preferredLanguage,
|
|
this.projectId,
|
|
this.scoring,
|
|
this.serviceId,
|
|
this.tokenId,
|
|
this.vcId,
|
|
this.voipToken,
|
|
});
|
|
|
|
dynamic acceptedBy;
|
|
dynamic acceptedOn;
|
|
int? age;
|
|
dynamic appointmentNo;
|
|
String? arrivalTime;
|
|
String? arrivalTimeD;
|
|
int? callStatus;
|
|
String? clientRequestId;
|
|
String? clinicName;
|
|
dynamic consoltationEnd;
|
|
dynamic consultationNotes;
|
|
dynamic createdOn;
|
|
DateTime? dateOfBirth;
|
|
String? deviceToken;
|
|
String? deviceType;
|
|
dynamic doctorName;
|
|
String? editOn;
|
|
String? gender;
|
|
bool? isFollowUp;
|
|
dynamic isFromVida;
|
|
int? isLoginB;
|
|
bool? isOutKsa;
|
|
int? isRejected;
|
|
String? language;
|
|
double? latitude;
|
|
double? longitude;
|
|
String? mobileNumber;
|
|
dynamic openSession;
|
|
dynamic openTokenId;
|
|
String? patientId;
|
|
String? patientName;
|
|
int? patientStatus;
|
|
String? preferredLanguage;
|
|
int? projectId;
|
|
int? scoring;
|
|
int? serviceId;
|
|
dynamic tokenId;
|
|
int? vcId;
|
|
String? voipToken;
|
|
|
|
factory ListPendingPatientListModel.fromJson(Map<String?, dynamic> json) => ListPendingPatientListModel(
|
|
acceptedBy: json["AcceptedBy"],
|
|
acceptedOn: json["AcceptedOn"],
|
|
age: json["Age"],
|
|
appointmentNo: json["AppointmentNo"],
|
|
arrivalTime: json["ArrivalTime"],
|
|
arrivalTimeD: json["ArrivalTimeD"],
|
|
callStatus: json["CallStatus"],
|
|
clientRequestId: json["ClientRequestID"],
|
|
clinicName: json["ClinicName"],
|
|
consoltationEnd: json["ConsoltationEnd"],
|
|
consultationNotes: json["ConsultationNotes"],
|
|
createdOn: json["CreatedOn"],
|
|
dateOfBirth: DateTime.parse(json["DateOfBirth"]),
|
|
deviceToken: json["DeviceToken"],
|
|
deviceType: json["DeviceType"],
|
|
doctorName: json["DoctorName"],
|
|
editOn: json["EditOn"],
|
|
gender: json["Gender"],
|
|
isFollowUp: json["IsFollowUP"],
|
|
isFromVida: json["IsFromVida"],
|
|
isLoginB: json["IsLoginB"],
|
|
isOutKsa: json["IsOutKSA"],
|
|
isRejected: json["IsRejected"],
|
|
language: json["Language"],
|
|
latitude: json["Latitude"].toDouble(),
|
|
longitude: json["Longitude"].toDouble(),
|
|
mobileNumber: json["MobileNumber"],
|
|
openSession: json["OpenSession"],
|
|
openTokenId: json["OpenTokenID"],
|
|
patientId: json["PatientID"],
|
|
patientName: json["PatientName"],
|
|
patientStatus: json["PatientStatus"],
|
|
preferredLanguage: json["PreferredLanguage"],
|
|
projectId: json["ProjectID"],
|
|
scoring: json["Scoring"],
|
|
serviceId: json["ServiceID"],
|
|
tokenId: json["TokenID"],
|
|
vcId: json["VC_ID"],
|
|
voipToken: json["VoipToken"],
|
|
);
|
|
|
|
Map<String?, dynamic> toJson() => {
|
|
"AcceptedBy": acceptedBy,
|
|
"AcceptedOn": acceptedOn,
|
|
"Age": age,
|
|
"AppointmentNo": appointmentNo,
|
|
"ArrivalTime": arrivalTime,
|
|
"ArrivalTimeD": arrivalTimeD,
|
|
"CallStatus": callStatus,
|
|
"ClientRequestID": clientRequestId,
|
|
"ClinicName": clinicName,
|
|
"ConsoltationEnd": consoltationEnd,
|
|
"ConsultationNotes": consultationNotes,
|
|
"CreatedOn": createdOn,
|
|
"DateOfBirth":
|
|
"${dateOfBirth!.year.toString().padLeft(4, '0')}-${dateOfBirth!.month.toString().padLeft(2, '0')}-${dateOfBirth!.day.toString().padLeft(2, '0')}",
|
|
"DeviceToken": deviceToken,
|
|
"DeviceType": deviceType,
|
|
"DoctorName": doctorName,
|
|
"EditOn": editOn,
|
|
"Gender": gender,
|
|
"IsFollowUP": isFollowUp,
|
|
"IsFromVida": isFromVida,
|
|
"IsLoginB": isLoginB,
|
|
"IsOutKSA": isOutKsa,
|
|
"IsRejected": isRejected,
|
|
"Language": language,
|
|
"Latitude": latitude,
|
|
"Longitude": longitude,
|
|
"MobileNumber": mobileNumber,
|
|
"OpenSession": openSession,
|
|
"OpenTokenID": openTokenId,
|
|
"PatientID": patientId,
|
|
"PatientName": patientName,
|
|
"PatientStatus": patientStatus,
|
|
"PreferredLanguage": preferredLanguage,
|
|
"ProjectID": projectId,
|
|
"Scoring": scoring,
|
|
"ServiceID": serviceId,
|
|
"TokenID": tokenId,
|
|
"VC_ID": vcId,
|
|
"VoipToken": voipToken,
|
|
};
|
|
}
|
|
// To parse this JSON data, do
|
|
//
|
|
// final listPendingPatientListModel = listPendingPatientListModelFromJson(jsonString);
|