name = $image->getName(); $this->description = $image->getDescription(); $this->comments = $image->getComments(); $this->softwareProfile = $image->getSoftwareProfile() ? new SoftwareProfileOutput($image->getSoftwareProfile()) : null; $this->imageRepositories = $image->getImageImageRepositories()->map( fn(ImageImageRepository $image) => new ImageImageRepositoryOutput($image) )->toArray(); $this->partitionInfo = json_decode($image->getPartitionInfo(), true); $this->remotePc = $image->isRemotePc(); $this->isGlobal = $image->isGlobal(); $this->createdAt = $image->getCreatedAt(); $this->createdBy = $image->getCreatedBy(); } }