The only thing I want to serialize in the above is...
# serialization
c
The only thing I want to serialize in the above is the
headers
, which I can get from
toMap()
r
Check out https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md#composite-serializer-via-surrogate, I'd think using
Map<String, List<String>>
as the surrogate would work.
c
Thanks for responding! I’ve moved on to another problem at the moment but when I return to this I’ll take a look