public DeliveryRuleRequestSchemeCondition(RequestSchemeMatchCondition properties) { if (properties == null) { throw new ArgumentNullException(nameof(properties)); } Properties = properties; Name = MatchVariable.RequestScheme; }
internal static DeliveryRuleRequestSchemeCondition DeserializeDeliveryRuleRequestSchemeCondition(JsonElement element) { RequestSchemeMatchCondition parameters = default; MatchVariable name = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parameters")) { parameters = RequestSchemeMatchCondition.DeserializeRequestSchemeMatchCondition(property.Value); continue; } if (property.NameEquals("name")) { name = new MatchVariable(property.Value.GetString()); continue; } } return(new DeliveryRuleRequestSchemeCondition(name, parameters)); }
internal DeliveryRuleRequestSchemeCondition(MatchVariable name, RequestSchemeMatchCondition properties) : base(name) { Properties = properties; Name = name; }