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