safe_json_annotation 0.2.0
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.