YustUser class

The user model.

Inheritance
Annotations
  • @JsonSerializable()

Constructors

YustUser({required String email, required String firstName, required String lastName, YustGender? gender, String? authId, String? locale})
YustUser.fromJson(Map<String, dynamic> json)
factory

Properties

authenticationMethod YustAuthenticationMethod?
The authentication method.
getter/setter pair
authId String?
The link to the authentication user uid.
getter/setter pair
createdAt DateTime?
getter/setter pairinherited
createdBy String?
getter/setter pairinherited
currEnvId String?
The current tenant the user is using.
getter/setter pair
deviceIds List<String>?
ID of devices the user is using.
getter/setter pair
domain String?
The domain of the user mail.
getter/setter pair
email String
The email of the user.
getter/setter pair
envId String?
getter/setter pairinherited
envIds Map<String, bool?>
The tenant the user has access to.
getter/setter pair
firstName String
The first name of the user.
getter/setter pair
gender YustGender?
The gender of the user.
getter/setter pair
hasChanges bool
are there changes to be saved?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pairinherited
lastLogin DateTime?
The timestamp of the last login.
getter/setter pair
lastLoginDomain String?
The domain of the last login.
getter/setter pair
lastName String
The last name of the user.
getter/setter pair
locale String
Locale
getter/setter pair
modifiedAt DateTime?
getter/setter pairinherited
modifiedBy String?
getter/setter pairinherited
profilePicture YustFile?
Profile picture.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchTag String
no setter
updateMask Set<String>
The fields that should be updated.
no setterinherited
userId String?
getter/setter pairinherited

Methods

clearUpdateMask() → void
clear the update mask
inherited
delete({String? password, bool deleteAuth = true, Yust? yust}) Future<void>
Deletes the user.
getName() String
Returns the user name.
linkAuth(String uid, YustAuthenticationMethod? method, {Yust? yust}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDelete() Future<void>
is triggerd when the document is removed
inherited
onSave() Future<void>
is triggerd when the document is saved
inherited
setLoginFields({Yust? yust}) Future<void>
Saves the current DateTime as the last login and the current domain.
toExportJson() Map<String, dynamic>
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

setup() YustDocSetup<YustUser>