Payload class

An owner of a repository, or a namespace admin over it, resolves one reported drift item: adopt records the forge-side role as a VTC right for the member the resolver names, under the same rules as git-ns/right/grant; revert has the bridge undo the forge-side change.

Constructors

Payload({required RepoResource resource, required DriftSelector drift, required PayloadAction action, Did? subject, String? reason, Ext? ext})
const
Payload.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

action → PayloadAction
adopt — record the forge-side role as a VTC right, so the projection comes to match the forge. revert — have the bridge make the forge match the projection again.
final
drift → DriftSelector
final
ext → Ext?
final
hashCode → int
The hash code for this object.
no setterinherited
reason → String?
Why, in the resolver's words. Kept in the VTC's audit record and, for adopt, as the recorded right's reason, disclosed only to the repository's owners and namespace admins.
final
resource → String
The repository whose drift is resolved.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subject → String?
For adopt: the member who receives the right, as the resolver read it — the DID linked to the item's account when they decided. REQUIRED for adopt and absent for revert. The VTC adopts nothing unless the account is still linked to exactly this member, so a link changed between reading and signing never grants to someone the resolver did not name.
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