Replies: 1 comment 2 replies
-
Yes you'll want to use the In this case, since your type is a class, that will result in the value being a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Say I have the following data class
With moshi, is there a way to serialize this to a java or kotlin
Map<String, String>
?e.g. i would want the result to be the equivalent of the following in kotlin:
In a way this is one step above the result of moshi's
toJson
functionBeta Was this translation helpful? Give feedback.
All reactions