hiranthaR / Json-to-Dart-Model

Json to Dart Model extension can convert JSON objects into Dart data classes. It supports pure Dart class conversion, Flutter-recommended JSON serialization using annotations, Freezed support, Effective Dart:Style, and many more features. Currently, it has more than 135,000 installs.
https://marketplace.visualstudio.com/items?itemName=hirantha.json-to-dart
MIT License
93 stars 17 forks source link

Generate JSON from the multi files #68

Closed iamarnas closed 2 years ago

iamarnas commented 3 years ago

Add the ability to generate JSON from multiple files.

Thanks for idea to @Prn-Ice

iamarnas commented 3 years ago

@Miamoto-Musashi @Prn-Ice Hi 👋 I work now with JSON from multiple files. And my setup now is: Generator read files from the expected map directory json_models. Supported files are **.json and **.jsonc the rest will be ignored. Inside the files can be a single JSON object or list with JSON objects, just required to add a class name for every object like always.

Do you have any suggestions with your experience?

iamarnas commented 2 years ago

@Prn-Ice Hi 👋

You wanted multiple json file support and now it available in the latest version. Can you test it when you have time and or it's what you expected?

iamarnas commented 2 years ago

Closing it due to #65

Prn-Ice commented 2 years ago

@iamarnas, very sorry for the delayed response, I haven't used the extension in a while because I had to switch focus to an older project that needed a lot of work.

I'll be testing and reporting my experience in the coming days, thank you so much for adding it.

iamarnas commented 2 years ago

@Prn-Ice No problem at all it's not big deal 😉 Hope you will like news features.