zo_json_to_dart 0.1.0
zo_json_to_dart: ^0.1.0 copied to clipboard
CLI that generates a strongly-typed Dart model class from a sample JSON file, similar to quicktype.io. Supports standard, freezed, and json_serializable output styles.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate zo_json_to_dartUse it
The package has the following executables:
$ zo_json_to_dart
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add zo_json_to_dartWith Flutter:
$ flutter pub add zo_json_to_dartThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
zo_json_to_dart: ^0.1.0Alternatively, 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:zo_json_to_dart/zo_json_to_dart.dart';