public function toArray($request): array 	{ 		$lang = $request->lang ?? DomainLanguages::getDefaultLanguage();  		return [ 			'id' => $this->getKey(), 			'parent_profession_id' => $this->professions->pluck('id'), 			'parent_question_id' => $this->question_id, 			'question_group' => new QuestionGroup($this->questionGroup), 			'target' => $this->target, 			'has_children' => $this->children_exists, 			'code' => $this->code, 			'category_id' => $this->category_id, 			'client_survey_id' => $this->client_survey_id, 			'title' => $this->getTranslation('title', $lang), 			'available_answers' => $this->getTranslation('available_answers', $lang), 			'checkbox_max_answers_limit' => $this->checkbox_max_answers_limit, 			'description' => $this->getTranslation('description', $lang), 			'allowed_comments' => $this->allowed_comments, 			'ordering' => $this->ordering, 			'required' => $this->required, 			'type' => $this->type, 			'created_at' => formatTimestamp($this->created_at), 			'updated_at' => formatTimestamp($this->updated_at), 		]; 	}