public function toArray()
    {
        return (array) array_merge($this->composerJson, [
            'id'            => $this->getId(),
            'name'          => $this->getName(),
            'version'       => $this->getVersion(),
            'path'          => $this->getPath(),
            'enabled'       => $this->isEnabled(),
            'icon'          => $this->getIcon(),
            'hasAssets'     => $this->hasAssets(),
            'hasMigrations' => $this->hasMigrations(),
        ]);
    }