public static T ToObject <TKey, T>(this Dictionary <TKey, T> dictionary) where T : new()
 {
     return(DataSerializer.ConvertDictionaryToObjectOfType(dictionary));
 }