- Added isJsonable property to dart time to fix .toJson/.fromJson generation on unsupported types
- Loosen factory type requirements. If type is not found the factory will return a
null
value - Fixed a bug in the @import declaration
- Added test for @extends, @import and @override
- Fix fromJson generation on type override
- Add test for @mixin
- Remove const in constructor when using @extends of @mixin
- Promote beta
- Fix double fromJson convertion when the input is an int
- Fix bug in imports of nested models
- Improve 'Unable to infer type' error when adding a
null
value in a json.
- Add support for @timestamp to convert unix timestamps automatically from int to DateTime and back
- Guess model name of list objects by their parent key (genres: [{}, {}] will singularize genres and create a subclass called Genre)
- Add support for #num
- Convert string to with toString instead of
as String
for better conversion if value is accidentally an int. - Fix lint warnings
- Make checkOptional default value a builder, so we can avoid infinite recursion in fake models.
- Fix bug in double faker in test factories
- Add double support in factories (Thanks to @saad4software) (#23)
- Fix quiver error message when thats missing (#27)
- Fix typo in missing dependencies error message
- Stable 3.0
- Generate fakers to use in tests
- Add explicit type declaration with value prefix
#
- Pre-release onder beta flag
- Major internal cleanup
- Added support for creating mocks backed with faker
- Breaking change in copyWith so we can support Optional.of(null) in copyWith (and in mocks)
- Use enum value type as return type for value getter
- Preserve original case for fromJson and toJson
- Bugfix in fromJson/toJson/clone list conversions when values in list are primitives
- Bugfix in fromJson list deserialisation
- Bugfix in toJson enum serialisation
- Make generated enum property nullable if the linked property is nullable
- Drop all unused dependencies
- Speed up generation with a factor of 10
- Fixed a generating null-safe code
- Added @ignore option to exclude that declaration from toJson/fromJson
- Dropped json_serializable and make toJson and fromJson ourselves
- Converted code to nullsafety. To soon for enabling sound null safety because almost all dependencies are not ready yet.
- Generated code is now also compatible with nullsafety (Add ? to property key to indicate nullability)
- All generated models are now @immutable
- Generated constructors are now different because we have immutable classes and final properties
- Add basic support for nested json models (fixed imports for used classes)
- Upgrade build_runner and build_runner_core
- Ignore generated enum types in toJson
- Support for Flutter 1.22 (Updated build dependencies)
- Allow nullable support for .clone() method
- Make toJson explicitToJson: true to always call nested classes
toJson
method.
- Bugfix in multiple @imports via a list
- Support for @extends, @mixin and @override
- Some minor improvements and bugfixes
- Enum support
- Better usage peek on doc
- fix file .g.dart not generated
- fix TitleCase error on className
- rename directory
models
to `core
- Initial version, created by Stagehand