PolicyModule class
PolicyModule
Constructors
-
PolicyModule({required String id, required String name, String? description, required String module, List<
String> ? appliesTo, int? priority, bool? enabled, required int version, required String createdAt, required String updatedAt, Ext? ext}) -
const
-
PolicyModule.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
-
appliesTo
→ List<
String> ? -
List of trust contexts this policy applies to. Empty array = applies to all
contexts (the default policy).
final
- createdAt → String
-
final
- description → String?
-
final
- enabled → bool?
-
final
- ext → Ext?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- module → String
-
Rego source code. The maintainer's evaluator entry point is the package's
decisionrule, returning a PolicyDecision.final - name → String
-
Human-readable name (e.g. "default vault policy", "bank-site step-up").
final
- priority → int?
-
When multiple policies match a request, evaluation order is by priority descending.
The first to return a non-
nulldecision wins.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt → String
-
final
- version → int
-
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