Type
A provider for handling type converters for various data types. Its maps specific types to their respective converters, allowing easy conversion between objects and their string representations.
INativeType
Defines the contract for converting a type to and from its string representation.
interface INativeType<T>
Methods
toString
Converts an object of type T to its string representation.
fun toString(input: T?): String
Parameters
- input: The object to be converted.
Returns
The string representation of the input object.
fromString
Converts a string back to an object of type T.
fun fromString(input: String?): T
Parameters
- input: The string to be converted.
Returns
The object representation of the string.