__validateApiResponse(apiClientResponse) {
        let isResponseCodeValid = apiClientResponse.statusCode >= 200 && apiClientResponse.statusCode < 300;
        let responseBody;
        try {
            responseBody = apiClientResponse.body && JSON.parse(apiClientResponse.body);
        } catch(err) {
            responseBody = apiClientResponse.body;
        }

        if (isResponseCodeValid) {
            return responseBody;
        }

        throw new ServiceError(apiClientResponse.statusCode, JSON.stringify(responseBody));
    }
/**
     * Performs validation logic on api responses and throws an error if a problem is found
     *
     * @param {ApiClientResponse} apiClientResponse response returned from the API call
     * @returns {Object | string}
     * @private
     * @memberOf DeviceAddressService
     */
Performs validation logic on api responses and throws an error if a problem is found
@param {ApiClientResponse} apiClientResponse response returned from the API call
@returns {Object | string}
@private
@memberOf DeviceAddressService
Performs validation logic on api responses and throws an error if a problem is found @param { ApiClientResponse } apiClientResponse response returned from the API call @returns { Object | string } @private @memberOf DeviceAddressService
__validateApiResponse(apiClientResponse) {
        let isResponseCodeValid = apiClientResponse.statusCode >= 200 && apiClientResponse.statusCode < 300;
        let responseBody;
        try {
            responseBody = apiClientResponse.body && JSON.parse(apiClientResponse.body);
        } catch(err) {
            responseBody = apiClientResponse.body;
        }
        if (isResponseCodeValid) {
            return responseBody;
        }
        throw new ServiceError(apiClientResponse.statusCode, JSON.stringify(responseBody));
    }
__validateApiResponse ( apiClientResponse ) { let isResponseCodeValid = apiClientResponse . statusCode >= 200 && apiClientResponse . statusCode < 300 ; let responseBody ; try { responseBody = apiClientResponse . body && JSON . parse ( apiClientResponse . body ) ; } catch ( err ) { responseBody = apiClientResponse . body ; } if ( isResponseCodeValid ) { return responseBody ; } throw new ServiceError ( apiClientResponse . statusCode , JSON . stringify ( responseBody ) ) ; }
Performs validation logic on api responses and throws an error if a problem is found
 @param {ApiClientResponse} apiClientResponse response returned from the API call
 @returns {Object | string}
 @private
 @memberOf DeviceAddressService
Performs validation logic on api responses and throws an error if a problem is found @param { ApiClientResponse } apiClientResponse response returned from the API call @returns { Object | string } @private @memberOf DeviceAddressService