src/Response/IncludeResponseTrait.php
public static function buildFromResponse( ResponseInterface $response ){

        $body = json_decode($response->getBody(), true);

        // The expected response should always be JSON, thus now an array.
        if( !is_array($body) ){
            throw new Exception\ApiException( 'Malformed JSON response from server', $response->getStatusCode(), $response );
        }

        $me = new static( $body );

        $me->setResponse( $response );

        return $me;

    }
public static function buildFromResponse( ResponseInterface $response ){

        $body = json_decode($response->getBody(), true);

        // The expected response should always be JSON, thus now an array.
        if( !is_array($body) ){
            throw new Exception\ApiException( 'Malformed JSON response from server', $response->getStatusCode(), $response );
        }

        $me = new static( $body );

        $me->setResponse( $response );

        return $me;

    }
---