src/Entities/Products/ProductAttribute.php
public function jsonSerialize()
    {
        return [
            'id'          => $this->getId(),
            'name'        => $this->getName(),
            'description' => $this->getDescription(),
            'required'    => $this->isRequired(),
            'options'     => $this->getDescription(),
            'enabled'     => $this->isEnabled(),
        ];
    }
public function jsonSerialize()
    {
        return [
            'id'          => $this->getId(),
            'name'        => $this->getName(),
            'description' => $this->getDescription(),
            'required'    => $this->isRequired(),
            'options'     => $this->getDescription(),
            'enabled'     => $this->isEnabled(),
        ];
    }
Specify data which should be serialized to JSON