Payload class
A device conveys to its VTA the opaque WakeHandle it obtained from a push gateway,
so the VTA can own the trigger allowlist and provision the gateway. Carries no
platform push token — only the handle. Present wakeHandle sets/replaces the wake
channel; absent clears it (device becomes non-wakeable). Idempotent; re-issued on
token rotation. See the push wake-up binding
(https://trusttasks.org/binding/push/0.1).
Constructors
-
Payload({WakeHandle? wakeHandle, PayloadPushPlatform? pushPlatform, List<
String> ? suggestedTriggers, Ext? ext}) -
const
-
Payload.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- ext → Ext?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pushPlatform → PayloadPushPlatform?
-
OPTIONAL, advisory. The abstract platform behind the handle, for device/list
visibility only. The VTA never sees the token; this is a non-authoritative hint.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
suggestedTriggers
→ List<
String> ? -
OPTIONAL, advisory. DIDs the device suggests as wake triggers (e.g. its mediator).
The VTA owns the allowlist and MAY ignore this entirely — it is a hint, not an
instruction.
final
- wakeHandle → WakeHandle?
-
OPTIONAL. The opaque gateway-issued handle for this device's push channel. Omit to
clear the wake channel (the VTA empties the gateway allowlist; the device becomes
non-wakeable).
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