ContextRecord class
A context as the VTA holds it.
Constructors
- ContextRecord({required String id, required String name, String? did, String? description, String? parent, required String basePath, required String createdAt, required String updatedAt, Ext? ext})
-
const
-
ContextRecord.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- basePath → String
-
Resolved path from the root context, as the VTA derives it from the parent chain.
Consumers MUST treat this as derived state: it is recomputed by the maintainer and
is not independently settable.
final
- createdAt → String
-
RFC 3339.
final
- description → String?
-
Free-form description.
final
- did → String?
-
DID this context acts as, when one has been assigned. Absent means the context has
no identity of its own yet — not that it has been denied one.
final
- ext → Ext?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Context id. For a nested context this is the full path (
parent/leaf), not the leaf alone — an ACL scope naming this context must use this value verbatim.final - name → String
-
Human-readable name. Operator-facing only; carries no authorization meaning, and
two contexts may share a name.
final
- parent → String?
-
Id of the context this one nests under. Absent for a top-level context. Authority
granted at a parent reaches its children, so this member is load-bearing for anyone
reasoning about scope.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt → String
-
RFC 3339.
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