RecentSearch class
A model representing a recent search.
This class holds the details of a recent search, including the JID, MID, search type, chat type, and a flag indicating if it was a search operation.
Parameters: jid - The JID (Jabber ID) associated with the search. mid - The MID (Message ID) associated with the search. searchType - The type of search performed. chatType - The type of chat associated with the search. isSearch - A boolean indicating if the operation was a search.
Constructors
- RecentSearch({required String? jid, required String? mid, required String? searchType, required String? chatType, required bool? isSearch})
- Initializes a new instance of the RecentSearch class.
-
RecentSearch.fromJson(Map<
String, dynamic> json) -
Creates a RecentSearch instance from a JSON map.
factory
Properties
- chatType ↔ String?
-
The type of chat associated with the search.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSearch ↔ bool?
-
A boolean indicating if the operation was a search.
getter/setter pair
- jid ↔ String?
-
The JID (Jabber ID) associated with the search.
getter/setter pair
- mid ↔ String?
-
The MID (Message ID) associated with the search.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchType ↔ String?
-
The type of search performed.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts an instance of RecentSearch to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited