PolicyRule class
Rule within a policy.
Constructors
-
PolicyRule({required String ruleId, required String condition, required String action, int priority = 0, Map<
String, dynamic> ? params}) -
const
-
PolicyRule.fromJson(Map<
String, dynamic> json) -
Create from JSON.
factory
Properties
- action → String
-
Action to execute when condition is met.
final
- condition → String
-
Condition expression or DSL.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
params
→ Map<
String, dynamic> ? -
Additional parameters.
final
- priority → int
-
Rule priority (lower = higher priority).
final
- ruleId → String
-
Unique rule identifier.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? ruleId, String? condition, String? action, int? priority, Map< String, dynamic> ? params}) → PolicyRule - Create a copy with modifications.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited