recentChatDataFromJson function

RecentChatData recentChatDataFromJson(
  1. String str
)

Converts a JSON string into a RecentChatData object.

This function decodes the provided JSON string into a map and then uses the RecentChatData.fromJson constructor to create a RecentChatData object.

Parameters: str - A JSON string representing recent chat data.

Returns: A RecentChatData object.

Implementation

RecentChatData recentChatDataFromJson(String str) =>
    RecentChatData.fromJson(json.decode(str));