Notification class

Represents a notification of an event relevant to the user. https://docs.joinmastodon.org/entities/notification/

Annotations
  • @JsonSerializable()

Constructors

Notification({required String id, required NotificationType type, required DateTime createdAt, required Account account, required Status? status})
Notification.fromJson(Map<String, dynamic> json)
factory

Properties

account Account
The account that performed the action that generated the notification
final
createdAt DateTime
The timestamp of the notification
final
hashCode int
The hash code for this object.
no setterinherited
id String
The id of the notification in the database
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status Status?
Status that was the object of the notification, e.g. in mentions, reblogs, favourites, or polls
final
type NotificationType
The type of event that resulted in the notification. Enumerated by NotificationType
final

Methods

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

Operators

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