Doc class
Doc describes a document that can be searched.
- Annotations
-
- @freezed
Constructors
-
Doc({required String id, List<
SearchField> ? searchFields, List<Field> ? fields}) -
Default Constructor
constfactory
-
Doc.fromJson(Map<
String, dynamic> json) -
Unmarshalls from json to DOc
factory
Properties
-
copyWith
→ $DocCopyWith<
Doc> -
no setterinherited
-
fields
→ List<
Field> ? -
Fields are the key/value pairs that make up this document. Fields can be
returned in search results, and may be filtered.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
ID is the document identifier.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
searchFields
→ List<
SearchField> ? -
SearchFields are the searchable fields for this document.
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