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, 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, 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

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