MastodonGroupedNotificationsResults class

Response from the grouped notifications API.

Model corresponding to the response from /api/v2/notifications. Returns notification groups, related accounts, and related statuses together.

Annotations

Constructors

MastodonGroupedNotificationsResults({required List<MastodonAccount> accounts, required List<MastodonPartialAccount> partialAccounts, required List<MastodonStatus> statuses, required List<MastodonNotificationGroup> notificationGroups})
const
MastodonGroupedNotificationsResults.fromJson(Map<String, dynamic> json)
factory

Properties

accounts List<MastodonAccount>
List of accounts related to the notifications.
final
hashCode int
The hash code for this object.
no setterinherited
notificationGroups List<MastodonNotificationGroup>
List of notification groups.
final
partialAccounts List<MastodonPartialAccount>
List of partial account information.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statuses List<MastodonStatus>
List of statuses related to the notifications.
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