ChannelsGetAdminedPublicChannels.deserialize constructor
ChannelsGetAdminedPublicChannels.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory ChannelsGetAdminedPublicChannels.deserialize(BinaryReader reader) {
// Read [ChannelsGetAdminedPublicChannels] fields.
final flags = reader.readInt32();
final byLocation = (flags & 1) != 0;
final checkLimit = (flags & 2) != 0;
// Construct [ChannelsGetAdminedPublicChannels] object.
final returnValue = ChannelsGetAdminedPublicChannels(
byLocation: byLocation,
checkLimit: checkLimit,
);
// Now return the deserialized [ChannelsGetAdminedPublicChannels].
return returnValue;
}