Authorizer search field & Date-Time Filters & Update Table View Columns

This commit is contained in:
mohammad
2024-09-12 14:54:04 +03:00
parent 8c3df39cf4
commit 7c97d01ddb
7 changed files with 136 additions and 80 deletions

View File

@ -6,10 +6,13 @@ class PasswordModel {
final dynamic effectiveTime;
final dynamic passwordCreated;
final dynamic createdTime;
final dynamic passwordName; // New field
final dynamic passwordName;
final AccessStatus passwordStatus;
final AccessType passwordType;
final dynamic deviceUuid;
final dynamic authorizerEmail;
final dynamic authorizerDate;
final dynamic deviceName;
PasswordModel({
this.passwordId,
@ -17,10 +20,13 @@ class PasswordModel {
this.effectiveTime,
this.passwordCreated,
this.createdTime,
this.passwordName, // New field
this.passwordName,
required this.passwordStatus,
required this.passwordType,
this.deviceUuid,
this.authorizerEmail,
this.authorizerDate,
this.deviceName,
});
factory PasswordModel.fromJson(Map<String, dynamic> json) {
@ -34,6 +40,9 @@ class PasswordModel {
passwordStatus: AccessStatusExtension.fromString(json['passwordStatus']),
passwordType: AccessTypeExtension.fromString(json['passwordType']),
deviceUuid: json['deviceUuid'],
authorizerEmail: json['authorizerEmail'],
authorizerDate: json['authorizerDate'],
deviceName: json['deviceName'],
);
}
@ -44,10 +53,13 @@ class PasswordModel {
'effectiveTime': effectiveTime,
'passwordCreated': passwordCreated,
'createdTime': createdTime,
'passwodName': passwordName, // New field
'passwordName': passwordName, // New field
'passwordStatus': passwordStatus,
'passwordType': passwordType,
'deviceUuid': deviceUuid,
'authorizerEmail': authorizerEmail,
'authorizerDate': authorizerDate,
'deviceName': deviceName,
};
}
}