Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FeatureRequest] Prevent models from adding to the "export" section of "index.dart" #38

Open
greyovo opened this issue Jul 15, 2022 · 0 comments

Comments

@greyovo
Copy link

greyovo commented Jul 15, 2022

Problem

Sometimes, a field in a JSON file is an object, and the name of this key may also appear in other JSON.

It's no problem when importing files separately, but the current practice will automatically add the generated classes to the "export" statement in the "index.dart" file, resulting in naming conflicts.

Solution

Provide an option to prevent the generated model class from being automatically added to the "export" section of "index.dart".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant