MessagesReadReactions.deserialize constructor

MessagesReadReactions.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesReadReactions.deserialize(BinaryReader reader) {
  // Read [MessagesReadReactions] fields.
  final flags = reader.readInt32();
  final peer = reader.readObject() as InputPeerBase;
  final hasTopMsgIdField = (flags & 1) != 0;
  final topMsgId = hasTopMsgIdField ? reader.readInt32() : null;

  // Construct [MessagesReadReactions] object.
  final returnValue = MessagesReadReactions(
    peer: peer,
    topMsgId: topMsgId,
  );

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