UploadGetFileHashes.deserialize constructor

UploadGetFileHashes.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UploadGetFileHashes.deserialize(BinaryReader reader) {
  // Read [UploadGetFileHashes] fields.
  final location = reader.readObject() as InputFileLocationBase;
  final offset = reader.readInt64();

  // Construct [UploadGetFileHashes] object.
  final returnValue = UploadGetFileHashes(location: location, offset: offset);

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