Payload class

A device registers its platform push token (APNs / FCM / Web Push) with a push gateway and names who controls the resulting handle's trigger allowlist: a controller VTA (controllerVtaDid), or — where the gateway's policy admits it — the device itself (selfControl), with its own initial allowlist. Exactly one of the two. The gateway returns an opaque WakeHandle; the raw token is held by the gateway only. See the push wake-up binding (https://trusttasks.org/binding/push/0.1).

Constructors

Payload({required PushRegistration? registration, String? controllerVtaDid, SelfControl? selfControl, Ext? ext})
const
Payload.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

controllerVtaDid → String?
The DID of the VTA permitted to provision this handle's trigger allowlist (push/provision). The device conveys the resulting handle to this VTA via device/set-wake. Absent when selfControl is present.
final
ext → Ext?
final
hashCode → int
The hash code for this object.
no setterinherited
registration → PushRegistration?
The platform push channel (token). Held by the gateway only — never disclosed to any other party.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selfControl → SelfControl?
The device controls this handle itself: the gateway records the registering device's authenticated DID as the controller and starts the handle with the allowlist given here. Admitted only where the gateway's policy allows self-controlled handles. Absent when controllerVtaDid is present.
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