ChannelsCheckSearchPostsFlood.deserialize constructor
ChannelsCheckSearchPostsFlood.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory ChannelsCheckSearchPostsFlood.deserialize(BinaryReader reader) {
// Read [ChannelsCheckSearchPostsFlood] fields.
final flags = reader.readInt32();
final hasQueryField = (flags & 1) != 0;
final query = hasQueryField ? reader.readString() : null;
// Construct [ChannelsCheckSearchPostsFlood] object.
final returnValue = ChannelsCheckSearchPostsFlood(query: query);
// Now return the deserialized [ChannelsCheckSearchPostsFlood].
return returnValue;
}