register
  Registers a conversion logic from type I to type C.
Parameters
I
The source type.
C
The target type.
converter
A function that converts an instance of type I to type C.
Throws
If the specified conversion logic cannot be cast to (Any) -> Any.
Example usage:
registerConversionLogic<String, Text> { Text.of(it) }Content copied to clipboard