src/Entities/Organisations/OrganisationOperatingHours.php
public function jsonSerialize()
    {
        return [
            'id' => $this->getId(),
            'day' => $this->getDay(),
            'openTime' => $this->getOpenTime(),
            'closeTime' => $this->getCloseTime(),
            'dayName' => $this->getDayName(),
        ];
    }
public function jsonSerialize()
    {
        return [
            'id' => $this->getId(),
            'day' => $this->getDay(),
            'openTime' => $this->getOpenTime(),
            'closeTime' => $this->getCloseTime(),
            'dayName' => $this->getDayName(),
        ];
    }
Specify data which should be serialized to JSON