fun <reified T : Any> T.toObj(): dynamic
An extension function to convert Serializable object to JS dynamic object
(js)fun <T> T.toObj(serializer: SerializationStrategy<T>): dynamic
An extension function to convert Serializable object to JS dynamic object