src/RichMessage/RichMessage.php
public function render()
    {
        if (self::API_V1 == $this->agentVersion) {
            return $this->renderV1();
        } elseif (self::API_V2 == $this->agentVersion) {
            return $this->renderV2();
        } else {
            throw new RuntimeException('Invalid agent version');
        }
    }
public function render()
    {
        if (self::API_V1 == $this->agentVersion) {
            return $this->renderV1();
        } elseif (self::API_V2 == $this->agentVersion) {
            return $this->renderV2();
        } else {
            throw new RuntimeException('Invalid agent version');
        }
    }
Render response as array.

@return array