StatsGetStoryPublicForwards.deserialize constructor

StatsGetStoryPublicForwards.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory StatsGetStoryPublicForwards.deserialize(BinaryReader reader) {
  // Read [StatsGetStoryPublicForwards] fields.
  final peer = reader.readObject() as InputPeerBase;
  final id = reader.readInt32();
  final offset = reader.readString();
  final limit = reader.readInt32();

  // Construct [StatsGetStoryPublicForwards] object.
  final returnValue = StatsGetStoryPublicForwards(
    peer: peer,
    id: id,
    offset: offset,
    limit: limit,
  );

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