public DeliveryRulePostArgsCondition(PostArgsMatchConditionDefinition parameters) { if (parameters == null) { throw new ArgumentNullException(nameof(parameters)); } Parameters = parameters; Name = MatchVariable.PostArgs; }
internal static DeliveryRulePostArgsCondition DeserializeDeliveryRulePostArgsCondition(JsonElement element) { PostArgsMatchConditionDefinition parameters = default; MatchVariable name = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parameters")) { parameters = PostArgsMatchConditionDefinition.DeserializePostArgsMatchConditionDefinition(property.Value); continue; } if (property.NameEquals("name")) { name = new MatchVariable(property.Value.GetString()); continue; } } return(new DeliveryRulePostArgsCondition(name, parameters)); }
internal DeliveryRulePostArgsCondition(MatchVariable name, PostArgsMatchConditionDefinition parameters) : base(name) { Parameters = parameters; Name = name; }