UpdateNewStoryReaction.deserialize constructor
UpdateNewStoryReaction.deserialize(
- 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;
}