RecentChatData.fromJson constructor
Creates a RecentChatData object from a JSON map.
The json
parameter should be a map containing the JSON data.
Returns a RecentChatData object.
Implementation
factory RecentChatData.fromJson(Map<String, dynamic> json) => RecentChatData(
data: json["data"] == null
? null
: List<RecentChat>.from(
json["data"].map((x) => RecentChat.fromJson(x))),
);