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?
There's an example in the tests.
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>())
Most helpful comment
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 mapmimeType <- (map["mime_type"], EnumTransform<MimeType>())