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.
Constructors
- AppUser()
Properties
- address ↔ JsonString
-
The user"s address.
getter/setter pair
-
adminType
↔ JsonObject<
EnumModel> -
The user"s admin type as an EnumModel.
getter/setter pair
- adminTypeId ↔ JsonInteger
-
The ID of the user"s admin type.
getter/setter pair
- avatar ↔ JsonString
-
The user"s avatar URL.
getter/setter pair
- createdAt ↔ JsonDate
-
The date the user was created.
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?
-
Gets the first general error message.
no setterinherited
-
errors
↔ Map<
String, String?> -
Map of field-specific errors.
getter/setter pairinherited
-
fields
→ List<
JsonField> -
List of JSON fields representing the user attributes.
no setteroverride
-
gender
↔ JsonObject<
EnumModel> -
The user"s gender as an EnumModel.
getter/setter pair
- genderId ↔ JsonInteger
-
The ID of the user"s gender.
getter/setter pair
-
generalErrors
↔ List<
String> -
List of general errors.
getter/setter pairinherited
-
generalInformations
↔ List<
String> -
List of general informational messages.
getter/setter pairinherited
-
generalWarnings
↔ List<
String> -
List of general warnings.
getter/setter pairinherited
- globalUserId ↔ JsonInteger
-
The global user ID.
getter/setter pair
- hasError → bool
-
Checks if the model has any errors.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasInformation → bool
-
Checks if the model has any informational messages.
no setterinherited
- hasWarning → bool
-
Checks if the model has any warnings.
no setterinherited
- id ↔ JsonInteger
-
The user ID.
getter/setter pair
- identityCode ↔ JsonString
-
The user"s identity code.
getter/setter pair
- information → String?
-
Gets the first general informational message.
no setterinherited
-
informations
↔ Map<
String, String?> -
Map of field-specific informational messages.
getter/setter pairinherited
- isAlreadyGettingStarted ↔ JsonBoolean
-
Indicates if the user has already gotten started.
getter/setter pair
-
language
↔ JsonObject<
EnumModel> -
The user"s language as an EnumModel.
getter/setter pair
- languageId ↔ JsonInteger
-
The ID of the user"s language.
getter/setter pair
- otpCode ↔ JsonString
-
The OTP code for the user.
getter/setter pair
- password ↔ JsonString
-
The user"s password.
getter/setter pair
- phone ↔ JsonString
-
The user"s phone number.
getter/setter pair
- receivingSystemEmail ↔ JsonBoolean
-
Indicates if the user is receiving system emails.
getter/setter pair
- receivingSystemNotification ↔ JsonBoolean
-
Indicates if the user is receiving system notifications.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
timezone
↔ JsonObject<
EnumModel> -
The user"s timezone as an EnumModel.
getter/setter pair
- timezoneId ↔ JsonInteger
-
The ID of the user"s timezone.
getter/setter pair
- updatedAt ↔ JsonDate
-
The date the user was last updated.
getter/setter pair
- username ↔ JsonString
-
The user"s username.
getter/setter pair
- warning → String?
-
Gets the first general warning message.
no setterinherited
-
warnings
↔ Map<
String, String?> -
Map of field-specific warnings.
getter/setter pairinherited
Methods
-
fromJSON(
dynamic json) → void -
Deserializes the JSON data to the model.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJSON(
) → Map< String, dynamic> -
Serializes the model to JSON.
inherited
-
toString(
) → String -
Converts the model to a JSON string.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String name) → dynamic -
Gets the value of a field by name.
inherited
-
operator []=(
String name, dynamic value) → void -
Sets the value of a field by name.
inherited