internal static AvailableScopeProperties DeserializeAvailableScopeProperties(JsonElement element)
        {
            Optional <SubscriptionScopeProperties> properties = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("properties"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    properties = SubscriptionScopeProperties.DeserializeSubscriptionScopeProperties(property.Value);
                    continue;
                }
            }
            return(new AvailableScopeProperties(properties.Value));
        }
Пример #2
0
 internal AvailableScopeProperties(SubscriptionScopeProperties properties)
 {
     Properties = properties;
 }