MessagesSentEncryptedFile.deserialize constructor

MessagesSentEncryptedFile.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesSentEncryptedFile.deserialize(BinaryReader reader) {
  // Read [MessagesSentEncryptedFile] fields.
  final date = reader.readDateTime();
  final file = reader.readObject() as EncryptedFileBase;

  // Construct [MessagesSentEncryptedFile] object.
  final returnValue = MessagesSentEncryptedFile(
    date: date,
    file: file,
  );

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