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 18 forks source link

Added support for duplicate structures #23

Closed iamarnas closed 3 years ago

iamarnas commented 3 years ago

Before

Classes All, Home, Away have identical Goals class and all three class override the same class Goals. before_result

After

As you can see in the picture, all three classes have their own generated class definitions and do not overwrite the same file. Skärmavbild 2021-03-26 kl  12 23 32