apn_json2model 2.2.7 copy "apn_json2model: ^2.2.7" to clipboard
apn_json2model: ^2.2.7 copied to clipboard

discontinued
outdated

Generate model class from Json file. Fork of json_to_model.

2.2.7 #

  • Bugfix in fromJson/toJson/clone list conversions when values in list are primitives

2.2.5 #

  • Bugfix in fromJson list deserialisation

2.2.4 #

  • Bugfix in toJson enum serialisation

2.2.3 #

  • Make generated enum property nullable if the linked property is nullable

2.2.2 #

  • Drop all unused dependencies
  • Speed up generation with a factor of 10

2.2.1 #

  • Fixed a generating null-safe code
  • Added @ignore option to exclude that declaration from toJson/fromJson

2.1.0-nullsafety #

  • Dropped json_serializable and make toJson and fromJson ourselves

2.0.0-nullsafety #

  • 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

1.6.1 #

  • Add basic support for nested json models (fixed imports for used classes)

1.6.0 #

  • Upgrade build_runner and build_runner_core

1.5.6 #

  • Ignore generated enum types in toJson

1.5.5 #

  • Support for Flutter 1.22 (Updated build dependencies)

1.5.3 #

  • Allow nullable support for .clone() method

1.5.2 #

  • Make toJson explicitToJson: true to always call nested classes toJson method.

1.5.1 #

  • Bugfix in multiple @imports via a list

1.5.0 #

  • Support for @extends, @mixin and @override
  • Some minor improvements and bugfixes

1.4.0 #

  • Enum support

1.3.13 #

  • Better usage peek on doc

1.3.12 #

  • fix file .g.dart not generated

1.3.11 #

  • fix TitleCase error on className

1.2.0 #

  • rename directory models to `core

1.0.0 #

  • Initial version, created by Stagehand
5
likes
60
pub points
8%
popularity

Publisher

verified publisherappnormal.com

Generate model class from Json file. Fork of json_to_model.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

args, logging, path

More

Packages that depend on apn_json2model