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