CommunityChat.fromJson constructor

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

Parses a CommunityChat from TDLib JSON.

Implementation

factory CommunityChat.fromJson(Map<String, dynamic> json) => CommunityChat(
  chatId: _readInt(json['chat_id']),
  canViewHistory: _readBool(json['can_view_history']),
  isHidden: _readBool(json['is_hidden']),
);