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.

Inheritance

Constructors

UserNotification()

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
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 notification attributes.
no setteroverride
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
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 ID of the notification.
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
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?
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