public function asArray(): array
    {
        $data = [
            'name' => $this->project->getName(),
            'path' => $this->project->getPath(),
        ];
        if (($foregroundColor = $this->project->getForegroundColor())) {
            $data['foreground_color'] = $foregroundColor;
        }
        if (($backgroundColor = $this->project->getBackgroundColor())) {
            $data['background_color'] = $backgroundColor;
        }

        return $data;
    }