Android Studio – how call data from json like this with Retrofit library
i tried this : interface MYAPI { @GET("get-languages") fun getdata() : Call<List<Data.Language>> } this is my api service { "message": "success", "data": { "language": [ {"id": 5, "name": "English", "icon": "19638193-en.png" }, { "id": 6,"name": "turkish","icon": "19638199-tr.png"} ] } }