internal static AzureFirewallNatRCAction DeserializeAzureFirewallNatRCAction(JsonElement element) { Optional <AzureFirewallNatRCActionType> type = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("type")) { type = new AzureFirewallNatRCActionType(property.Value.GetString()); continue; } } return(new AzureFirewallNatRCAction(Optional.ToNullable(type))); }
internal static AzureFirewallNatRCAction DeserializeAzureFirewallNatRCAction(JsonElement element) { AzureFirewallNatRCActionType?type = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("type")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } type = new AzureFirewallNatRCActionType(property.Value.GetString()); continue; } } return(new AzureFirewallNatRCAction(type)); }