$this->id, 'person' => [ 'id' => $this->person->id, 'name' => $this->person->name, 'email' => $this->person->email, 'crowd_type' => $this->whenLoaded('person', fn () => $this->person->crowdType?->name ), 'event' => $this->whenLoaded('person', fn () => [ 'id' => $this->person->event_id, 'name' => $this->person->event?->name, ]), ], 'matched_user' => [ 'id' => $this->matchedUser->id, 'name' => $this->matchedUser->name, 'email' => $this->matchedUser->email, ], 'matched_on' => $this->matched_on->value, 'confidence' => $this->confidence->value, 'status' => $this->status->value, 'resolved_by' => $this->when($this->resolvedBy, fn () => [ 'id' => $this->resolvedBy->id, 'name' => $this->resolvedBy->name, ]), 'resolved_at' => $this->resolved_at?->toISOString(), 'created_at' => $this->created_at->toISOString(), ]; } }