CommunityFullInfo.fromJson constructor
Parses a CommunityFullInfo from TDLib JSON.
Implementation
factory CommunityFullInfo.fromJson(Map<String, dynamic> json) =>
CommunityFullInfo(
photo: _readObject(json['photo'], ChatPhoto.fromJson),
chats: _readList<CommunityChat>(
json['chats'],
(e) => _readObject(e, CommunityChat.fromJson),
),
administratorCount: _readInt(json['administrator_count']),
bannedCount: _readInt(json['banned_count']),
addChatRequestCount: _readInt(json['add_chat_request_count']),
notificationSettings: _readObject(
json['notification_settings'],
ChatNotificationSettings.fromJson,
),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);