src/Entities/Settings/Setting.php
public function jsonSerialize()
    {
        return [
            'id' => $this->getId(),
            'value' => $this->getValue(),
            'key' => $this->getKey(),
            'startDate' => $this->getStartDate(),
            'endDate' => $this->getEndDate(),
            'organisation' => $this->getOrganisation(),
        ];
    }
public function jsonSerialize()
    {
        return [
            'id' => $this->getId(),
            'value' => $this->getValue(),
            'key' => $this->getKey(),
            'startDate' => $this->getStartDate(),
            'endDate' => $this->getEndDate(),
            'organisation' => $this->getOrganisation(),
        ];
    }
Specify data which should be serialized to JSON