ChannelsSetDiscussionGroup.deserialize constructor

ChannelsSetDiscussionGroup.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelsSetDiscussionGroup.deserialize(BinaryReader reader) {
  // Read [ChannelsSetDiscussionGroup] fields.
  final broadcast = reader.readObject() as InputChannelBase;
  final group = reader.readObject() as InputChannelBase;

  // Construct [ChannelsSetDiscussionGroup] object.
  final returnValue = ChannelsSetDiscussionGroup(
    broadcast: broadcast,
    group: group,
  );

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