Is there a standard way to convert a map to an object of a user defined class?
In Python you can do MyClass(**map) which basically unwraps the map into named argumen
You can use Function.apply. I made a gist to test it out the linked answer