UpdatesGetChannelDifference.deserialize constructor
UpdatesGetChannelDifference.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory UpdatesGetChannelDifference.deserialize(BinaryReader reader) {
// Read [UpdatesGetChannelDifference] fields.
final flags = reader.readInt32();
final force = (flags & 1) != 0;
final channel = reader.readObject() as InputChannelBase;
final filter = reader.readObject() as ChannelMessagesFilterBase;
final pts = reader.readInt32();
final limit = reader.readInt32();
// Construct [UpdatesGetChannelDifference] object.
final returnValue = UpdatesGetChannelDifference(
force: force,
channel: channel,
filter: filter,
pts: pts,
limit: limit,
);
// Now return the deserialized [UpdatesGetChannelDifference].
return returnValue;
}