UpdateNewStoryReaction.deserialize constructor

UpdateNewStoryReaction.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateNewStoryReaction.deserialize(BinaryReader reader) {
  // Read [UpdateNewStoryReaction] fields.
  final storyId = reader.readInt32();
  final peer = reader.readObject() as PeerBase;
  final reaction = reader.readObject() as ReactionBase;

  // Construct [UpdateNewStoryReaction] object.
  final returnValue = UpdateNewStoryReaction(
    storyId: storyId,
    peer: peer,
    reaction: reaction,
  );

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