internal static AzureFirewallSku DeserializeAzureFirewallSku(JsonElement element)
        {
            AzureFirewallSkuName?name = default;
            AzureFirewallSkuTier?tier = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("name"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        continue;
                    }
                    name = new AzureFirewallSkuName(property.Value.GetString());
                    continue;
                }
                if (property.NameEquals("tier"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        continue;
                    }
                    tier = new AzureFirewallSkuTier(property.Value.GetString());
                    continue;
                }
            }
            return(new AzureFirewallSku(name, tier));
        }
        internal static AzureFirewallSku DeserializeAzureFirewallSku(JsonElement element)
        {
            Optional <AzureFirewallSkuName> name = default;
            Optional <AzureFirewallSkuTier> tier = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("name"))
                {
                    name = new AzureFirewallSkuName(property.Value.GetString());
                    continue;
                }
                if (property.NameEquals("tier"))
                {
                    tier = new AzureFirewallSkuTier(property.Value.GetString());
                    continue;
                }
            }
            return(new AzureFirewallSku(Optional.ToNullable(name), Optional.ToNullable(tier)));
        }