Skip to content

json2model 1.1.0

Choose a tag to compare

@venshine venshine released this 29 Oct 14:11
· 6 commits to main since this release

Changes

  • Support Dart 3: SDK constraint changed to ^3.0.0; replace discontinued pedantic / effective_dart with lints
  • Fix: JSON keys that are not valid Dart identifiers (e.g. user-name, class, 1st, _id, it's, $ref) now generate compilable fields; the original key is kept for fromJson / toJson
  • Fix: double fields accept integer JSON values (e.g. 10) instead of throwing a type error

Install

dev_dependencies:
  json2model: ^1.1.0