$this->client_id, 'title' => $this->title, 'date' => substr((string) $this->date, 0, 10), 'endDate' => $this->end_date ? substr((string) $this->end_date, 0, 10) : null, 'location' => $this->location ?? '', 'category' => $this->category, 'people' => $this->people ?? [], 'emotion' => (float) $this->emotion, 'milestone' => (bool) $this->milestone, 'customColor' => $this->custom_color, 'gradientPreset' => $this->gradient_preset, 'image' => $this->image, 'keyImageTitle' => $this->key_image_title ?? '', 'note' => $this->note ?? '', 'media' => EventMediaResource::collection($this->whenLoaded('media')), 'syncStatus' => 'synced', 'createdAt' => $this->created_at->getTimestampMs(), 'updatedAt' => $this->updated_at->getTimestampMs(), ]; } }