public SslProtocolMatchConditionParameters(SslProtocolMatchConditionParametersTypeName typeName, SslProtocolOperator @operator)
 {
     TypeName    = typeName;
     Operator    = @operator;
     MatchValues = new ChangeTrackingList <SslProtocol>();
     Transforms  = new ChangeTrackingList <TransformCategory>();
 }
 internal SslProtocolMatchConditionParameters(SslProtocolMatchConditionParametersTypeName typeName, SslProtocolOperator @operator, bool?negateCondition, IList <SslProtocol> matchValues, IList <TransformCategory> transforms)
 {
     TypeName        = typeName;
     Operator        = @operator;
     NegateCondition = negateCondition;
     MatchValues     = matchValues;
     Transforms      = transforms;
 }
        internal static SslProtocolMatchConditionParameters DeserializeSslProtocolMatchConditionParameters(JsonElement element)
        {
            SslProtocolMatchConditionParametersTypeName typeName  = default;
            SslProtocolOperator                   @operator       = default;
            Optional <bool>                       negateCondition = default;
            Optional <IList <SslProtocol> >       matchValues     = default;
            Optional <IList <TransformCategory> > transforms      = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("typeName"))
                {
                    typeName = new SslProtocolMatchConditionParametersTypeName(property.Value.GetString());
                    continue;
                }
                if (property.NameEquals("operator"))
                {
                    @operator = new SslProtocolOperator(property.Value.GetString());
                    continue;
                }
                if (property.NameEquals("negateCondition"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    negateCondition = property.Value.GetBoolean();
                    continue;
                }
                if (property.NameEquals("matchValues"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    List <SslProtocol> array = new List <SslProtocol>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        array.Add(new SslProtocol(item.GetString()));
                    }
                    matchValues = array;
                    continue;
                }
                if (property.NameEquals("transforms"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    List <TransformCategory> array = new List <TransformCategory>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        array.Add(new TransformCategory(item.GetString()));
                    }
                    transforms = array;
                    continue;
                }
            }
            return(new SslProtocolMatchConditionParameters(typeName, @operator, Optional.ToNullable(negateCondition), Optional.ToList(matchValues), Optional.ToList(transforms)));
        }