api_gen 0.0.3 copy "api_gen: ^0.0.3" to clipboard
api_gen: ^0.0.3 copied to clipboard

A simple Dart code generator that creates model classes (with fromJson/toJson) from a JSON schema, saving time on boilerplate in Flutter/Dart projects.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate api_gen

Use it

The package has the following executables:

$ api_gen

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add api_gen

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

dependencies:
  api_gen: ^0.0.3

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:api_gen/api_gen.dart';
1
likes
0
points
342
downloads

Publisher

unverified uploader

Weekly Downloads

A simple Dart code generator that creates model classes (with fromJson/toJson) from a JSON schema, saving time on boilerplate in Flutter/Dart projects.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

args

More

Packages that depend on api_gen