I have a .net service returning a dto containing a property of type dictionary & I would like to desirialize it in Angular into a dto containing a property of type Map.
I tried to achieve this by simply defining the type of the property of the dto as a Map & it does transpile but fails in runtime when I try to use Map methods such as ForEach() as the runtime type of the property is Object & not Map as I defined it.
Is there a way to achieve this without creating another type & mapping it entry by entry?