code: 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;
      }
docs: Render response as array.
  
  @return array