public DeliveryRuleCacheKeyQueryStringAction(CacheKeyQueryStringActionParameters parameters)
        {
            if (parameters == null)
            {
                throw new ArgumentNullException(nameof(parameters));
            }

            Parameters = parameters;
            Name       = DeliveryRuleActionType.CacheKeyQueryString;
        }
        internal static DeliveryRuleCacheKeyQueryStringAction DeserializeDeliveryRuleCacheKeyQueryStringAction(JsonElement element)
        {
            CacheKeyQueryStringActionParameters parameters = default;
            DeliveryRuleAction name = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("parameters"))
                {
                    parameters = CacheKeyQueryStringActionParameters.DeserializeCacheKeyQueryStringActionParameters(property.Value);
                    continue;
                }
                if (property.NameEquals("name"))
                {
                    name = new DeliveryRuleAction(property.Value.GetString());
                    continue;
                }
            }
            return(new DeliveryRuleCacheKeyQueryStringAction(name, parameters));
        }
 internal DeliveryRuleCacheKeyQueryStringAction(DeliveryRuleActionType name, CacheKeyQueryStringActionParameters parameters) : base(name)
 {
     Parameters = parameters;
     Name       = name;
 }