AppUser class

A class representing an application user.

This class extends JsonModel and provides various fields representing user attributes such as ID, email, username, and more. It also provides a static instance of an empty AppUser.

Inheritance
Mixed-in types

Constructors

AppUser()

Properties

address ↔ JsonString
The user's address.
getter/setter pair
adminType ↔ JsonObject<AdminType>
The user's admin type as an EnumModel.
getter/setter pairinherited
adminTypeId ↔ JsonInteger
The ID of the user's admin type.
getter/setter pairinherited
appleAccount ↔ JsonString
getter/setter pairinherited
appUserSubSystemMappings ↔ JsonList<AppUserSubSystemMapping>
List of mappings between the user and subsystems.
getter/setter pair
avatar ↔ JsonString
The user's avatar URL.
getter/setter pair
currentTenant ↔ JsonObject<CurrentTenant>
The current tenant that this user is using.
getter/setter pair
dateOfBirth ↔ JsonDate
The user's date of birth.
getter/setter pair
displayName ↔ JsonString
The user's display name.
getter/setter pair
email ↔ JsonString
The user's email address.
getter/setter pair
error → String?
Returns the first general error message, or null if there are no errors.
no setterinherited
errors ↔ Map<String, String?>
A map of field-specific error messages, keyed by field name.
getter/setter pairinherited
fields → List<JsonField>
List of JSON fields representing the user attributes.
no setteroverride
gender ↔ JsonObject<Gender>
The user's gender as an EnumModel.
getter/setter pairinherited
genderId ↔ JsonInteger
The ID of the user's gender.
getter/setter pairinherited
generalErrors ↔ List<String>
A list of general error messages that apply to the entire model.
getter/setter pairinherited
generalInformations ↔ List<String>
A list of general informational messages about the model.
getter/setter pairinherited
generalWarnings ↔ List<String>
A list of general warning messages that apply to the entire model.
getter/setter pairinherited
globalUserId ↔ JsonInteger
The global user ID.
getter/setter pair
googleAccount ↔ JsonString
getter/setter pairinherited
groupTimeZone ↔ JsonObject<Timezone>
getter/setter pairinherited
hasError → bool
Returns true if the model has any field-specific or general errors.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hasInformation → bool
Returns true if the model has any field-specific or general informational messages.
no setterinherited
hasWarning → bool
Returns true if the model has any field-specific or general warnings.
no setterinherited
id ↔ JsonInteger
The user ID.
getter/setter pair
identityCode ↔ JsonString
The user's identity code.
getter/setter pair
information → String?
Returns the first general informational message, or null if there are none.
no setterinherited
informations ↔ Map<String, String?>
A map of field-specific informational messages, keyed by field name.
getter/setter pairinherited
isAdmin ↔ JsonBoolean
getter/setter pairinherited
isAlreadyGettingStarted ↔ JsonBoolean
Indicates if the user has already gotten started.
getter/setter pair
language ↔ JsonObject<Language>
The user's language as an EnumModel.
getter/setter pairinherited
languageId ↔ JsonInteger
The ID of the user's language.
getter/setter pairinherited
microsoftAccount ↔ JsonString
getter/setter pairinherited
name ↔ JsonString
The user's name.
getter/setter pair
phone ↔ JsonString
The user's phone number.
getter/setter pair
preferenceFields → List<JsonField>
no setterinherited
receivingSystemEmail ↔ JsonBoolean
Indicates if the user is receiving system emails.
getter/setter pairinherited
receivingSystemNotification ↔ JsonBoolean
Indicates if the user is receiving system notifications.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sites ↔ JsonList<AppUserSite>
The sites available to the user.
getter/setter pair
tenants ↔ JsonList<Tenant>
List of tenants the user belongs to.
getter/setter pair
timezone ↔ JsonObject<Timezone>
The user's timezone as an EnumModel.
getter/setter pairinherited
timezoneId ↔ JsonInteger
The ID of the user's timezone.
getter/setter pairinherited
username ↔ JsonString
The user's username.
getter/setter pair
warning → String?
Returns the first general warning message, or null if there are no warnings.
no setterinherited
warnings ↔ Map<String, String?>
A map of field-specific warning messages, keyed by field name.
getter/setter pairinherited

Methods

fromJson(dynamic json) → void
Deserializes JSON data into this model instance.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this model instance to a JSON map.
inherited
toString() → String
Returns a JSON string representation of this model.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited
operator [](String name) → dynamic
Retrieves the value of a field by its name using bracket notation.
inherited
operator []=(String name, dynamic value) → void
Sets the value of a field by its name using bracket notation.
inherited

Static Properties

empty → AppUser
A static instance of an empty AppUser.
final