recentChatFromJson function

RecentChat recentChatFromJson(
  1. String str
)

Converts a JSON string into a RecentChat object.

This function decodes the given JSON string and uses the fromJson constructor of the RecentChat class to create an instance.

Parameters: str - A JSON string representation of a RecentChat object.

Returns: An instance of RecentChat populated with data from the given JSON string.

Implementation

RecentChat recentChatFromJson(String str) =>
    RecentChat.fromJson(json.decode(str));