json_to_model 2.3.1 copy "json_to_model: ^2.3.1" to clipboard
json_to_model: ^2.3.1 copied to clipboard

outdated

Generate model class from Json file.

2.3.1 #

  • Use enum value type as return type for value getter

2.3.0 #

  • Preserve original case for fromJson and toJson

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