public static PSSecurityAutomationSource ConvertToPSType(this AutomationSource value) { return(new PSSecurityAutomationSource() { EventSource = value.EventSource, RuleSets = value.RuleSets?.Select(ruleSet => ruleSet.ConvertToPSType()).ToList() }); }
public Base() { source = new AutomationSource(); }