Skip to content
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

Really need help Objecting mapping enums #441

Closed
patchthecode opened this issue Apr 17, 2016 · 3 comments
Closed

Really need help Objecting mapping enums #441

patchthecode opened this issue Apr 17, 2016 · 3 comments

Comments

@patchthecode
Copy link

Hey guys. Thanks for the awesome library.

I am really stuck on how i should go about converting a JSON response to an enum.
Could you provide an example on this?

@kaandedeoglu
Copy link
Contributor

kaandedeoglu commented Apr 18, 2016

@patchthecode
Copy link
Author

Thank you!.
Closing this.

@dsrees
Copy link

dsrees commented Jul 10, 2017

For the future traveler, above is a dead link. Here is an updated one

The skinny of it is that you must pass an EnumTransform<T> to your map
mimeType <- (map["mime_type"], EnumTransform<MimeType>())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants