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

Only make properties optional when needed #102

Open DanielSmith1239 opened 1 year ago

DanielSmith1239 commented 1 year ago

Hello, Is there a way to only mark properties as optional when it finds that the value is missing in one instance (like in a list), and otherwise make the property required?