Payload class
A trigger (the device's mediator or its VTA) asks the push gateway to deliver a contentless wake to a handle. Carries ONLY the push binding's contentless hint fields — never Trust Task content. The gateway authorizes against the handle's allowlist, then fires the doorbell. See the push wake-up binding (https://trusttasks.org/binding/push/0.1).
Constructors
- Payload({required String handle, required int v, String? mediator, int? count, PayloadUrgency? urgency, Ext? ext})
-
const
-
Payload.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- count → int?
-
OPTIONAL. Approximate count of queued messages. Advisory only.
final
- ext → Ext?
-
final
- handle → String
-
The opaque gateway-issued handle to wake.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mediator → String?
-
OPTIONAL. The mediator holding the queued messages, so a multi-mediator consumer
knows which to drain. A hint — echoed into the contentless push.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- urgency → PayloadUrgency?
-
OPTIONAL. A hint the consumer MAY map to platform priority/alert behavior.
final
- v → int
-
Push binding wire version.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited