validated()); } public function toArray(): array { return get_object_vars($this); } public static function fromArray(array $data): self { return new self( scope: $data['scope'], description: $data['description'], bits: $data['bits'], parent_id: isset($data['parent_id']) ? $data['parent_id'] : null, ); } }