ChannelsJoinChannel.deserialize constructor

ChannelsJoinChannel.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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