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