Open vietj opened 8 years ago
Obviously we'll be using extensions instead of metaclass programming :)
Metaclass are just there to show a possible implementation next to the problem, the real code would lie within an extension of course.
What I'm more insterested in is to validate the extension implementation. For instance here, the implementation of asType
you're describing would be this one. But it relies on the name a JsonObject property, which is kinda meh :\
Use this:
to provide an
asType
extension method that transforms aJsonObject
into aMap