safe_json_annotation 0.2.2 copy "safe_json_annotation: ^0.2.2" to clipboard
safe_json_annotation: ^0.2.2 copied to clipboard

Runtime companion for safe_json_serializable — tolerant parse helpers and a re-export of json_annotation, so backend type changes never crash fromJson.

0.2.2 #

  • Docs only: point the install instructions at safe_json_serializable ^0.3.0, whose non-nullable List now falls back to [] instead of throwing. The runtime helpers are unchanged and work with either generator version.

0.2.1 #

  • Raise the SDK constraint to ^3.9.0 to match json_annotation 4.12.0, which already requires it. No code changes.

0.2.0 #

  • Support json_serializable options

0.1.0 #

  • Initial release.
  • Crash-safe fromJson for json_serializable via custom TypeHelpers, with no fork and no per-field annotations.
  • Tolerant parsing for int, double, num, String, bool, DateTime, nested models and lists (incl. list/collection elements).
  • Nullable fields become null on bad data; non-null fields coerce when possible and otherwise fail fast, unless @JsonKey(defaultValue:) provides a fallback.
1
likes
140
points
99
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Runtime companion for safe_json_serializable — tolerant parse helpers and a re-export of json_annotation, so backend type changes never crash fromJson.

Topics

#json #serialization #codegen #json-serializable

License

MIT (license)

Dependencies

json_annotation

More

Packages that depend on safe_json_annotation