internal static TableQueryResponse DeserializeTableQueryResponse(JsonElement element)
        {
            Optional <string> odataMetadata             = default;
            Optional <IReadOnlyList <TableItem> > value = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("odata.metadata"))
                {
                    odataMetadata = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("value"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    List <TableItem> array = new List <TableItem>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        array.Add(TableItem.DeserializeTableItem(item));
                    }
                    value = array;
                    continue;
                }
            }
            return(new TableQueryResponse(odataMetadata.Value, Optional.ToList(value)));
        }
        internal static TableQueryResponse DeserializeTableQueryResponse(JsonElement element)
        {
            string odataMetadata            = default;
            IReadOnlyList <TableItem> value = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("odata.metadata"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        continue;
                    }
                    odataMetadata = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("value"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        continue;
                    }
                    List <TableItem> array = new List <TableItem>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        if (item.ValueKind == JsonValueKind.Null)
                        {
                            array.Add(null);
                        }
                        else
                        {
                            array.Add(TableItem.DeserializeTableItem(item));
                        }
                    }
                    value = array;
                    continue;
                }
            }
            return(new TableQueryResponse(odataMetadata, value));
        }