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