ElasticResult class

An object presenting a result to the query

Annotations
  • @freezed

Constructors

ElasticResult({Map<String, dynamic>? data, Map<String, ElasticResultSnippet>? snippets, @JsonKey(name: "_meta") required ElasticResultMeta meta, @JsonKey(name: "_group") List<ElasticResult>? group, @JsonKey(name: "_group_key") String? groupKey})
factory
ElasticResult.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $ElasticResultCopyWith<ElasticResult>
no setterinherited
data Map<String, dynamic>?
A map of the raw data of the document, containing the fields requested in the ElasticResultField passed to the query
no setterinherited
group List<ElasticResult>?
An array of the ElasticResult related to this result if a group has been set on the query
no setterinherited
groupKey String?
The value on which these elements have been grouped if a group has been set on the query
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
meta ElasticResultMeta
An object containing information about a given result
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double?
An easier way to get the score
no setter
snippets Map<String, ElasticResultSnippet>?
A map of the snippets, please check the documentation of ElasticResultSnippet to learn more.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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