k-paxian / dart-json-mapper

Serialize / Deserialize Dart Objects to / from JSON
https://pub.dev/packages/dart_json_mapper
Other
400 stars 33 forks source link

Dart Json Mapper looks like don't generate valueDecorators when models in different package #216

Closed Shader-Killer closed 1 year ago

Shader-Killer commented 1 year ago

I have a dart package contains my models, everything works fine, except generate generic class valueDecorators. If model in the same package with generate_for dart file, valueDecorators will appear. If I move model, valueDecorators will disappear, it's an empty array.

k-paxian commented 1 year ago

You are probably interested in a multi-project setup. There should be a good doc on how to configure it 😄 but unfortunately it's not there yet. Anyway, you could learn from example how to set it up. Here is another example