public function __construct(Supplier $supplier, array $data)
{
$this->hash = File::checksum($data['path']);
$this->releaseInfo = $data['data']['releaseinfo'];
$this->root = $data['data']['merkle_root'];
$this->path = $data['path'];
$this->size = (int) ($data['size'] ?? \filesize($data['path']));
$this->supplier = $supplier;
$this->version = $data['version'];
}