$model->uuid, 'type' => $model->parsedType, 'name' => $model->name, 'developer' => $model->developer, 'order_name' => $model->order_name, 'order_date' => $model->order_date ? $model->order_date->toIso8601String() : null, 'active_since' => $model->active_since ? $model->active_since->toIso8601String() : null, 'active_till' => $model->active_till ? $model->active_till->toIso8601String() : null, 'created_at' => $model->created_at ? $model->created_at->toIso8601String() : null, 'updated_at' => $model->updated_at ? $model->updated_at->toIso8601String() : null ]; } public function includeRegistry(Entry $model): ?Item { return $model->registry ? $this->item($model->registry, new RegistryTransformer()) : null; } public function includeCategory(Entry $model): ?Item { return $model->category ? $this->item($model->category, new CategoryTransformer()) : null; } public function includeAsset(Entry $model): ?Item { return $model->asset ? $this->item($model->asset, new AssetTransformer()) : null; } public function includePermissions(Entry $model): Primitive { return $this->primitive((new PermissionsService($model))->get()); } }