I'm getting `kotlinx.serialization.SerializationEx...
# serialization
d
I'm getting
kotlinx.serialization.SerializationException: Class 'TreeSet' is not registered for polymorphic serialization in the scope of 'SortedSet'.
what can I do about this? It's after I use
.toSortedSet()
on a set... I just really want to keep the sorted order of the set, can I just do
Iterable.toSortedSet().toList()
on it and get the same result, or is there a better/more efficient way?