json_to_model icon indicating copy to clipboard operation
json_to_model copied to clipboard

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

Open greyovo opened this issue 3 years ago • 0 comments
trafficstars

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".

greyovo avatar Jul 15 '22 09:07 greyovo