RecommendRule class final

Annotations
  • @JsonSerializable()

Constructors

RecommendRule({RuleMetadata? metadata, String? objectID, Condition? condition, Consequence? consequence, String? description, bool? enabled, List<TimeRange>? validity})
Returns a new RecommendRule instance.
const
RecommendRule.fromJson(Map<String, dynamic> json)
factory

Properties

condition Condition?
final
consequence Consequence?
final
description String?
Description of the rule's purpose. This can be helpful for display in the Algolia dashboard.
final
enabled bool?
Indicates whether to enable the rule. If it isn't enabled, it isn't applied at query time.
final
hashCode int
The hash code for this object.
no setteroverride
metadata RuleMetadata?
final
objectID String?
Unique identifier of a rule object.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validity List<TimeRange>?
Time periods when the rule is active.
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.
override

Operators

operator ==(Object other) bool
The equality operator.
override