MastodonNotificationRequest class
Filtered notification request (Mastodon 4.3+).
/api/v1/notifications/requests
Holds filtered notifications from a specific account.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- MastodonNotificationRequest({required String id, required DateTime? createdAt, required DateTime? updatedAt, required int notificationsCount, required MastodonAccount account, MastodonStatus? lastStatus})
-
const
-
MastodonNotificationRequest.fromJson(Map<
String, dynamic> json) -
factory
Properties
- account → MastodonAccount
-
Account that triggered the notifications.
final
- createdAt → DateTime?
-
Timestamp when the notification request was created (when the first
filtered notification was created).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Internal ID of the notification request.
final
- lastStatus → MastodonStatus?
-
Status associated with the most recent filtered notification.
final
- notificationsCount → int
-
Number of filtered notifications.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt → DateTime?
-
Timestamp when the notification request was last updated.
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