canConvert
open fun canConvert(sourceClass: KClass<*>, expectedOid: Int, context: SerializationContext): Boolean
Decides whether this converter handles the value at hand.
The default accepts supportedClass and anything assignable to it, ignoring the target type. Override to narrow that — to decline a class that has not been registered, or to claim a value only for a particular expectedOid.
Return
true to claim the value.
Parameters
sourceClass
The class of the value being sent.
expectedOid
The OID the server expects, or 0 when it is not yet known.
context
Access to the type manager and to nested conversion.