ChannelsReportSpam.deserialize constructor
ChannelsReportSpam.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory ChannelsReportSpam.deserialize(BinaryReader reader) {
// Read [ChannelsReportSpam] fields.
final channel = reader.readObject() as InputChannelBase;
final participant = reader.readObject() as InputPeerBase;
final id = reader.readVectorInt32();
// Construct [ChannelsReportSpam] object.
final returnValue = ChannelsReportSpam(
channel: channel,
participant: participant,
id: id.items,
);
// Now return the deserialized [ChannelsReportSpam].
return returnValue;
}