CommunityAddChatRequest.fromJson constructor

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

Parses a CommunityAddChatRequest from TDLib JSON.

Implementation

factory CommunityAddChatRequest.fromJson(Map<String, dynamic> json) =>
    CommunityAddChatRequest(
      chatId: _readInt(json['chat_id']),
      isHidden: _readBool(json['is_hidden']),
      senderUserId: _readInt(json['sender_user_id']),
      date: _readInt(json['date']),
    );