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.
Describe the bug If let us say we provide class name as
User
and if our json looks like:The class generated then contains syntax errors.
Expected behavior An error or some kind of prefix in nested classes name having the exact same names.