get user info and access management page

This commit is contained in:
mohammad
2024-08-08 16:54:02 +03:00
parent ab0551b2ce
commit 1d226742e6
13 changed files with 385 additions and 115 deletions

View File

@ -6,19 +6,17 @@ class UserModel {
static String userUuidKey = 'userUuid';
final String? uuid;
final String? email;
final String? name;
final String? firstName;
final String? lastName;
final String? photoUrl;
final String? phoneNumber;
final bool? isEmailVerified;
final bool? isAgreementAccepted;
UserModel({
required this.uuid,
required this.email,
required this.name,
required this.firstName,
required this.lastName,
required this.photoUrl,
required this.phoneNumber,
required this.isEmailVerified,
@ -29,7 +27,8 @@ class UserModel {
return UserModel(
uuid: json['id'],
email: json['email'],
name: json['name'],
firstName: json['firstName'],
lastName: json['lastName'],
photoUrl: json['photoUrl'],
phoneNumber: json['phoneNumber'],
isEmailVerified: json['isEmailVerified'],
@ -46,7 +45,8 @@ class UserModel {
return UserModel(
uuid: tempJson['uuid'].toString(),
email: tempJson['email'],
name: null,
firstName: null,
lastName: null,
photoUrl: null,
phoneNumber: null,
isEmailVerified: null,
@ -58,7 +58,8 @@ class UserModel {
return {
'id': uuid,
'email': email,
'name': name,
'firstName': firstName,
'lastName': lastName,
'photoUrl': photoUrl,
'phoneNumber': phoneNumber,
'isEmailVerified': isEmailVerified,