code: func AuditConfigFromObject(in interface{}) (*AuditConfig, error) {
  	var cfg AuditConfig
  	if in == nil {
  		return &cfg, nil
  	}
  	if err := utils.ObjectToStruct(in, &cfg); err != nil {
  		return nil, trace.Wrap(err)
  	}
  	return &cfg, nil
  }
docs: // AuditConfigFromObject returns audit config from interface object