ChannelsSetMainProfileTab.deserialize constructor

ChannelsSetMainProfileTab.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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