EncryptedChatDiscarded.deserialize constructor

EncryptedChatDiscarded.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory EncryptedChatDiscarded.deserialize(BinaryReader reader) {
  // Read [EncryptedChatDiscarded] fields.
  final flags = reader.readInt32();
  final historyDeleted = (flags & 1) != 0;
  final id = reader.readInt32();

  // Construct [EncryptedChatDiscarded] object.
  final returnValue = EncryptedChatDiscarded(
    historyDeleted: historyDeleted,
    id: id,
  );

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