UpdateDeleteMessages.fromJson constructor

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

Parse from a json

Implementation

factory UpdateDeleteMessages.fromJson(Map<String, dynamic> json) => UpdateDeleteMessages(
  chatId: json['chat_id'],
  messageIds: List<int>.from((json['message_ids'] ?? []).map((item) => item).toList()),
  isPermanent: json['is_permanent'],
  fromCache: json['from_cache'],
  extra: json['@extra'],
  clientId: json['@client_id'],
);