User class

User

Implemented types

Constructors

User({required String $id, required String $createdAt, required String $updatedAt, required String name, String? password, String? hash, Map? hashOptions, required String registration, required bool status, required List<String> labels, required String passwordUpdate, required String email, required String phone, required bool emailVerification, String? emailCanonical, bool? emailIsFree, bool? emailIsDisposable, bool? emailIsCorporate, bool? emailIsCanonical, required bool phoneVerification, required bool mfa, required Preferences prefs, required List<Target> targets, required String accessedAt, bool? impersonator, String? impersonatorUserId})
User.fromMap(Map<String, dynamic> map)
factory

Properties

$createdAt → String
User creation date in ISO 8601 format.
final
$id → String
User ID.
final
$updatedAt → String
User update date in ISO 8601 format.
final
accessedAt → String
Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
final
email → String
User email address.
final
emailCanonical → String?
Canonical form of the user email address.
final
emailIsCanonical → bool?
Whether the user email is in its canonical form.
final
emailIsCorporate → bool?
Whether the user email is from a corporate domain.
final
emailIsDisposable → bool?
Whether the user email is from a disposable email provider.
final
emailIsFree → bool?
Whether the user email is from a free email provider.
final
emailVerification → bool
Email verification status.
final
hash → String?
Password hashing algorithm.
final
hashCode → int
The hash code for this object.
no setterinherited
hashOptions → Map?
Password hashing algorithm configuration.
final
impersonator → bool?
Whether the user can impersonate other users.
final
impersonatorUserId → String?
ID of the original actor performing the impersonation. Present only when the current request is impersonating another user. Internal audit logs attribute the action to this user, while the impersonated target is recorded only in internal audit payload data.
final
labels → List<String>
Labels for the user.
final
mfa → bool
Multi factor authentication status.
final
name → String
User name.
final
password → String?
Hashed user password.
final
passwordUpdate → String
Password update time in ISO 8601 format.
final
phone → String
User phone number in E.164 format.
final
phoneVerification → bool
Phone verification status.
final
prefs → Preferences
User preferences as a key-value object
final
registration → String
User registration date in ISO 8601 format.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → bool
User status. Pass true for enabled and false for disabled.
final
targets → List<Target>
A user-owned message receiver. A single user may have multiple e.g. emails, phones, and a browser. Each target is registered with a single provider.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

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