code: function createCheck(src) {
    src = normalizeKeys(src);
  
    var dst = _createServiceCheck(src);
  
    if (src.name) {
      dst.Name = src.name;
    } else {
      throw new Error('name required');
    }
  
    if (src.hasOwnProperty('id')) dst.ID = src.id;
    if (src.hasOwnProperty('serviceid')) dst.ServiceID = src.serviceid;
  
    return dst;
  }
docs: Create standalone check object
  Corresponds to CheckDefinition in Consul Agent Endpoint:
  https://github.com/hashicorp/consul/blob/master/command/agent/structs.go#L47
  Corresponds to AgentCheckRegistration in Consul Go API:
  https://github.com/hashicorp/consul/blob/master/api/agent.go#L57