MessagesGetUnreadReactions.deserialize constructor
MessagesGetUnreadReactions.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory MessagesGetUnreadReactions.deserialize(BinaryReader reader) {
// Read [MessagesGetUnreadReactions] fields.
final flags = reader.readInt32();
final peer = reader.readObject() as InputPeerBase;
final hasTopMsgIdField = (flags & 1) != 0;
final topMsgId = hasTopMsgIdField ? reader.readInt32() : null;
final offsetId = reader.readInt32();
final addOffset = reader.readInt32();
final limit = reader.readInt32();
final maxId = reader.readInt32();
final minId = reader.readInt32();
// Construct [MessagesGetUnreadReactions] object.
final returnValue = MessagesGetUnreadReactions(
peer: peer,
topMsgId: topMsgId,
offsetId: offsetId,
addOffset: addOffset,
limit: limit,
maxId: maxId,
minId: minId,
);
// Now return the deserialized [MessagesGetUnreadReactions].
return returnValue;
}