candidates = $candidates; $this->filters = $filters; $this->safetyFeedback = $safetyFeedback; } public static function fromJson(object $json): self { return new self($json->candidates, $json->filters, $json->safetyFeedback); } }