From c024d06f0b49a14062b744d9f1dc5c1cd8f3a3ba Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Fri, 16 Aug 2024 11:54:03 +0200 Subject: [PATCH] add revoke date to object --- Frontend/patient_manager/lib/objects/patientQueue.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Frontend/patient_manager/lib/objects/patientQueue.dart b/Frontend/patient_manager/lib/objects/patientQueue.dart index 7013a699..8068e701 100644 --- a/Frontend/patient_manager/lib/objects/patientQueue.dart +++ b/Frontend/patient_manager/lib/objects/patientQueue.dart @@ -8,6 +8,7 @@ class PatientQueue { final String first_name; final String last_name; final String medical_aid_no; + final String revoke_date; const PatientQueue({ required this.idpatient_queue, @@ -19,6 +20,7 @@ class PatientQueue { required this.first_name, required this.last_name, required this.medical_aid_no, + required this.revoke_date, }); factory PatientQueue.fromJson(Map json) { @@ -33,6 +35,7 @@ class PatientQueue { 'first_name': String first_name, 'last_name': String last_name, 'medical_aid_no': String medical_aid_no, + 'revoke_date': String revoke_date, } => PatientQueue( idpatient_queue: idpatient_queue, @@ -44,6 +47,7 @@ class PatientQueue { first_name: first_name, last_name: last_name, medical_aid_no: medical_aid_no, + revoke_date: revoke_date, ), _ => throw const FormatException('Failed to load album.'), };