lib/KurentoClient.js
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;
}
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;
}
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 ; }
Serialize objects using their id

@function module:kurentoClient.KurentoClient~serializeParams

@param {external:Object} params

@return {external:Object}
Serialize objects using their id