UpdateDeleteMessages.fromJson constructor

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

Parses a UpdateDeleteMessages from TDLib JSON.

Implementation

factory UpdateDeleteMessages.fromJson(Map<String, dynamic> json) =>
    UpdateDeleteMessages(
      chatId: _readInt(json['chat_id']),
      messageIds: _readList<int>(json['message_ids'], _readInt),
      isPermanent: _readBool(json['is_permanent']),
      fromCache: _readBool(json['from_cache']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );