我正在使用Retrofit从服务器检索数据,但我的json响应是动态的
有时Json的反应如
{
"response":"1",
"responseMessage":{
"0":{
"surname":"Jhon",
"forename":" taylor"},
"1":{
"surname":"Jhon",
"forename":" taylor"},
"total":"2"
}
}
有时候喜欢
{
"response":"1",
"responseMessage":{
"0":{
"surname":"Jhon",
"forename":" taylor"},
"total":"1"
}
}
如何创建模型类以接收此响应