src/Entities/Products/ProductPriceDiscount.php
public function jsonSerialize()
    {
        return [
            'amount' => $this->getAmount(),
            'description' => $this->getDescription(),
            'originalPrice' => $this->getOriginalPrice(),
            'percentage' => $this->getPercentage(),
            'productOwner' => $this->productOwner()
        ];
    }
public function jsonSerialize()
    {
        return [
            'amount' => $this->getAmount(),
            'description' => $this->getDescription(),
            'originalPrice' => $this->getOriginalPrice(),
            'percentage' => $this->getPercentage(),
            'productOwner' => $this->productOwner()
        ];
    }
Specify data which should be serialized to JSON