code: function serializeParams(params) {
    for (var key in params) {
      var param = params[key];
      if (param instanceof MediaObject || (param && (params.object !==
          undefined ||
          params.hub !== undefined || params.sink !== undefined))) {
        if (param && param.id != null) {
          params[key] = param.id;
        }
      }
    };
  
    return params;
  }
docs: Serialize objects using their id
  
  @function module:kurentoClient.KurentoClient~serializeParams
  
  @param {external:Object} params
  
  @return {external:Object}