schultek / dart_mappable

Improved json serialization and data classes with full support for generics, inheritance, customization and more.
https://pub.dev/packages/dart_mappable
MIT License
164 stars 23 forks source link

Macros support #198

Closed hatch01 closed 5 months ago

hatch01 commented 5 months ago

Just a small issue to ask if it is planned for this package that I really love, to be updated to dart macros system? There is an official json package which is a proof of concepts for handling toJson and fromJson which is just a portion of this package which can do much more. This would be a killer feature to support macros when they are released because those are easier to use than build_runner (no need to generate files manually, no need to extend a generated class, no need to add part in the file, generation in real time so auto complete and static analysis in real time)

schultek commented 5 months ago

Yes definitely. But macros support is still to early to work on it imo.

hatch01 commented 5 months ago

Ho, happy to hear that! Yes, I agree that this is definitely still. But this would be wonderful when all the parts will be integrated.