Created by: MichaelMarner
This is a WIP/PoC to add json_serializable
as an alternative to built_value
in the Dart-Dio-Next generator.
For context: We would like to migrate our Flutter app to full null safety, and so we are migrating from the old Dart generator to Dart-Dio-Next.
We have found that moving from models with to/fromJson methods to using built_value has made the job of migrating bigger and riskier than we'd like. We need to rewrite large chunks of our existing persistence layer and other parts.
Adding json_serializable
as an option has mostly involved reworking existing templates in the old Dart generator to generate null safe code.
Fixes #9082 (closed)
@swipesight @jaumard @josh-burton @amondnet @sbu-WBT @kuhnroyal @agilob
PR checklist
-
Read the contribution guidelines. -
Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community. -
Run the following to build the project and update samples: ./mvnw clean package ./bin/generate-samples.sh ./bin/utils/export_docs_generators.sh
./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH. -
File the PR against the correct branch: master
,5.3.x
,6.0.x
-
If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.