recentChatDataFromJson function
Converts a JSON string into a RecentChatData object.
This function decodes the given JSON string and uses the fromJson
constructor
of the RecentChatData class to create an instance.
Parameters:
str
- A JSON string representation of a RecentChatData object.
Returns: An instance of RecentChatData populated with data from the given JSON string.
Implementation
RecentChatData recentChatDataFromJson(String str) =>
RecentChatData.fromJson(json.decode(str));