Jon Bailey
04/06/2024, 2:07 PMglureau
04/08/2024, 9:46 AMAdam S
04/15/2024, 11:59 AMdata class Foo(val x: String)
and you want it to be encoded to a string, e.g. "..."
, then you could use a value class instead. The value will be used, instead of a class (so the class is 'transparent' to serialization.)