【发布时间】:2021-03-30 04:54:15
【问题描述】:
我是 dart/flutter 的新手。
如何使用列表中的对象?
我有这样的对象:
{
"channelName": "sydneyfunnelaio",
"type": "",
"ChannelPic": "https://static-cdn.jtvnw.net/jtv_user_pictures/8ead1810-f82a-4dc0-a3a6-583171baff60-profile_image-300x300.jpeg",
"success": true
}
我怎样才能用它创建列表/数组;
我想喜欢:
[{
"channelName": "sydneyfunnelaio",
"type": "",
"ChannelPic": "https://static-cdn.jtvnw.net/jtv_user_pictures/8ead1810-f82a-4dc0-a3a6-583171baff60-profile_image-300x300.jpeg",
"success": true
},{
"channelName": "qweqdqaw",
"type": "",
"ChannelPic": "https://static-cdn.jtvnw.net/jtv_user_pictures/8ead1810-f82a-4dc0-a3a6-583171baff60-profile_image-300x300.jpeg",
"success": true
}]
【问题讨论】: