decodeResponse(response) {
      if ($options.format === 'json') {
        if (!response) {
          return {};
        }
        return JSON.parse(response);
      }

      return response;
    }
/**
     * Get a JSON response and transform to JSON
     */
Get a JSON response and transform to JSON
Get a JSON response and transform to JSON
decodeResponse(response) {
      if ($options.format === 'json') {
        if (!response) {
          return {};
        }
        return JSON.parse(response);
      }
      return response;
    }
decodeResponse ( response ) { if ( $options . format === 'json' ) { if ( ! response ) { return { } ; } return JSON . parse ( response ) ; } return response ; }
Get a JSON response and transform to JSON
Get a JSON response and transform to JSON