public function render()
    {
        $mediaObject = [];
        $mediaObject['contentUrl'] = $this->url;

        if ($this->name) {
            $mediaObject['name'] = $this->name;
        }

        if ($this->description) {
            $mediaObject['description'] = $this->description;
        }

        if ($this->icon) {
            $mediaObject['icon'] = ['url' => $this->icon];
        }

        if ($this->image) {
            $mediaObject['largeImage'] = ['url' => $this->image];
        }

        return $mediaObject;
    }