I have a method return type of map which I need to convert to
list<Order.Product>.Here Order is main class and ProductOrder is inner class which has variables.
I have assigned the map to list in below way in test class but I am getting error as Illegal assignment from
Map<Id,String> to List<Order.ProductOrder>
List<Order.ProductOrder> ordList = OrderService.build(oIds);
Here OrderService classname and build method name which has return type Map. How to resolve this issue