We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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?
The text was updated successfully, but these errors were encountered:
https://github.com/Hearst-DD/ObjectMapper/blob/master/ObjectMapperTests/CustomTransformTests.swift#L196
There's an example in the tests.
Sorry, something went wrong.
Thank you!. Closing this.
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>())
EnumTransform<T>
mimeType <- (map["mime_type"], EnumTransform<MimeType>())
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: