UpdateChatLastMessage.fromJson constructor

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

Parses a UpdateChatLastMessage from TDLib JSON.

Implementation

factory UpdateChatLastMessage.fromJson(Map<String, dynamic> json) =>
    UpdateChatLastMessage(
      chatId: _readInt(json['chat_id']),
      lastMessage: _readOptional(json['last_message'], Message.fromJson),
      positions: _readList<ChatPosition>(
          json['positions'], (e) => _readObject(e, ChatPosition.fromJson)),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );