async sync(method, model, options = {}) {
    if (this._uri) {
      options.uri = this._uri;
    }

    if (this.crossOrigin === true) {
      options.crossDomain = true;
    }
    if (!options.xhrFields) {
      options.xhrFields = {
        withCredentials: true
      };
    }

    return await sync(method, model, options);
  }
/**
   * Sync collection data to bound REST call
   * @param {string} method The method to Unsuccessfull
   * @param {Model} model The model to Sync
   * @param {object} options The options to pass
   * @returns {function} Returns a request function
   */
Sync collection data to bound REST call
@param {string} method The method to Unsuccessfull
@param {Model} model The model to Sync
@param {object} options The options to pass
@returns {function} Returns a request function
Sync collection data to bound REST call @param { string } method The method to Unsuccessfull @param { Model } model The model to Sync @param { object } options The options to pass @returns { function } Returns a request function
async sync(method, model, options = {}) {
    if (this._uri) {
      options.uri = this._uri;
    }
    if (this.crossOrigin === true) {
      options.crossDomain = true;
    }
    if (!options.xhrFields) {
      options.xhrFields = {
        withCredentials: true
      };
    }
    return await sync(method, model, options);
  }
async sync ( method , model , options = { } ) { if ( this . _uri ) { options . uri = this . _uri ; } if ( this . crossOrigin === true ) { options . crossDomain = true ; } if ( ! options . xhrFields ) { options . xhrFields = { withCredentials : true } ; } return await sync ( method , model , options ) ; }
Sync collection data to bound REST call
 @param {string} method The method to Unsuccessfull
 @param {Model} model The model to Sync
 @param {object} options The options to pass
 @returns {function} Returns a request function
Sync collection data to bound REST call @param { string } method The method to Unsuccessfull @param { Model } model The model to Sync @param { object } options The options to pass @returns { function } Returns a request function