json2dartgen 1.1.0 copy "json2dartgen: ^1.1.0" to clipboard
json2dartgen: ^1.1.0 copied to clipboard

A CLI tool to generate Dart models from JSON, with json_serializable support and copyWith methods.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add json2dartgen

With Flutter:

 $ flutter pub add json2dartgen

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

dependencies:
  json2dartgen: ^1.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:json2dartgen/json2dartgen.dart';
2
likes
160
points
39
downloads

Publisher

verified publishersalehtz.ir

Weekly Downloads

A CLI tool to generate Dart models from JSON, with json_serializable support and copyWith methods.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, path

More

Packages that depend on json2dartgen