UpdateEncryption.deserialize constructor

UpdateEncryption.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateEncryption.deserialize(BinaryReader reader) {
  // Read [UpdateEncryption] fields.
  final chat = reader.readObject() as EncryptedChatBase;
  final date = reader.readDateTime();

  // Construct [UpdateEncryption] object.
  final returnValue = UpdateEncryption(
    chat: chat,
    date: date,
  );

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