add revoke date and contact number to object
This commit is contained in:
@@ -4,9 +4,11 @@ class AccessRequest {
|
|||||||
final String app_id;
|
final String app_id;
|
||||||
final String date_time;
|
final String date_time;
|
||||||
final String access;
|
final String access;
|
||||||
|
final String revoke_date;
|
||||||
final String Name;
|
final String Name;
|
||||||
final String type;
|
final String type;
|
||||||
final String logo_path;
|
final String logo_path;
|
||||||
|
final String contact_no;
|
||||||
|
|
||||||
const AccessRequest({
|
const AccessRequest({
|
||||||
required this.idpatient_queue,
|
required this.idpatient_queue,
|
||||||
@@ -14,9 +16,11 @@ class AccessRequest {
|
|||||||
required this.app_id,
|
required this.app_id,
|
||||||
required this.date_time,
|
required this.date_time,
|
||||||
required this.access,
|
required this.access,
|
||||||
|
required this.revoke_date,
|
||||||
required this.Name,
|
required this.Name,
|
||||||
required this.type,
|
required this.type,
|
||||||
required this.logo_path,
|
required this.logo_path,
|
||||||
|
required this.contact_no,
|
||||||
});
|
});
|
||||||
|
|
||||||
factory AccessRequest.fromJson(Map<String, dynamic> json) {
|
factory AccessRequest.fromJson(Map<String, dynamic> json) {
|
||||||
@@ -27,9 +31,11 @@ class AccessRequest {
|
|||||||
'app_id': String app_id,
|
'app_id': String app_id,
|
||||||
'date_time': String date_time,
|
'date_time': String date_time,
|
||||||
'access': String access,
|
'access': String access,
|
||||||
|
'revoke_date': String revoke_date,
|
||||||
'Name': String Name,
|
'Name': String Name,
|
||||||
'type': String type,
|
'type': String type,
|
||||||
'logo_path': String logo_path,
|
'logo_path': String logo_path,
|
||||||
|
'contact_no': String contact_no,
|
||||||
} =>
|
} =>
|
||||||
AccessRequest(
|
AccessRequest(
|
||||||
idpatient_queue: idpatient_queue,
|
idpatient_queue: idpatient_queue,
|
||||||
@@ -37,9 +43,11 @@ class AccessRequest {
|
|||||||
app_id: app_id,
|
app_id: app_id,
|
||||||
date_time: date_time,
|
date_time: date_time,
|
||||||
access: access,
|
access: access,
|
||||||
|
revoke_date: revoke_date,
|
||||||
Name: Name,
|
Name: Name,
|
||||||
type: type,
|
type: type,
|
||||||
logo_path: logo_path,
|
logo_path: logo_path,
|
||||||
|
contact_no: contact_no,
|
||||||
),
|
),
|
||||||
_ => throw const FormatException('Failed to load album.'),
|
_ => throw const FormatException('Failed to load album.'),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user