using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace CanYouBuildIt.Model { public class DictionaryWrapper { [DataMember] public List> Items { get; set; } public DictionaryWrapper(Dictionary dictionary) { Items = dictionary.ToList(); } public Dictionary ToDico() { return Items.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); } } }