using Json.LitJson; using System.Collections.Generic; namespace ServiceClientGenerator.Endpoints { /// /// Object model for Function /// public class Function { public Function(string name, JsonData arguments, string assign = null) { Name = name; foreach (JsonData arg in arguments) { Arguments.Add(Argument.BuildFrom(arg)); } Assign = assign; } public string Name { get; set; } public List Arguments { get; set; } = new List(); // string value | boolean value | Reference | Function /// /// Assign function to internal reference which can be used in other ruleset conditions /// public string Assign { get; set; } } }