json_factory_generator 1.3.0 copy "json_factory_generator: ^1.3.0" to clipboard
json_factory_generator: ^1.3.0 copied to clipboard

A code generator that creates centralized, type-safe JSON factories for Dart models with automatic discovery and List<T> support.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate json_factory_generator

Use it

The package has the following executables:

$ flutterjfg
$ json_factory_generator

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add json_factory_generator

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

dependencies:
  json_factory_generator: ^1.3.0

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:json_factory_generator/json_factory_generator.dart';
7
likes
130
points
225
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A code generator that creates centralized, type-safe JSON factories for Dart models with automatic discovery and List<T> support.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analyzer, build, glob, json_factory_annotation, meta, source_gen, yaml

More

Packages that depend on json_factory_generator