Seems like the layerInfos object is missing a lot of useful data. I'm building a custom legend/toc but I can't see how in esri.dijit.Legend it actually gets the symbology to render. I know this is probably stupidly easy, but I've already searched for 2 hours to no avail 😞