public BaseParameter Build(ParamJsonNode node) => new StringParameter(node);
private StringParameter(ParamJsonNode node) : base(node) { DefaultValue = node.Values.DefaultValue; Values = ValueJsonNode.LoadValues(node.Values.List, n => n.Value); }
public BaseParameter Build(ParamJsonNode node) => Factories[node.Values.Type].Build(node);
protected BaseParameter(ParamJsonNode node) { Name = node.Name; Description = node.Description; }
public BaseParameter Build(ParamJsonNode node) => new IntegerParameter(node);
private IntegerParameter(ParamJsonNode node) : base(node) { DefaultValue = node.Values.IntegerDefault(); Values = ValueJsonNode.LoadValues(node.Values.List, n => n.IntegerValue()); }