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