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