code: public function jsonSerialize()
      {
          $json = [];
  
          if (null !== $this->deploymentSiteId) {
              $json['deploymentSiteId'] = $this->deploymentSiteId;
          }
          if (null !== $this->remoteFile) {
              $json['remoteFile'] = $this->remoteFile;
          }
          if (null !== $this->imageTemplateId) {
              $json['imageTemplateId'] = $this->imageTemplateId;
          }
          if (null !== $this->videoTemplateId) {
              $json['videoTemplateId'] = $this->videoTemplateId;
          }
          if (null !== $this->templateName) {
              $json['templateName'] = $this->templateName;
          }
          if (null !== $this->created) {
              $json['created'] = $this->created->format(\DateTime::ISO8601);
          }
          if (null !== $this->filename) {
              $json['filename'] = $this->filename;
          }
          if (null !== $this->filesize) {
              $json['filesize'] = $this->filesize;
          }
          if (null !== $this->metadata) {
              $json['metadata'] = $this->metadata;
          }
  
          return $json;
      }
docs: Gets all data that should be available in a json representation.
  
  @return array an associative array of the available variables