autosafe_json 1.0.2
autosafe_json: ^1.0.2 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