Closed tmm1 closed 7 years ago
Yep, it's Kotlin, not Kotson.
As the fromJson
& typeToken
functions use reified types, you cannot use them in regular generic function where T
is not reified.
In such cases, you must use the regular GSon methods and pass a Class
.
I'm trying to write the GsonRequest example from https://developer.android.com/training/volley/request-custom.html in kotlin using kotson, but cannot make it work.
I'm getting the following error
Is this a limitation of kotlin?