|  |  | 1 |  | // Copyright (c) Microsoft Corporation. All rights reserved. | 
|  |  | 2 |  | // Licensed under the MIT License. | 
|  |  | 3 |  |  | 
|  |  | 4 |  | // <auto-generated/> | 
|  |  | 5 |  |  | 
|  |  | 6 |  | #nullable disable | 
|  |  | 7 |  |  | 
|  |  | 8 |  | using System.Collections.Generic; | 
|  |  | 9 |  | using System.Text.Json; | 
|  |  | 10 |  | using Azure.Core; | 
|  |  | 11 |  |  | 
|  |  | 12 |  | namespace Azure.ResourceManager.Storage.Models | 
|  |  | 13 |  | { | 
|  |  | 14 |  |     public partial class ListContainerItems | 
|  |  | 15 |  |     { | 
|  |  | 16 |  |         internal static ListContainerItems DeserializeListContainerItems(JsonElement element) | 
|  |  | 17 |  |         { | 
|  | 16 | 18 |  |             IReadOnlyList<ListContainerItem> value = default; | 
|  | 16 | 19 |  |             string nextLink = default; | 
|  | 72 | 20 |  |             foreach (var property in element.EnumerateObject()) | 
|  |  | 21 |  |             { | 
|  | 20 | 22 |  |                 if (property.NameEquals("value")) | 
|  |  | 23 |  |                 { | 
|  | 16 | 24 |  |                     if (property.Value.ValueKind == JsonValueKind.Null) | 
|  |  | 25 |  |                     { | 
|  |  | 26 |  |                         continue; | 
|  |  | 27 |  |                     } | 
|  | 16 | 28 |  |                     List<ListContainerItem> array = new List<ListContainerItem>(); | 
|  | 80 | 29 |  |                     foreach (var item in property.Value.EnumerateArray()) | 
|  |  | 30 |  |                     { | 
|  | 24 | 31 |  |                         if (item.ValueKind == JsonValueKind.Null) | 
|  |  | 32 |  |                         { | 
|  | 0 | 33 |  |                             array.Add(null); | 
|  |  | 34 |  |                         } | 
|  |  | 35 |  |                         else | 
|  |  | 36 |  |                         { | 
|  | 24 | 37 |  |                             array.Add(ListContainerItem.DeserializeListContainerItem(item)); | 
|  |  | 38 |  |                         } | 
|  |  | 39 |  |                     } | 
|  | 16 | 40 |  |                     value = array; | 
|  | 16 | 41 |  |                     continue; | 
|  |  | 42 |  |                 } | 
|  | 4 | 43 |  |                 if (property.NameEquals("nextLink")) | 
|  |  | 44 |  |                 { | 
|  | 4 | 45 |  |                     if (property.Value.ValueKind == JsonValueKind.Null) | 
|  |  | 46 |  |                     { | 
|  |  | 47 |  |                         continue; | 
|  |  | 48 |  |                     } | 
|  | 4 | 49 |  |                     nextLink = property.Value.GetString(); | 
|  |  | 50 |  |                     continue; | 
|  |  | 51 |  |                 } | 
|  |  | 52 |  |             } | 
|  | 16 | 53 |  |             return new ListContainerItems(value, nextLink); | 
|  |  | 54 |  |         } | 
|  |  | 55 |  |     } | 
|  |  | 56 |  | } |