UpdateChatReadInbox.fromJson constructor

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

Parses a UpdateChatReadInbox from TDLib JSON.

Implementation

factory UpdateChatReadInbox.fromJson(Map<String, dynamic> json) =>
    UpdateChatReadInbox(
      chatId: _readInt(json['chat_id']),
      lastReadInboxMessageId: _readInt(json['last_read_inbox_message_id']),
      unreadCount: _readInt(json['unread_count']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );