mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
edit_user and pagination and search and filter
This commit is contained in:
@ -1,22 +1,50 @@
|
||||
class RolesUserModel {
|
||||
String? id;
|
||||
String? userName;
|
||||
String? userEmail;
|
||||
String? userRole;
|
||||
String? creationDate;
|
||||
String? creationTime;
|
||||
String? createdBy;
|
||||
String? status;
|
||||
String? action;
|
||||
RolesUserModel(
|
||||
{this.id,
|
||||
this.userName,
|
||||
this.userEmail,
|
||||
this.userRole,
|
||||
this.creationDate,
|
||||
this.creationTime,
|
||||
this.status,
|
||||
this.action,
|
||||
this.createdBy,
|
||||
});
|
||||
final String uuid;
|
||||
final DateTime createdAt;
|
||||
final String email;
|
||||
final dynamic firstName;
|
||||
final dynamic lastName;
|
||||
final dynamic roleType;
|
||||
final dynamic status;
|
||||
final bool isEnabled;
|
||||
final String invitedBy;
|
||||
final dynamic phoneNumber;
|
||||
final dynamic jobTitle;
|
||||
final dynamic createdDate;
|
||||
final dynamic createdTime;
|
||||
|
||||
RolesUserModel({
|
||||
required this.uuid,
|
||||
required this.createdAt,
|
||||
required this.email,
|
||||
required this.firstName,
|
||||
required this.lastName,
|
||||
required this.roleType,
|
||||
required this.status,
|
||||
required this.isEnabled,
|
||||
required this.invitedBy,
|
||||
this.phoneNumber,
|
||||
this.jobTitle,
|
||||
required this.createdDate,
|
||||
required this.createdTime,
|
||||
});
|
||||
|
||||
factory RolesUserModel.fromJson(Map<String, dynamic> json) {
|
||||
return RolesUserModel(
|
||||
uuid: json['uuid'],
|
||||
createdAt: DateTime.parse(json['createdAt']),
|
||||
email: json['email'],
|
||||
firstName: json['firstName'],
|
||||
lastName: json['lastName'],
|
||||
roleType: json['roleType'].toString().toLowerCase().replaceAll("_", " "),
|
||||
status: json['status'],
|
||||
isEnabled: json['isEnabled'],
|
||||
invitedBy:
|
||||
json['invitedBy'].toString().toLowerCase().replaceAll("_", " "),
|
||||
phoneNumber: json['phoneNumber'],
|
||||
jobTitle: json['jobTitle'].toString(),
|
||||
createdDate: json['createdDate'],
|
||||
createdTime: json['createdTime'],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user