code: public function jsonSerialize()
      {
          $json = [];
  
          if (null !== $this->id) {
              $json['id'] = $this->id;
          }
          if (null !== $this->mimetype) {
              $json['mimetype'] = $this->mimetype;
          }
          if (null !== $this->description) {
              $json['description'] = $this->description;
          }
          if (null !== $this->imagetemplate) {
              $json['imagetemplate'] = $this->imagetemplate;
          }
          if (null !== $this->videotemplate) {
              $json['videotemplate'] = $this->videotemplate;
          }
          if (null !== $this->defaultextension) {
              $json['defaultextension'] = $this->defaultextension;
          }
          if (null !== $this->classification) {
              $json['classification'] = $this->classification;
          }
  
          return $json;
      }
docs: Gets all data that should be available in a json representation.
  
  @return array an associative array of the available variables