safe_json_annotation 0.2.1
safe_json_annotation: ^0.2.1 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.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add safe_json_annotationWith Flutter:
$ flutter pub add safe_json_annotationThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
safe_json_annotation: ^0.2.1Alternatively, 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:safe_json_annotation/safe_json_annotation.dart';