Does anyone have a workaround to <https://github.c...
# serialization
r
p
If you don’t need your
T
to be nullable, you can constrain it to
Any
, and then register a polymorphic serializer for Any, as the comments indicate. Or so I think, I do something similar in my use case, and that works just fine.
r
I do need it be nullable unfortunately
I worked around this by replacing my nullable
T
with an
Optional<T>
type. Too bad there are still so many rough edges with serialization.