*/ public function toArray(Request $request): array { if (!$this->resource) { return []; } return [ 'uuid' => $this->uuid, 'server_name' => $this->server_name, 'status' => $this->status, 'auto_renew' => $this->auto_renew, 'started_at' => $this->started_at?->toISOString(), 'expires_at' => $this->expires_at?->toISOString(), ]; } }