UpdateChatUserTyping.deserialize constructor

UpdateChatUserTyping.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateChatUserTyping.deserialize(BinaryReader reader) {
  // Read [UpdateChatUserTyping] fields.
  final chatId = reader.readInt64();
  final fromId = reader.readObject() as PeerBase;
  final action = reader.readObject() as SendMessageActionBase;

  // Construct [UpdateChatUserTyping] object.
  final returnValue = UpdateChatUserTyping(
    chatId: chatId,
    fromId: fromId,
    action: action,
  );

  // Now return the deserialized [UpdateChatUserTyping].
  return returnValue;
}