is there any way of making this work? ``` inline ...
# announcements
j
is there any way of making this work?
Copy code
inline fun <reified T> String.fromJson(): T = GsonProvider.getGson().fromJson(this)

interface SerializableTest<T> {

    var expectedJson: String

    @Test
    fun serialize() {
        val actual: T = expectedJson.fromJson()
        Assert.assertNotNull(actual)
    }
}
i was trying to just pass the generic type to the interface and have the reified inline method creating T