I have below response from an API
How to parse the Json below using retrofit?
{
"country1":{
"id":"0",
"name":"Jack"
},
"country2":{
"id":"1",
"name":"Rick"
}
}
my data classes
data class Countries(@Expose var country: Map<String, Country>)
data class Country(var id: String, var name: String)