*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'form_schema_id' => $this->form_schema_id, 'slug' => $this->slug, 'name' => $this->name, 'description' => $this->description, 'sort_order' => (int) $this->sort_order, 'submit_independent' => (bool) $this->submit_independent, 'depends_on_section_id' => $this->depends_on_section_id, 'required_for_schema_submit' => (bool) $this->required_for_schema_submit, ]; } }