safe_json_annotation 0.2.1 copy "safe_json_annotation: ^0.2.1" to clipboard
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_annotation

With Flutter:

 $ flutter pub add safe_json_annotation

This 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.1

Alternatively, 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';
1
likes
140
points
99
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Runtime companion for safe_json_serializable — tolerant parse helpers and a re-export of json_annotation, so backend type changes never crash fromJson.

Topics

#json #serialization #codegen #json-serializable

License

MIT (license)

Dependencies

json_annotation

More

Packages that depend on safe_json_annotation