<Unable to read properties from data object in Kot...
# forum
r
Unable to read properties from data object in Kotlin/JS Hello everyone, I am currently developing a Kotlin/JS application for an internal demo, and I’m using the fetch API to call a back-end service that provides weather information. I’ve written the following code to make the API call: fun weatherApi() = window.fetch("http://localhost:9090/weather") .then { response -> response.json() } .then { response -> JSON.stringify(response) } data class CurrentWeather( var temperature: Double = 0.0, var windspeed: Double = 0.0, var...