Response class

The success response to an acl/list/0.2 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/acl/list/0.2#response.

Constructors

Response({required List<AclEntry> entries, required bool truncated, String? cursor, List<String>? redactedFields, Ext? ext})
const
Response.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

cursor → ResourceQualifier?
Opaque continuation token to fetch the next page. Present only when truncated is true AND the maintainer supports pagination from this point. Binds the request's filters and direction. Consumers MUST treat it as opaque and re-send it verbatim.
final
entries → List<AclEntry>
Matching AclEntry items, in maintainer-defined order. May be empty.
final
ext → Ext?
Ecosystem-defined extension members per SPEC.md §4.5.1.
final
hashCode → int
The hash code for this object.
no setterinherited
redactedFields → List<String>?
Names of AclEntry members the maintainer redacted from every returned entry. act, keys and capabilities are never redacted; approve and approveCapabilities SHOULD NOT be (see acl/show/0.2).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
truncated → bool
true when more matching entries exist beyond entries; false when this response is the complete result. Independent of cursor: a maintainer MAY truncate without supporting pagination, in which case truncated is true and cursor is absent.
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