src/Entities/Products/Product.php
public function jsonSerialize()
    {
        return [
            'id' => $this->getId(),
            'name' => $this->getName(),
            'description' => $this->getDescription(),
            'shortDescription' => $this->getShortDescription(),
            'sku' => $this->getSku(),
            'price' => $this->getPrice(),
            'attributes' => $this->getAttributes(),
            'options' => $this->getOptionSets(),
            'extras' => $this->getExtraSets(),
            'tags' => $this->getTags(),
            'organisation' => $this->getOrganisation(),
            'enabled' => $this->isEnabled(),
            'available' => $this->isAvailable(),
            'availableOnline' => $this->isAvailableOnline(),
            'images' => $this->getImages(),
            'groupItems' => $this->getGroupItems(),
            'productType' => $this->getProductType(),
            'discount' => $this->getDiscount(),
            'globalProduct' => $this->isGlobalProduct(),
            'additionalInfo' => $this->getAdditionalInfo(),
            'optionsPluFlatMappingEnabled' => $this->isOptionsPluFlatMappingEnabled(),
        ];
    }
public function jsonSerialize()
    {
        return [
            'id' => $this->getId(),
            'name' => $this->getName(),
            'description' => $this->getDescription(),
            'shortDescription' => $this->getShortDescription(),
            'sku' => $this->getSku(),
            'price' => $this->getPrice(),
            'attributes' => $this->getAttributes(),
            'options' => $this->getOptionSets(),
            'extras' => $this->getExtraSets(),
            'tags' => $this->getTags(),
            'organisation' => $this->getOrganisation(),
            'enabled' => $this->isEnabled(),
            'available' => $this->isAvailable(),
            'availableOnline' => $this->isAvailableOnline(),
            'images' => $this->getImages(),
            'groupItems' => $this->getGroupItems(),
            'productType' => $this->getProductType(),
            'discount' => $this->getDiscount(),
            'globalProduct' => $this->isGlobalProduct(),
            'additionalInfo' => $this->getAdditionalInfo(),
            'optionsPluFlatMappingEnabled' => $this->isOptionsPluFlatMappingEnabled(),
        ];
    }
Specify data which should be serialized to JSON