*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'propable_type' => PropableModels::aliasFor($this->propable_type) ?? $this->propable_type, 'codigo' => $this->codigo, 'nombre' => $this->nombre, 'is_required' => $this->is_required, 'data_type' => $this->data_type?->value, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, ]; } }