UpdateSentStoryReaction.deserialize constructor

UpdateSentStoryReaction.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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