这是indexloc提供的服务,不要输入任何密码

df_generate_dart_models 0.14.2 copy "df_generate_dart_models: ^0.14.2" to clipboard
df_generate_dart_models: ^0.14.2 copied to clipboard

A tool for generating data models and classes from annotations, offering greater flexibility than json_serializable or freezed.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate df_generate_dart_models

Use it

The package has the following executables:

$ --models
$ --models-gemeni
$ --models-min
$ df_generate_dart_models
$ df_generate_dart_models_gemeni
$ df_generate_dart_models_min

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add df_generate_dart_models

With Flutter:

 $ flutter pub add df_generate_dart_models

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

dependencies:
  df_generate_dart_models: ^0.14.2

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:df_generate_dart_models/df_generate_dart_models.dart';
2
likes
130
points
774
downloads

Publisher

verified publisherdev-cetera.com

Weekly Downloads

A tool for generating data models and classes from annotations, offering greater flexibility than json_serializable or freezed.

Homepage
Repository (GitHub)

Topics

#build-runner #cli #codegen #freezed #json-serializable

Documentation

API reference

Funding

Consider supporting this project:

www.buymeacoffee.com
www.patreon.com
github.com

License

MIT (license)

Dependencies

df_collection, df_config, df_gen_core, df_generate_dart_models_core, df_log, df_string, df_type, google_generative_ai, path

More

Packages that depend on df_generate_dart_models