UserNotification class
A class representing a user notification.
This class extends JsonModel and provides various fields representing attributes of a user notification such as ID, title, content, links, sender, recipient, and read status.
Constructors
Properties
- content ↔ JsonString
-
The content of the notification.
getter/setter pair
- contentMobile ↔ JsonString
-
The mobile-specific content of the notification.
getter/setter pair
- contentWeb ↔ JsonString
-
The web-specific content of the notification.
getter/setter pair
- createdAt ↔ JsonDate
-
getter/setter pair
- error → String?
-
Returns the first general error message, or
nullif 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 notification attributes.
no setteroverride
-
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
- group ↔ JsonInteger
-
getter/setter pair
- hasError → bool
-
Returns
trueif the model has any field-specific or general errors.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- hasInformation → bool
-
Returns
trueif the model has any field-specific or general informational messages.no setterinherited - hasWarning → bool
-
Returns
trueif the model has any field-specific or general warnings.no setterinherited - id ↔ JsonInteger
-
The ID of the notification.
getter/setter pair
- information → String?
-
Returns the first general informational message, or
nullif there are none.no setterinherited -
informations
↔ Map<
String, String?> -
A map of field-specific informational messages, keyed by field name.
getter/setter pairinherited
- isPublic ↔ JsonInteger
-
getter/setter pair
- link ↔ JsonString
-
The link associated with the notification.
getter/setter pair
- linkMobile ↔ JsonString
-
The mobile-specific link associated with the notification.
getter/setter pair
- linkWeb ↔ JsonString
-
The web-specific link associated with the notification.
getter/setter pair
-
recipient
↔ JsonObject<
AppUser> -
The recipient of the notification as an AppUser.
getter/setter pair
- recipientId ↔ JsonInteger
-
The ID of the recipient.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sender
↔ JsonObject<
AppUser> -
The sender of the notification as an AppUser.
getter/setter pair
- senderId ↔ JsonInteger
-
The ID of the sender.
getter/setter pair
- title ↔ JsonString
-
The title of the notification.
getter/setter pair
- titleMobile ↔ JsonString
-
The mobile-specific title of the notification.
getter/setter pair
- titleWeb ↔ JsonString
-
The web-specific title of the notification.
getter/setter pair
- unread ↔ JsonBoolean
-
Indicates if the notification is unread.
getter/setter pair
- warning → String?
-
Returns the first general warning message, or
nullif 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.
inherited
-
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