ChannelsGetForumTopicsByID.deserialize constructor

ChannelsGetForumTopicsByID.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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