public static void AddNew(this More more, string?json) { if (string.IsNullOrWhiteSpace(json)) { return; } var items = JsonSerializer.Deserialize <More>(json); if (items == null) { return; } foreach (var item in items.Where(item => !more.ContainsKey(item.Key))) { more.Add(item.Key, Convert.ToString(item.Value)); } }