internal static KeyListResult DeserializeKeyListResult(JsonElement element)
        {
            Optional <IReadOnlyList <KeyData> > value = default;
            Optional <string> nextLink = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("value"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    List <KeyData> array = new List <KeyData>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        array.Add(KeyData.DeserializeKeyData(item));
                    }
                    value = array;
                    continue;
                }
                if (property.NameEquals("nextLink"))
                {
                    nextLink = property.Value.GetString();
                    continue;
                }
            }
            return(new KeyListResult(Optional.ToList(value), nextLink.Value));
        }