internal static ListQueueServices DeserializeListQueueServices(JsonElement element) { IReadOnlyList <QueueServiceProperties> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } List <QueueServiceProperties> array = new List <QueueServiceProperties>(); foreach (var item in property.Value.EnumerateArray()) { if (item.ValueKind == JsonValueKind.Null) { array.Add(null); } else { array.Add(QueueServiceProperties.DeserializeQueueServiceProperties(item)); } } value = array; continue; } } return(new ListQueueServices(value)); }
internal static ListQueueServices DeserializeListQueueServices(JsonElement element) { Optional <IReadOnlyList <QueueServiceProperties> > value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value")) { List <QueueServiceProperties> array = new List <QueueServiceProperties>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(QueueServiceProperties.DeserializeQueueServiceProperties(item)); } value = array; continue; } } return(new ListQueueServices(Optional.ToList(value))); }