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