Skip to main content

zo_json_to_dart 0.1.0 copy "zo_json_to_dart: ^0.1.0" to clipboard
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_dart

Use 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_dart

With Flutter:

 $ flutter pub add zo_json_to_dart

This 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.0

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:zo_json_to_dart/zo_json_to_dart.dart';
0
likes
150
points
15
downloads

Documentation

API reference

Publisher

verified publisherthezerone.com

Weekly Downloads

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.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, path, recase

More

Packages that depend on zo_json_to_dart