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