SearchResultDoc class
Search Result Doc
This is needed to prevent typing error in Search result with Typesense
Database is for users, posts, comments
Constructors
- SearchResultDoc({required String id, required String type, required int? createdAt, String? uid, String? displayName, String? name, String? photoUrl, bool? isVerified, String? title, String? content, String? category, String? url, String? postId, String? parentId})
-
SearchResultDoc.fromJson(Map<
String, dynamic> json) -
factory
Properties
- category → String?
-
final
- content → String?
-
final
- createdAt → int?
-
final
- displayName → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- isVerified → bool?
-
final
- name → String?
-
final
- parentId → String?
-
final
- photoUrl → String?
-
final
- postId → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
final
- type → String
-
final
- uid → String?
-
final
- url → String?
-
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.
inherited