*/ #[\Override] public function toArray(Request $request): array { return [ 'start_at' => $this->timeSlot->getAt()->format(\DateTimeInterface::RFC3339), 'end_at' => $this->timeSlot->getEndsAt()->format(\DateTimeInterface::RFC3339), 'duration' => CarbonInterval::instance($this->timeSlot->getFor())->spec(), ]; } }