json_model_gen 0.0.8 copy "json_model_gen: ^0.0.8" to clipboard
json_model_gen: ^0.0.8 copied to clipboard

A Dart tool to generate model classes from JSON with fromJson, toJson, copyWith, and equality overrides.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate json_model_gen

Use it

The package has the following executables:

$ json_model_gen

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add json_model_gen

With Flutter:

 $ flutter pub add json_model_gen

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

dependencies:
  json_model_gen: ^0.0.8

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:json_model_gen/json_model_gen.dart';
4
likes
160
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart tool to generate model classes from JSON with fromJson, toJson, copyWith, and equality overrides.

Repository (GitHub)
View/report issues

Topics

#json #model #codegen #dart #cli

Documentation

API reference

License

MIT (license)

Dependencies

args, recase

More

Packages that depend on json_model_gen