PushSubscription class
Represents a subscription to the push streaming server. https://docs.joinmastodon.org/entities/push-subscription/
- Annotations
-
- @JsonSerializable()
Constructors
- PushSubscription({required String id, required Uri endpoint, required String serverKey, required dynamic alerts})
-
PushSubscription.fromJson(Map<
String, dynamic> json) -
factory
Properties
- alerts → dynamic
-
Which alerts should be delivered to the endpoint
final
- endpoint → Uri
-
Where push alerts will be sent to
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The id of the push subscription in the database
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverKey → String
-
The streaming server's VAPID key
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