*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'title' => $this->title, 'body' => $this->body, 'cta_label' => $this->cta_label, 'cta_url' => $this->cta_url, 'status' => $this->status?->value ?? $this->status, 'starts_at' => $this->starts_at?->toISOString(), 'ends_at' => $this->ends_at?->toISOString(), 'created_at' => $this->created_at?->toISOString(), ]; } }