Angelo Rüggeberg
08/17/2022, 9:50 PMdata class Envelope<T> (
val response: T
)
this is the method where i need to instance the generic typed method:
override fun responseBodyConverter(
type: Type,
annotations: Array<Annotation>,
retrofit: Retrofit
): Converter<ResponseBody, *>? {
I cannot find any way to create a parameterized Class with type as Type
parameter. I'd need something like this:
val response : Envelope<type> = json.decodeFromString(...)