Payload class
A member reads the namespaces, repositories and rights they are entitled to see, optionally narrowed to one resource, together with the forge accounts linked to their own DID. An administrator may instead ask for everything in the namespaces they administer, and either may narrow the rights to break-glass records.
Constructors
- Payload({Resource? resource, PayloadScope? scope, bool? breakGlass, Ext? ext})
-
const
-
Payload.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- breakGlass → bool?
-
truenarrowsrightsto the records carryingbreakGlass— ratified ones included — andnamespacesandreposto those that contain such a record.falseor absent: no narrowing. Absent meansfalse; this carries no schema-level default, so a producer that omits it is not normalised into sending it.final - ext → Ext?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- resource → String?
-
Narrow the answer to this resource and everything inside it. Absent: everything the
caller may see.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → PayloadScope?
-
member(the default) — what the caller may see through their own git rights, exactly as in 0.4.administrator— everything in the namespaces the caller administers (every namespace, for a holder of the community-administrator capability; those they holdgit.ns.adminon, for anyone else), reasons included. Refused withgit-ns/view:notAdministratorwhen the caller administers no namespace withinresource. Absent means"member"; this carries no schema-level default, so a producer that omits it is not normalised into sending it.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