text: /**
   * Alfresco Content Services REST API
   * **Search API**  Provides access to the search features of Alfresco Content Services. 
   *
   * OpenAPI spec version: 1
   * 
   *
   * NOTE: This class is auto generated by the swagger code generator program.
   * https://github.com/swagger-api/swagger-codegen.git
   * Do not edit the class manually.
   *
   */
  
  (function(root, factory) {
    if (typeof define === 'function' && define.amd) {
      // AMD. Register as an anonymous module.
      define(['../../../alfrescoApiClient', '../model/SearchEntryHighlight'], factory);
    } else if (typeof module === 'object' && module.exports) {
      // CommonJS-like environments that support module.exports, like Node.
      module.exports = factory(require('../../../alfrescoApiClient'), require('./SearchEntryHighlight'));
    } else {
      // Browser globals (root is window)
      if (!root.AlfrescoContentServicesRestApi) {
        root.AlfrescoContentServicesRestApi = {};
      }
      root.AlfrescoContentServicesRestApi.SearchEntry = factory(root.AlfrescoContentServicesRestApi.ApiClient, root.AlfrescoContentServicesRestApi.SearchEntryHighlight);
    }
  }(this, function(ApiClient, SearchEntryHighlight) {
    'use strict';
  
  
  
  
    /**
     * The SearchEntry model module.
     * @module model/SearchEntry
     * @version 1
     */
  
    /**
     * Constructs a new <code>SearchEntry</code>.
     * @alias module:model/SearchEntry
     * @class
     */
    var exports = function() {
      var _this = this;
  
  
  
    };
  
    /**
     * Constructs a <code>SearchEntry</code> from a plain JavaScript object, optionally creating a new instance.
     * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
     * @param {Object} data The plain JavaScript object bearing properties of interest.
     * @param {module:model/SearchEntry} obj Optional instance to populate.
     * @return {module:model/SearchEntry} The populated <code>SearchEntry</code> instance.
     */
    exports.constructFromObject = function(data, obj) {
      if (data) {
        obj = obj || new exports();
  
        if (data.hasOwnProperty('score')) {
          obj['score'] = ApiClient.convertToType(data['score'], 'Number');
        }
        if (data.hasOwnProperty('highlight')) {
          obj['highlight'] = ApiClient.convertToType(data['highlight'], [SearchEntryHighlight]);
        }
      }
      return obj;
    }
  
    /**
     * The score for this row
     * @member {Number} score
     */
    exports.prototype['score'] = undefined;
    /**
     * Highlight fragments if requested and available. A match can happen in any of the requested field. 
     * @member {Array.<module:model/SearchEntryHighlight>} highlight
     */
    exports.prototype['highlight'] = undefined;
  
  
  
    return exports;
  }));
  
  
  