List full of nulls despite api being called
I was working on a news app and I am still fairly new to android, just finally understanding the gist of it.
I have created a custom Array Adapter which passes in News Data objects. With that I want to display the custom objects. The issue I am running into is that the array adapter is being passed with null values for some reason which i am not understanding at all.
val body = response?.body()?.string()
val gson = GsonBuilder().create()
val news = gson.fromJson(body, News::class.java)...