public DeliveryRuleQueryStringCondition(QueryStringMatchConditionDefinition parameters)
        {
            if (parameters == null)
            {
                throw new ArgumentNullException(nameof(parameters));
            }

            Parameters = parameters;
            Name       = MatchVariable.QueryString;
        }
        internal static DeliveryRuleQueryStringCondition DeserializeDeliveryRuleQueryStringCondition(JsonElement element)
        {
            QueryStringMatchConditionDefinition parameters = default;
            MatchVariable name = default;

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