You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tidy up the code a bit (and use the cast method on the serializer to avoid casting warnings). Use a map to allow faster lookup of serializers to class (to allow for overlapping hierarchies).
Copy file name to clipboardexpand all lines: docs/polymorphism.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -411,7 +411,7 @@ fun main() {
411
411
> Note: On Kotlin/Native, you should use `format.encodeToString(PolymorphicSerializer(Project::class), data))` instead due to limited reflection capabilities.
412
412
413
413
### Registering sealed children as subclasses
414
-
A sealed parent interface or class can be used to directly register all its children using subclassesOf. This will
414
+
A sealed parent interface or class can be used to directly register all its children using `subclassesOf`. This will
415
415
expose all children that would be available when serializing the parent directly, but now as sealed. Please note that
416
416
this is will remain open serialization, and the sealed parent serializer will not be used in serialization.
0 commit comments