autosafe_json 1.0.3
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.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate autosafe_jsonUse it
The package has the following executables:
$ autosafe
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add autosafe_jsonWith Flutter:
$ flutter pub add autosafe_jsonThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
autosafe_json: ^1.0.3Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:autosafe_json/autosafe_json.dart';