MastodonWebPushSubscription class

Mastodon Web Push subscription.

Retrieved, created, and updated via /api/v1/push/subscription. Entity representing Push notification settings.

Annotations

Constructors

MastodonWebPushSubscription({required String id, required String endpoint, required String serverKey, required MastodonPushAlerts alerts, required String policy, bool? standard})
const
MastodonWebPushSubscription.fromJson(Map<String, dynamic> json)
factory

Properties

alerts MastodonPushAlerts
Settings per notification type.
final
endpoint String
URL for sending notifications.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Subscription ID.
final
policy String
Notification policy (all / followed / follower / none).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverKey String
Server public key.
final
standard bool?
Whether conforming to the standardized Web Push specification.
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