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