dartify_json 0.0.2
dartify_json: ^0.0.2 copied to clipboard
Dart Class Generator from JSON is a tool that automatically converts JSON files into Dart classes. It creates complete classes with fields, constructors, fromJson, and toJson methods, making it easy t [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add dartify_jsonThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
dartify_json: ^0.0.2Alternatively, 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:dartify_json/main.dart';