elizarov
10/12/2017, 1:56 PMkarelpeeters
10/12/2017, 1:59 PMelizarov
10/12/2017, 2:01 PMkarelpeeters
10/12/2017, 7:13 PMbashor
10/13/2017, 3:26 PMelizarov
10/13/2017, 4:16 PMkarelpeeters
10/13/2017, 4:41 PMequals
, hashcode
and toString
can't be implemented using extension functions.import kotlinx.serialization.json.JSON as JSONKt
import kotlin.js.JSON as JSONJs
inline fun <reified T: Any> jsToKotlinObject(jsObject: Any)
= JSONKt.plain.parse<T>(JSONJs.stringify(jsObject))