<?php

namespace App\Http\Resources\System;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class NavBuilderDataResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'items' => $this->resource['items'] ?? [],
            'roles' => $this->resource['roles'] ?? [],
            'parentOptions' => $this->resource['parentOptions'] ?? [],
        ];
    }
}
