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

// <auto-generated/>

#nullable disable

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

namespace Azure.ResourceManager.Sql.Models
{
    public partial class TransparentDataEncryptionActivityListResult
    {
        internal static TransparentDataEncryptionActivityListResult DeserializeTransparentDataEncryptionActivityListResult(JsonElement element)
        {
            IReadOnlyList<TransparentDataEncryptionActivity> value = default;
            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("value"))
                {
                    List<TransparentDataEncryptionActivity> array = new List<TransparentDataEncryptionActivity>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        array.Add(TransparentDataEncryptionActivity.DeserializeTransparentDataEncryptionActivity(item));
                    }
                    value = array;
                    continue;
                }
            }
            return new TransparentDataEncryptionActivityListResult(value);
        }
    }
}
