internal static OwaspCrsExclusionEntry DeserializeOwaspCrsExclusionEntry(JsonElement element)
        {
            OwaspCrsExclusionEntryMatchVariable         matchVariable         = default;
            OwaspCrsExclusionEntrySelectorMatchOperator selectorMatchOperator = default;
            string selector = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("matchVariable"))
                {
                    matchVariable = new OwaspCrsExclusionEntryMatchVariable(property.Value.GetString());
                    continue;
                }
                if (property.NameEquals("selectorMatchOperator"))
                {
                    selectorMatchOperator = new OwaspCrsExclusionEntrySelectorMatchOperator(property.Value.GetString());
                    continue;
                }
                if (property.NameEquals("selector"))
                {
                    selector = property.Value.GetString();
                    continue;
                }
            }
            return(new OwaspCrsExclusionEntry(matchVariable, selectorMatchOperator, selector));
        }
        public OwaspCrsExclusionEntry(OwaspCrsExclusionEntryMatchVariable matchVariable, OwaspCrsExclusionEntrySelectorMatchOperator selectorMatchOperator, string selector)
        {
            if (selector == null)
            {
                throw new ArgumentNullException(nameof(selector));
            }

            MatchVariable         = matchVariable;
            SelectorMatchOperator = selectorMatchOperator;
            Selector = selector;
        }