TargetingRule class
Describes a targeting rule.
- Annotations
-
- @JsonSerializable()
Constructors
-
TargetingRule(List<
Condition> conditions, List<PercentageOption> ? percentageOptions, ServedValue? servedValue) -
TargetingRule.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
conditions
→ List<
Condition> -
The list of conditions that are combined with the AND logical operator.
Items can be one of the following types: {@link UserCondition}, {@link SegmentCondition} or {@link PrerequisiteFlagCondition}.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
percentageOptions
→ List<
PercentageOption> ? -
The list of percentage options associated with the targeting rule or {@code null} if the targeting rule has a simple value THEN part.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- servedValue → ServedValue?
-
The simple value associated with the targeting rule or {@code null} if the targeting rule has percentage options THEN part.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited