src/Action/Responses/MediaObject.php
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;
    }
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;
    }
Render as an array.

@return null|array