2 ms·
It's possible for the deserialization library to know the type from the payload itself, but of course it has to "happen" to coincide with what's being cast to.
by brabel 4y ago
It's possible for the deserialization library to know the type from the payload itself, but of course it has to "happen" to coincide with what's being cast to. You don't need to pass the Class object at all.