MessagesSendScreenshotNotification.deserialize constructor

MessagesSendScreenshotNotification.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesSendScreenshotNotification.deserialize(BinaryReader reader) {
  // Read [MessagesSendScreenshotNotification] fields.
  final peer = reader.readObject() as InputPeerBase;
  final replyTo = reader.readObject() as InputReplyToBase;
  final randomId = reader.readInt64();

  // Construct [MessagesSendScreenshotNotification] object.
  final returnValue = MessagesSendScreenshotNotification(
    peer: peer,
    replyTo: replyTo,
    randomId: randomId,
  );

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