I have a problem with Kotlin to write code for conversion from JSON String to List of objects.
Normally in Java, it is like this:
Gson gson = new Gson(
Try this, it uses object instead of Type..
measurements : List = gson.fromJson(text, object : TypeToken>() {}.type)