UpdateReadMonoForumInbox.deserialize constructor

UpdateReadMonoForumInbox.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateReadMonoForumInbox.deserialize(BinaryReader reader) {
  // Read [UpdateReadMonoForumInbox] fields.
  final channelId = reader.readInt64();
  final savedPeerId = reader.readObject() as PeerBase;
  final readMaxId = reader.readInt32();

  // Construct [UpdateReadMonoForumInbox] object.
  final returnValue = UpdateReadMonoForumInbox(
    channelId: channelId,
    savedPeerId: savedPeerId,
    readMaxId: readMaxId,
  );

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