Mapping a nested class generated from XML containing a dynamic object with AutoMapper
I have a class that is automatically generated from XML and contains a property Item
which can be of different types based on the OrderType
enum. Here’s a simplified structure: