SharedChat.fromJson constructor
Parses a SharedChat from TDLib JSON.
Implementation
factory SharedChat.fromJson(Map<String, dynamic> json) => SharedChat(
chatId: _readInt(json['chat_id']),
title: _readString(json['title']),
username: _readString(json['username']),
photo: _readOptional(json['photo'], Photo.fromJson),
);