Argument of type 'KeyValuePair<string, object>' cannot be used for parameter 'item' of type 'KeyValuePair<string, object?>' in 'void ICollection<KeyValuePair<string, object?>>.Add(KeyValuePair<string, object?> item)' due to differences in the nullability of reference types.