autosafe_json 1.0.3 copy "autosafe_json: ^1.0.3" to clipboard
autosafe_json: ^1.0.3 copied to clipboard

Automatic safe JSON parsing for Dart/Flutter. Eliminates type mismatch errors by converting all JSON values to safe types. Includes CLI tool to transform your model classes automatically.

1.0.0 #

  • Initial release
  • AutoSafe JSON extension for automatic type conversion
  • CLI tool for transforming existing model classes
  • Helper extensions for type conversions (parseToInt, parseToDouble, parseToBool)
  • Support for nested objects and arrays
  • Automatic null to empty string conversion
  • List<int?>, List<double?>, List<bool?> parsing support
  • Arrow function to block function conversion
  • Smart base class detection (Response classes, extends, first class)

1.0.1 #

  • Added test example
  • SafeJson.asMap() and SafeJson.asList() methods for handling map/list mismatches

1.0.2 #

  • Added SafeJson.asDouble(), SafeJson.asString(), SafeJson.asInt(), SafeJson.asBool() methods for handling type mismatches
  • Added SafeJson.asList() and SafeJson.asMap() methods for handling list/map mismatches
  • preserve primitive types as it is

1.0.3 #

  • Update Example and Readme file
  • Update CHANGELOG file
7
likes
140
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

Automatic safe JSON parsing for Dart/Flutter. Eliminates type mismatch errors by converting all JSON values to safe types. Includes CLI tool to transform your model classes automatically.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on autosafe_json