safe_json_annotation 0.2.2
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-nullableListnow 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.0to matchjson_annotation4.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.