描述:
将下面json转换成model
{
"code": 0,
"data": {
"total": 6,
"list": [
{
"id": "9",
"sticky": 1,
"type": "recommend",
"title": "好课推荐",
"subtitle": "移动端普通工程师到架构师的全方位蜕变",
"url": "http://class.imooc.com/sale/mobilearchitect",
"cover": "https://img1.sycdn.imooc.com//5f057a6a0001f4f918720764.jpg",
"createTime": "2020-12-03 16:39:24"
}
]
},
"msg": "SUCCESS."
}
思路:
可以手写model也可以借助https://www.devio.org/io/tools/json-to-dart/ 来实现model的在线转换