kvision / pl.treksoft.kvision.utils / JSON / toObj

toObj

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

Parameters

serializer - a serializer for T