ChannelsSetBoostsToUnblockRestrictions.deserialize constructor

ChannelsSetBoostsToUnblockRestrictions.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelsSetBoostsToUnblockRestrictions.deserialize(
  BinaryReader reader,
) {
  // Read [ChannelsSetBoostsToUnblockRestrictions] fields.
  final channel = reader.readObject() as InputChannelBase;
  final boosts = reader.readInt32();

  // Construct [ChannelsSetBoostsToUnblockRestrictions] object.
  final returnValue = ChannelsSetBoostsToUnblockRestrictions(
    channel: channel,
    boosts: boosts,
  );

  // Now return the deserialized [ChannelsSetBoostsToUnblockRestrictions].
  return returnValue;
}