SqlContainer IOperationSource <SqlContainer> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = SqlContainerData.DeserializeSqlContainerData(document.RootElement);

            return(new SqlContainer(_armClient, data));
        }
        internal static SqlContainerList DeserializeSqlContainerList(JsonElement element)
        {
            Optional <IReadOnlyList <SqlContainerData> > value = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("value"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    List <SqlContainerData> array = new List <SqlContainerData>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        array.Add(SqlContainerData.DeserializeSqlContainerData(item));
                    }
                    value = array;
                    continue;
                }
            }
            return(new SqlContainerList(Optional.ToList(value)));
        }