google / google/json_serializable.dart
Configure fieldRename for enums in build.yaml
Open
Area: enums
pkg:json_annotation
pkg:json_serializable
Type: enhancement
- Dominant language
- Dart
- Stars
- 1.6k
- Forks
- 461
- Avg merge
- 45m
- Merged PRs (30d)
- 1
Description
We have now [support](https://github.com/google/json_serializable.dart/issues/929) for `fieldRename` on a per-enum basis (rather than per-value), which simplifies the setup.
In our case, all enums coming from the backend are serialized in PascalCase, so it would be great to have an option to configure it in `build.yaml`, the same as we can do for other fields with `field_rename`.
Contributor guide
Assessment
This issue has not been assessed yet.