Payload class
Dry-run a policy decision against a synthetic PolicyInput. Returns the policy
decision plus a trace of which policy modules matched and which rules fired. Used
by the policy-editor UI to verify changes before save and by admins to diagnose
unexpected outcomes. 0.3 evaluates against the generalised PolicyInput (any Trust
Task, carrying typeUri + side-effect/exposure classes) and can return the
requireConsent decision.
Constructors
- Payload({required PolicyInput input, String? candidateModule, int? candidatePriority, bool? includeTrace, Ext? ext})
-
const
-
Payload.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- candidateModule → String?
-
Optional — when supplied, evaluate as if this Rego source were active (e.g. preview
a pending upsert). The candidate is layered into the evaluator at the priority
specified by
candidatePriority(default 1000) for this call only.final - candidatePriority → int?
-
final
- ext → Ext?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- includeTrace → bool?
-
final
- input → PolicyInput
-
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