json_theme_codegen 3.0.0+5
json_theme_codegen: ^3.0.0+5 copied to clipboard
A library to generate the mapping of decoders to the class names they decode
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add json_theme_codegenWith Flutter:
$ flutter pub add json_theme_codegenThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
json_theme_codegen: ^3.0.0+5Alternatively, 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:json_theme_codegen/json_theme_codegen.dart';