rest_client_builder_generator 1.4.3
rest_client_builder_generator: ^1.4.3 copied to clipboard
Code-generation builder for rest_client_builder. Provides build_runner builders that generate typed REST client implementations and JSON serialization helpers from @RestApi, @RestModel, and @RestConfi [...]
rest_client_builder_generator #
The code-generation engine for est_client_builder.
This package provides the uild_runner builders that inspect your @RestApi, @RestModel, @RestConfiguration, and @RestKey annotations to generate fully typed, production-ready REST clients and JSON serializers.
Add this package to your project's dev_dependencies.
Getting started #
In your Dart or Flutter project's pubspec.yaml:
`yaml dependencies: rest_client_builder: ^1.4.3
dev_dependencies: rest_client_builder_generator: ^1.4.3 build_runner: ^2.4.15 `
Running the Code Generator #
Run uild_runner to generate code:
ash dart run build_runner build --delete-conflicting-outputs
All generated files land cleanly under lib/generated/ by default.
For comprehensive documentation, annotations, and features, refer to the rest_client_builder documentation.