Payload class

TRQP v2.0 authorization query: ask a trust registry whether an entity is authorized by an authority for a given action+resource, evaluated as of context.time (or the registry's current time) against the matching record's validity window. Members are lowerCamelCase per the registry naming convention; a registry serving the plain HTTP TRQP binding maps them to TRQP's snake_case field names (entityId ↔ entity_id, evaluatedAt ↔ time_evaluated, and so on) at that binding.

Constructors

Payload({required String entityId, required String authorityId, required String action, required String resource, QueryContext? context, Ext? ext})
const
Payload.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

action → String
The action the query is checking authorization for.
final
authorityId → String
Identifier of the authority being queried.
final
context → QueryContext?
final
entityId → String
Identifier of the entity being tested for authorization.
final
ext → Ext?
final
hashCode → int
The hash code for this object.
no setterinherited
resource → String
The resource the query is checking authorization for.
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