`data class Stuff(val foo: Option<String>)` ...
# arrow
k
data class Stuff(val foo: Option<String>)
->
{ "foo": { "type": "some", "value": "test" } }
or
{ "foo": { "type": "none" } }
. Something of the sort. I don't have strong expectations on the structure, I just need to be able to go both ways.