typeson 1.0.1
typeson: ^1.0.1 copied to clipboard
Typed JSON values and a pluggable registry for custom (de)serialization with pretty building and custom parsers.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add typeson
With Flutter:
$ flutter pub add typeson
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
typeson: ^1.0.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:typeson/typeson.dart';