// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System.Text.Json;
using Azure.Core;

namespace Azure.ResourceManager.Network.Models
{
    public partial class P2SVpnConnectionHealth
    {
        internal static P2SVpnConnectionHealth DeserializeP2SVpnConnectionHealth(JsonElement element)
        {
            string sasUrl = default;
            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("sasUrl"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        continue;
                    }
                    sasUrl = property.Value.GetString();
                    continue;
                }
            }
            return new P2SVpnConnectionHealth(sasUrl);
        }
    }
}
