NotifyForumTopic.deserialize constructor

NotifyForumTopic.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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