UpdatePinnedForumTopic.deserialize constructor
UpdatePinnedForumTopic.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory UpdatePinnedForumTopic.deserialize(BinaryReader reader) {
// Read [UpdatePinnedForumTopic] fields.
final flags = reader.readInt32();
final pinned = (flags & 1) != 0;
final peer = reader.readObject() as PeerBase;
final topicId = reader.readInt32();
// Construct [UpdatePinnedForumTopic] object.
final returnValue = UpdatePinnedForumTopic(
pinned: pinned,
peer: peer,
topicId: topicId,
);
// Now return the deserialized [UpdatePinnedForumTopic].
return returnValue;
}