internal static VnetRoute DeserializeVnetRoute(JsonElement element)
        {
            IList <StaticRoute> staticRoutes = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("staticRoutes"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        continue;
                    }
                    List <StaticRoute> array = new List <StaticRoute>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        if (item.ValueKind == JsonValueKind.Null)
                        {
                            array.Add(null);
                        }
                        else
                        {
                            array.Add(StaticRoute.DeserializeStaticRoute(item));
                        }
                    }
                    staticRoutes = array;
                    continue;
                }
            }
            return(new VnetRoute(staticRoutes));
        }
        internal static VnetRoute DeserializeVnetRoute(JsonElement element)
        {
            Optional <IList <StaticRoute> > staticRoutes = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("staticRoutes"))
                {
                    List <StaticRoute> array = new List <StaticRoute>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        array.Add(StaticRoute.DeserializeStaticRoute(item));
                    }
                    staticRoutes = array;
                    continue;
                }
            }
            return(new VnetRoute(Optional.ToList(staticRoutes)));
        }