InputEncryptedFileLocation.deserialize constructor

InputEncryptedFileLocation.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory InputEncryptedFileLocation.deserialize(BinaryReader reader) {
  // Read [InputEncryptedFileLocation] fields.
  final id = reader.readInt64();
  final accessHash = reader.readInt64();

  // Construct [InputEncryptedFileLocation] object.
  final returnValue = InputEncryptedFileLocation(
    id: id,
    accessHash: accessHash,
  );

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