Quick question, how do I get an instance of `Class...
# announcements
r
Quick question, how do I get an instance of
Class<Map<String, Any>>
without creating an empty map?
This looks like it’s wrong
gson.fromJson(string, mutableMapOf<String, Any>()::class.java)
d
gson.fromJson(string, MutableMap<String, Any>::class.java)
Although beware of type erasure.
a
I believe in gson you can use type tokens