Jaguar-dart/jaguar_serializer

Parsing with discriminator

jaumard opened this issue · 1 comments

In java I used this feature to parse json like this:

[
  { 
    type: 'myClass',...
  }, 
  { 
    type: 'myClass2',...
  }
]

it allow the parser to know which class to instantiate automatically, it's quite nice to have :)
Not sure it's already doable now with jaguar

@jaumard We had this functionality before. I removed it because the API for it was all over the place.

I will reimplement the feature in a minimalistic way.