从 api 中获取数据并将其存储在数据 class 中

Fetch data from api and store it in data class

我对开发还很陌生。 我知道如何从简单的 api 中获取数据并将数据存储在 kotlin 数据 class 中,如下所示:

data class Property(
   val id: String, 
@Json(name = "img_src") val imgSrcUrl: String,
   val type: String,
   val price: Double
)

但是我怎样才能像这样获取和存储数据结构呢?

{
  "Thailand": [
    {
      "date": "2020-1-22",
      "confirmed": 2,
      "deaths": 0,
      "recovered": 0
    },
    {
      "date": "2020-1-23",
      "confirmed": 3,
      "deaths": 0,
      "recovered": 0
    },
    ...
  ],
  ...
}

正如@CommonsWare 在评论中所建议的那样,我能够得到这样的数据:

    fun getPropeties():
            Call<Map<String, List<Property>>>
}