I have a json string which I want to deserialise into a C#.
Our current process is preserving the $type in each event:
We are exploring ways of allowing us to remove this dependency, and use “SalesTransactionCompletedEvent” from the EventType.
The problem is, we are struggling to come up with a clean way of managing the deserialisation (at the moment, the only idea we have is a Dictionary with EventType as the key, and C# Type as value.
Anyone got any tips on this?