src/Entities/Products/ProductDiscount.php
public function jsonSerialize()
    {
        return [
            'id'               => $this->getId(),
            'organisation'     => $this->getOrganisation(),
            'discountProvider' => $this->getDiscountProvider(),
            'brand'            => $this->getBrand(),
            'connection'       => $this->getConnection(),
            'productItem'      => $this->getProductItem(),
            'amount'           => $this->getAmount(),
            'startDate'        => $this->getStartDate(),
            'endDate'          => $this->getEndDate(),
            'enabled'          => $this->isEnabled(),
        ];
    }
public function jsonSerialize()
    {
        return [
            'id'               => $this->getId(),
            'organisation'     => $this->getOrganisation(),
            'discountProvider' => $this->getDiscountProvider(),
            'brand'            => $this->getBrand(),
            'connection'       => $this->getConnection(),
            'productItem'      => $this->getProductItem(),
            'amount'           => $this->getAmount(),
            'startDate'        => $this->getStartDate(),
            'endDate'          => $this->getEndDate(),
            'enabled'          => $this->isEnabled(),
        ];
    }
Specify data which should be serialized to JSON