-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Enum value with enhanced Enums #1147
Comments
I have no idea how could generation work in the package, but one possibility will be offer some kind of interface |
Or we could "steal" the The package is not setup to support adding language-specific features until we're ready to bump the min SDK, so it'll likely be a while until we get there. |
#1180 bumps the min version of the required SDK – we could entertain this now! |
Hey, did this get any updates? I am running the latest version and it's still generating by name. Am I missing something? |
Looking now! |
Fixes #1147 Prepare to release json_annotation v4.7.0
Fixes #1147 Prepare to release json_annotation v4.7.0
This feature has been added as of https://pub.dev/packages/json_annotation/versions/4.7.0 |
@kevmoo Sorry for coming back on this. Just to make things clear, when using the new syntax of enhanced enums should we still use the @JsonValue annotation on top of each enum value or does the library takes care of it? Looks that json_convert always generates a string representation of the enum name when there is no @JsonValue and not the declared enum values. |
Just use |
@kevmoo Perfect! Thank you |
Feature request related to Enhanced enums while using JsonValue
.value
)It would be much better if we could have the generated map
EnumMap
to use the value specified in the constructorThe text was updated successfully, but these errors were encountered: