code: function serialize (value, columnDefinitions) {
  
      var serializedValue = {};
  
      try {
          Validate.notNull(columnDefinitions, 'columnDefinitions');
          Validate.isObject(columnDefinitions);
          
          Validate.notNull(value);
          Validate.isObject(value);
  
          for (var property in value) {
  
              var columnType = storeHelper.getColumnType(columnDefinitions, property);
              // Skip properties that don't match any column in the table 
              if (!_.isNull(columnType)) {
                  serializedValue[property] = serializeMember(value[property], columnType);
              }
          }
          
      } catch (error) {
          throw new verror.VError(error, 'Failed to serialize value ' + JSON.stringify(value) + '. Column definitions: ' + JSON.stringify(columnDefinitions));
      }
  
      return serializedValue;
  }
docs: Serializes an object into an object that can be stored in a SQLite table, as defined by columnDefinitions.
  @private