src/DorcasResponse.php
public function getData(bool $asObject = false)
    {
        $data = $this->data['data'] ?? $this->data;
        return $asObject && $data !== null ? (object) $data : $data;
    }
public function getData(bool $asObject = false)
    {
        $data = $this->data['data'] ?? $this->data;
        return $asObject && $data !== null ? (object) $data : $data;
    }
public function getData ( bool $ asObject = false ) { $ data = $ this -> data [ 'data' ] ?? $ this -> data ; return $ asObject && $ data !== null ? ( object ) $ data : $ data ; }
Returns the value of the "data" key in the response if available, else it returns the parsed response.

@param bool $asObject

@return array|mixed|object
Returns the value of the data key in the response if available else it returns the parsed response .