Model/MediaVersion.php
public function jsonSerialize()
    {
        $json = [];

        if (null !== $this->mediaId) {
            $json['mediaId'] = $this->mediaId;
        }
        if (null !== $this->filename) {
            $json['filename'] = $this->filename;
        }
        if (null !== $this->uploaded) {
            $json['uploaded'] = $this->uploaded->format(\DateTime::ISO8601);
        }
        if (null !== $this->replacedBy) {
            $json['replacedBy'] = $this->replacedBy;
        }
        if (null !== $this->comment) {
            $json['comment'] = $this->comment;
        }
        if (null !== $this->userId) {
            $json['userId'] = $this->userId;
        }
        if (null !== $this->version) {
            $json['version'] = $this->version;
        }

        return $json;
    }
public function jsonSerialize()
    {
        $json = [];

        if (null !== $this->mediaId) {
            $json['mediaId'] = $this->mediaId;
        }
        if (null !== $this->filename) {
            $json['filename'] = $this->filename;
        }
        if (null !== $this->uploaded) {
            $json['uploaded'] = $this->uploaded->format(\DateTime::ISO8601);
        }
        if (null !== $this->replacedBy) {
            $json['replacedBy'] = $this->replacedBy;
        }
        if (null !== $this->comment) {
            $json['comment'] = $this->comment;
        }
        if (null !== $this->userId) {
            $json['userId'] = $this->userId;
        }
        if (null !== $this->version) {
            $json['version'] = $this->version;
        }

        return $json;
    }
Gets all data that should be available in a json representation.

@return array an associative array of the available variables