SharedChat.fromJson constructor

SharedChat.fromJson(
  1. Map<String, dynamic> json
)

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),
);