add revoke date to object
This commit is contained in:
@@ -8,6 +8,7 @@ class PatientQueue {
|
|||||||
final String first_name;
|
final String first_name;
|
||||||
final String last_name;
|
final String last_name;
|
||||||
final String medical_aid_no;
|
final String medical_aid_no;
|
||||||
|
final String revoke_date;
|
||||||
|
|
||||||
const PatientQueue({
|
const PatientQueue({
|
||||||
required this.idpatient_queue,
|
required this.idpatient_queue,
|
||||||
@@ -19,6 +20,7 @@ class PatientQueue {
|
|||||||
required this.first_name,
|
required this.first_name,
|
||||||
required this.last_name,
|
required this.last_name,
|
||||||
required this.medical_aid_no,
|
required this.medical_aid_no,
|
||||||
|
required this.revoke_date,
|
||||||
});
|
});
|
||||||
|
|
||||||
factory PatientQueue.fromJson(Map<String, dynamic> json) {
|
factory PatientQueue.fromJson(Map<String, dynamic> json) {
|
||||||
@@ -33,6 +35,7 @@ class PatientQueue {
|
|||||||
'first_name': String first_name,
|
'first_name': String first_name,
|
||||||
'last_name': String last_name,
|
'last_name': String last_name,
|
||||||
'medical_aid_no': String medical_aid_no,
|
'medical_aid_no': String medical_aid_no,
|
||||||
|
'revoke_date': String revoke_date,
|
||||||
} =>
|
} =>
|
||||||
PatientQueue(
|
PatientQueue(
|
||||||
idpatient_queue: idpatient_queue,
|
idpatient_queue: idpatient_queue,
|
||||||
@@ -44,6 +47,7 @@ class PatientQueue {
|
|||||||
first_name: first_name,
|
first_name: first_name,
|
||||||
last_name: last_name,
|
last_name: last_name,
|
||||||
medical_aid_no: medical_aid_no,
|
medical_aid_no: medical_aid_no,
|
||||||
|
revoke_date: revoke_date,
|
||||||
),
|
),
|
||||||
_ => throw const FormatException('Failed to load album.'),
|
_ => throw const FormatException('Failed to load album.'),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user