function toJSType(config) {
    //config.XXX is either undefined or string
  var falsyNotations = ['false', '0', undefined];
  if (!config.enabled || falsyNotations.indexOf(config.enabled.toLowerCase()) >= 0) {
    config.enabled = false;
  } else {
    config.enabled = true;
  }
  config.port = config.port ? parseInt(config.port, 10) : undefined;
  return config;
}
Transfer the resolved configuration value to proper types: port as number, enabled
as boolean and clientId as string. The 'enabled' flag is valued to false when set
to 'false' or '0'.
@param {object} resolved client side monitoring config
@api private