MessagesReorderPinnedDialogs.deserialize constructor
MessagesReorderPinnedDialogs.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory MessagesReorderPinnedDialogs.deserialize(BinaryReader reader) {
// Read [MessagesReorderPinnedDialogs] fields.
final flags = reader.readInt32();
final force = (flags & 1) != 0;
final folderId = reader.readInt32();
final order = reader.readVectorObject<InputDialogPeerBase>();
// Construct [MessagesReorderPinnedDialogs] object.
final returnValue = MessagesReorderPinnedDialogs(
force: force,
folderId: folderId,
order: order,
);
// Now return the deserialized [MessagesReorderPinnedDialogs].
return returnValue;
}