Consequence class final

Annotations
  • @JsonSerializable()

Constructors

Consequence({ConsequenceParams? params, Iterable? promote, bool? filterPromotes, List<ConsequenceHide>? hide, Object? userData})
Returns a new Consequence instance.
const
Consequence.fromJson(Map<String, dynamic> json)
factory

Properties

filterPromotes bool?
Whether promoted records must match an active filter for the consequence to be applied. This ensures that user actions (filtering the search) are given a higher precendence. For example, if you promote a record with the color: red attribute, and the user filters the search for color: blue, the "red" record won't be shown.
final
hashCode int
The hash code for this object.
no setteroverride
hide List<ConsequenceHide>?
Records you want to hide from the search results.
final
params ConsequenceParams?
final
promote Iterable?
Records you want to pin to a specific position in the search results. You can promote up to 300 records, either individually, or as groups of up to 100 records each. One of types:
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userData Object?
A JSON object with custom data that will be appended to the userData array in the response. This object isn't interpreted by the API and is limited to 1 kB of minified JSON.
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