I'm still getting up-and-running with the Kotlin ...
# javascript
j
I'm still getting up-and-running with the Kotlin language, however it seems to me you want an actual object definition inside of Kotlin, which you can the convert to the JS counterpart of key-value pairs with a helper function