-
Notifications
You must be signed in to change notification settings - Fork 23
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
EnumToString.fromString does not work with String that include hyphen #16
Comments
Hey @geek-sajjad Right now there isn't a way. The other open ticket is also about the same thing so there is definitely a need for it. Unfortunately I have had the flood gates open since covid has cleared up near me to haven't had time - or an incident that has caused me to write it. feel free to jump over to #15 to discuss the best way to implement it. The big hold up is that its not a global singleton and doesn't hold a state, so you need to store the mapping somehow. Ideally I would like something like in JSON serializable which has the fieldRename parameter which handles camelcase, snake and skewer case, but your example with the uppercase first letter wouldn't work there either. |
thank you for your responding , i solved with this way :
|
Closing as we will deal with this in #15 |
Hi I use your package in my project , but i have this problem :
and my REST API return
"status": "Customer-Reply",
and i can't use hyphen in the Enum values ! what can i do ??
The text was updated successfully, but these errors were encountered: