Dynamic Menu With Values Returned From API Response

I make a call to an API which gives me an array of dictionary items that I would like to loop into individual MenuItems labeled by the values found in the individual array indexes.  The Menu2 API-doc says it's possible(?), but I can't find any current information how to actually do it dynamically. I am only finding information with static string labels.

Any current methods, resources, or help would be immensely helpful.