src/Api/BaseClient.php
private function parseResponse(ResponseInterface $response = null): array
    {
        $body = $response
            ? (string) $response->getBody()
            : null;

        return $body
            ? guzzle_json_decode($body, true)
            : [];
    }
private function parseResponse(ResponseInterface $response = null): array
    {
        $body = $response
            ? (string) $response->getBody()
            : null;

        return $body
            ? guzzle_json_decode($body, true)
            : [];
    }
private function parseResponse ( ResponseInterface $ response = null ) : array { $ body = $ response ? ( string ) $ response -> getBody ( ) : null ; return $ body ? guzzle_json_decode ( $ body , true ) : [ ] ; }
Parse the body of a JSON response.

@param ResponseInterface|null $response

@return array
Parse the body of a JSON response .