public DeliveryRuleHttpVersionCondition(HttpVersionMatchConditionParameters parameters)
        {
            if (parameters == null)
            {
                throw new ArgumentNullException(nameof(parameters));
            }

            Parameters = parameters;
            Name       = MatchVariable.HttpVersion;
        }
        internal static DeliveryRuleHttpVersionCondition DeserializeDeliveryRuleHttpVersionCondition(JsonElement element)
        {
            HttpVersionMatchConditionParameters parameters = default;
            MatchVariable name = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("parameters"))
                {
                    parameters = HttpVersionMatchConditionParameters.DeserializeHttpVersionMatchConditionParameters(property.Value);
                    continue;
                }
                if (property.NameEquals("name"))
                {
                    name = new MatchVariable(property.Value.GetString());
                    continue;
                }
            }
            return(new DeliveryRuleHttpVersionCondition(name, parameters));
        }
 internal DeliveryRuleHttpVersionCondition(MatchVariable name, HttpVersionMatchConditionParameters parameters) : base(name)
 {
     Parameters = parameters;
     Name       = name;
 }