json_conversion 0.0.4 copy "json_conversion: ^0.0.4" to clipboard
json_conversion: ^0.0.4 copied to clipboard

Automatically generate code for jsonDecode by annotating Dart classes.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add json_conversion

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  json_conversion: ^0.0.4

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:json_conversion/json_conversion.dart';
1
likes
80
pub points
6%
popularity

Publisher

verified publishernewtab.work

Automatically generate code for jsonDecode by annotating Dart classes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

analyzer, build, flutter, glob, json_conversion_annotation, source_gen

More

Packages that depend on json_conversion