toJson method
Converts an instance of RecentSearch to a JSON map.
This method is used to serialize RecentSearch instances into a map structure that can easily be converted to JSON. This is useful for storing the instance in a database or sending it over a network.
Returns: A map representing the serialized form of the RecentSearch instance.
Implementation
Map<String, dynamic> toJson() => {
"jid": jid,
"mid": mid,
"search_type": searchType,
"chat_type": chatType,
"is_search": isSearch,
};