Moshi PolymorphicJsonAdapter can not make it to work
I am quite new with android and Moshi and I am trying to make PolymorphicJsonAdapter to work
Here is my setup for now:
Retrofit:
enum class TileContentType {
@Json(name = "MediaTile")
mediaTile,
@Json(name = "QuestionTile")
questionTile,
@Json(name = "ConversationStarterTile")
conversationStarterTile
}
@Provides
fun provideRetrofit(okHttpClient: OkHttpClient, BASE_URL: String): Retrofit {
val moshi = Moshi.Builder()...