StoriesSendReaction.deserialize constructor
StoriesSendReaction.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory StoriesSendReaction.deserialize(BinaryReader reader) {
// Read [StoriesSendReaction] fields.
final flags = reader.readInt32();
final addToRecent = (flags & 1) != 0;
final peer = reader.readObject() as InputPeerBase;
final storyId = reader.readInt32();
final reaction = reader.readObject() as ReactionBase;
// Construct [StoriesSendReaction] object.
final returnValue = StoriesSendReaction(
addToRecent: addToRecent,
peer: peer,
storyId: storyId,
reaction: reaction,
);
// Now return the deserialized [StoriesSendReaction].
return returnValue;
}