internal static VirtualHubRouteTable DeserializeVirtualHubRouteTable(JsonElement element)
        {
            IList <VirtualHubRoute> routes = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("routes"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        continue;
                    }
                    List <VirtualHubRoute> array = new List <VirtualHubRoute>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        if (item.ValueKind == JsonValueKind.Null)
                        {
                            array.Add(null);
                        }
                        else
                        {
                            array.Add(VirtualHubRoute.DeserializeVirtualHubRoute(item));
                        }
                    }
                    routes = array;
                    continue;
                }
            }
            return(new VirtualHubRouteTable(routes));
        }
        internal static VirtualHubRouteTable DeserializeVirtualHubRouteTable(JsonElement element)
        {
            Optional <IList <VirtualHubRoute> > routes = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("routes"))
                {
                    List <VirtualHubRoute> array = new List <VirtualHubRoute>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        array.Add(VirtualHubRoute.DeserializeVirtualHubRoute(item));
                    }
                    routes = array;
                    continue;
                }
            }
            return(new VirtualHubRouteTable(Optional.ToList(routes)));
        }