src/Action/Questions/ListCard/Option.php
public function render()
    {
        $out = [];
        $optionInfo = [];

        $optionInfo['key'] = $this->key;
        $optionInfo['synonyms'] = $this->synonyms;
        $out['optionInfo'] = $optionInfo;

        if ($this->title) {
            $out['title'] = $this->title;
        }

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

        if ($this->imageUrl) {
            $out['image'] = [
                'url'               => $this->imageUrl,
                'accessibilityText' => ($this->accessibilityText) ? $this->accessibilityText : 'accessibility text',
            ];
        }

        return $out;
    }
public function render()
    {
        $out = [];
        $optionInfo = [];

        $optionInfo['key'] = $this->key;
        $optionInfo['synonyms'] = $this->synonyms;
        $out['optionInfo'] = $optionInfo;

        if ($this->title) {
            $out['title'] = $this->title;
        }

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

        if ($this->imageUrl) {
            $out['image'] = [
                'url'               => $this->imageUrl,
                'accessibilityText' => ($this->accessibilityText) ? $this->accessibilityText : 'accessibility text',
            ];
        }

        return $out;
    }
Render response as array.

@return array