InputNotifyForumTopic.deserialize constructor

InputNotifyForumTopic.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory InputNotifyForumTopic.deserialize(BinaryReader reader) {
  // Read [InputNotifyForumTopic] fields.
  final peer = reader.readObject() as InputPeerBase;
  final topMsgId = reader.readInt32();

  // Construct [InputNotifyForumTopic] object.
  final returnValue = InputNotifyForumTopic(peer: peer, topMsgId: topMsgId);

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