code: function serializeValue(value) {
  
      var type;
      if ( _.isNull(value) ) {
          type = ColumnType.Object;
      } else if ( _.isNumber(value) ) {
          type = ColumnType.Real;
      } else if ( _.isDate(value) ) {
          type = ColumnType.Date;
      } else if ( _.isBool(value) ) {
          type = ColumnType.Boolean;
      } else if ( _.isString(value) ) {
          type = ColumnType.String;
      } else if ( _.isArray(value) ) {
          type = ColumnType.Array;
      } else if ( _.isObject(value) ) {
          type = ColumnType.Object;
      } else {
          type = ColumnType.Object;
      }
  
      return serializeMember(value, type);
  }
docs: Serializes a JS value to its equivalent that will be stored in the store.
  This method is useful while querying to convert values to their store representations.
  @private