eredo / dartson

Dartson is a Dart library that can be used to convert Dart objects into a JSON string.
MIT License
79 stars 29 forks source link

Adds support for subclasses #39

Closed seanmccleary closed 7 years ago

seanmccleary commented 7 years ago

Fix for #7 (and I think maybe #37 too?)

eredo commented 7 years ago

Thanks for the pull request. The problem is that this would only support subclasses for mirror based implementation and will cause unexpected behavior for the dart2js result. An implementation into dartson needs to fulfill both requirements. I'm still working on a possible solution for this problem.

seanmccleary commented 7 years ago

Oh, I understand. Thanks for the explanation. Anything I can do to help? This is functionality that I would very much like to have. I see there are other solutions out there to deserialize JSON into typed objects, but only on the server side using mirrors. Can't find anything for the web. Even Angular2, it seems, can only turn JSON into untyped objects.

If there's anything I can do to help, just let me know.