AdminRightRow class

One right as the administrator's rights console shows it: a recorded RightRecord restated with the membership facts an administrator needs (subjectMember, granterDeparted), or a role-derived grant that carries no record. git-ns/right/list and git-ns/right/issued-by-departed are its only producers.

Constructors

AdminRightRow({required Did subject, required Right right, required Resource resource, required RightOrigin origin, Did? grantedBy, String? grantedAt, String? expiresAt, String? reason, required bool subjectMember, required bool granterDeparted, BreakGlass? breakGlass})
const
AdminRightRow.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

breakGlass → BreakGlass?
Present exactly when origin is recorded and the record carries breakGlass — see RightRecord.breakGlass. Absent for a role-derived grant, which cannot be self-granted through break-glass.
final
expiresAt → String?
When the right lapses. Absent: no expiry, or origin is roleDerived (a role-derived grant never expires on its own — it is withdrawn by editing \[hooks.git-trust\] grant_on_role).
final
grantedAt → String?
Present exactly when origin is recorded.
final
grantedBy → String?
Who caused the right (see RightRecord.grantedBy). Present exactly when origin is recorded; a role-derived grant is published by the hook relay from configuration, not by an actor.
final
granterDeparted → bool
Whether grantedBy was a member at the time of the grant and has since left. Always false when origin is roleDerived, or when the record's granter was never itself a member (the VTC's own DID, for a right it derives from configuration).
final
hashCode → int
The hash code for this object.
no setterinherited
origin → RightOrigin
final
reason → String?
The granter's free-text reason, restated from the RightRecord. Absent when origin is roleDerived, or the record carries none.
final
resource → ForgeHost
final
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subject → ForgeHost
Who holds the right.
final
subjectMember → bool
Whether subject is a current member of the community. false marks a right held by someone who has since left, or by an external signer the community never enrolled.
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() → ForgeHost
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited