MastodonNotificationGroup class

Grouped notification.

Model representing a notification group returned by /api/v2/notifications. Notifications of the same type and target are grouped for efficient display.

Annotations

Constructors

MastodonNotificationGroup({required String groupKey, required int notificationsCount, required MastodonNotificationType type, required String mostRecentNotificationId, String? pageMinId, String? pageMaxId, DateTime? latestPageNotificationAt, required List<String> sampleAccountIds, String? statusId, MastodonReport? report, MastodonRelationshipSeveranceEvent? event, MastodonAccountWarning? moderationWarning})
const
MastodonNotificationGroup.fromJson(Map<String, dynamic> json)
factory

Properties

event MastodonRelationshipSeveranceEvent?
Details of the relationship severance event.
final
groupKey String
Group identifier.
final
hashCode int
The hash code for this object.
no setterinherited
latestPageNotificationAt DateTime?
Timestamp of the newest notification in the current page.
final
moderationWarning MastodonAccountWarning?
Details of the moderation warning.
final
mostRecentNotificationId String
ID of the most recent notification in the group.
final
notificationsCount int
Number of notifications in the group.
final
pageMaxId String?
ID of the newest notification in the current page.
final
pageMinId String?
ID of the oldest notification in the current page.
final
report MastodonReport?
Associated report (non-null only for admin notifications).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleAccountIds List<String>
Sample account IDs that triggered the notifications.
final
statusId String?
ID of the associated status (null depending on the type).
final
type MastodonNotificationType
Type of the notification.
final

Methods

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

Operators

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