code: public function jsonSerialize()
      {
          $json = [];
  
          if (null !== $this->categoryId) {
              $json['categoryId'] = $this->categoryId;
          }
          if (null !== $this->filename) {
              $json['filename'] = $this->filename;
          }
          if (null !== $this->parentId) {
              $json['parentId'] = $this->parentId;
          }
          if (null !== $this->replacedBy) {
              $json['replacedBy'] = $this->replacedBy;
          }
          if (null !== $this->name) {
              $json['name'] = $this->name;
          }
          if (null !== $this->deleted) {
              $json['deleted'] = $this->deleted;
          }
          if (null !== $this->properties && !empty($this->properties)) {
              $json['properties'] = $this->properties;
          }
          if (null !== $this->typeId) {
              $json['typeId'] = $this->typeId;
          }
  
          return $json;
      }
docs: Gets all data that should be available in a json representation.
  
  @return array an associative array of the available variables