safe_json_annotation 0.2.0 copy "safe_json_annotation: ^0.2.0" to clipboard
safe_json_annotation: ^0.2.0 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.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
0
points
99
downloads

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.

Repository (GitHub)
View/report issues

Topics

#json #serialization #codegen #json-serializable

License

unknown (license)

Dependencies

json_annotation

More

Packages that depend on safe_json_annotation