*/ public function toArray(Request $request): array { return [ 'loanId' => $this->public_id, 'status' => $this->status->value, 'currentStage' => $this->currentStep?->stageDefinition->code, ]; } }