type?
I’m building a data class that has a field that can either come as a
String
or
List<String>
, and I don’t have any control over that. But when I need to serialize it, it will break because of typing issues.
Has anyone ever faced this issue and if yes, what’s a possible solution? (edited)
@russhwolf I was trying that but forgot one thing. I’,m in multiplatform, so I can’t get
JsonTransformingSerializer
any idea?
r
russhwolf
03/26/2020, 2:11 PM
I haven't dug through all the new 0.20.0 stuff yet so not really sure, but I thought everything in there would be multiplatform. Make sure you have all the right gradle imports
c
Christian Sousa
03/26/2020, 2:12 PM
Yeah, my bad. Just noticed I’m on an older version.. 😅