*/ public function toArray(Request $request): array { return [ 'key' => $this->key, 'label' => $this->label, 'type' => $this->type->value, 'type_label' => $this->type->label(), 'is_required' => $this->is_required, 'description' => $this->description, ]; } }