safe_json_serializable 0.1.0 copy "safe_json_serializable: ^0.1.0" to clipboard
safe_json_serializable: ^0.1.0 copied to clipboard

Crash-safe drop-in for json_serializable: runs its generator with tolerant TypeHelpers so backend type changes never crash fromJson. No fork, no per-field annotations.

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
102
downloads

Publisher

unverified uploader

Weekly Downloads

Crash-safe drop-in for json_serializable: runs its generator with tolerant TypeHelpers so backend type changes never crash fromJson. No fork, no per-field annotations.

Repository (GitHub)
View/report issues

Topics

#json #codegen #build-runner #json-serializable

License

unknown (license)

Dependencies

analyzer, build, json_serializable, source_gen

More

Packages that depend on safe_json_serializable