public GameState(Dictionary<string, object> dict)
{
var json = JSONDict.Wrap (dict);
// the generation key is add in the gamestate serialization in the service
Generation = json.Get<long> (GENERATION_KEY);
Ingredients = json.Get <Dictionary<string, Ingredient>> ("ingredients") ?? new Dictionary<string, Ingredient> ();
}