public DeliveryRuleRequestMethodCondition(RequestMethodMatchCondition properties) { if (properties == null) { throw new ArgumentNullException(nameof(properties)); } Properties = properties; Name = MatchVariable.RequestMethod; }
internal static DeliveryRuleRequestMethodCondition DeserializeDeliveryRuleRequestMethodCondition(JsonElement element) { RequestMethodMatchCondition parameters = default; MatchVariable name = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parameters")) { parameters = RequestMethodMatchCondition.DeserializeRequestMethodMatchCondition(property.Value); continue; } if (property.NameEquals("name")) { name = new MatchVariable(property.Value.GetString()); continue; } } return(new DeliveryRuleRequestMethodCondition(name, parameters)); }
internal DeliveryRuleRequestMethodCondition(MatchVariable name, RequestMethodMatchCondition properties) : base(name) { Properties = properties; Name = name; }