internal RequestSchemeMatchConditionParameters(RequestSchemeMatchConditionParametersOdataType odataType, RequestSchemeMatchConditionParametersOperator @operator, bool?negateCondition, IList <RequestSchemeMatchConditionParametersMatchValuesItem> matchValues)
 {
     OdataType       = odataType;
     Operator        = @operator;
     NegateCondition = negateCondition;
     MatchValues     = matchValues;
 }
        internal static RequestSchemeMatchConditionParameters DeserializeRequestSchemeMatchConditionParameters(JsonElement element)
        {
            RequestSchemeMatchConditionParametersOdataType odataType = default;
            RequestSchemeMatchConditionParametersOperator  @operator = default;
            Optional <bool> negateCondition = default;
            Optional <IList <RequestSchemeMatchConditionParametersMatchValuesItem> > matchValues = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("@odata.type"))
                {
                    odataType = new RequestSchemeMatchConditionParametersOdataType(property.Value.GetString());
                    continue;
                }
                if (property.NameEquals("operator"))
                {
                    @operator = new RequestSchemeMatchConditionParametersOperator(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 <RequestSchemeMatchConditionParametersMatchValuesItem> array = new List <RequestSchemeMatchConditionParametersMatchValuesItem>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        array.Add(new RequestSchemeMatchConditionParametersMatchValuesItem(item.GetString()));
                    }
                    matchValues = array;
                    continue;
                }
            }
            return(new RequestSchemeMatchConditionParameters(odataType, @operator, Optional.ToNullable(negateCondition), Optional.ToList(matchValues)));
        }
 public RequestSchemeMatchConditionParameters(RequestSchemeMatchConditionParametersOdataType odataType, RequestSchemeMatchConditionParametersOperator @operator)
 {
     OdataType   = odataType;
     Operator    = @operator;
     MatchValues = new ChangeTrackingList <RequestSchemeMatchConditionParametersMatchValuesItem>();
 }