$this->uid, 'name' => $this->name, 'description' => $this->description, 'status' => (int) $this->status, 'owner' => $this->actor($this->creator), 'role' => $this->when(array_key_exists('viewer_role', $this->resource->getAttributes()), fn () => $this->viewer_role), 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, ]; } }