我遇到了一个问题,如何在Flutter 中使用json串行包生成和使用数据模型类
{
"listNavigationalCatalogs": {
"items": [
{
"catalogCategories": {
"items": [
{
"categoryTheme": {
"backgroundColor": {
"blue": 226,
"green": 215,
"red": 163
},
"descriptionColor": null,
"indicatorColor": {
"red": 54,
"green": 186,
"blue": 228
},
"selectedColor": null,
"unSelectedColor": null
},
"description": "Adventure Sports",
"button": {
"color": {
"blue": 228,
"green": 186,
"red": 54
},
"text": "SEE ALL",
"textColor": null
},
"image": "https://i.postimg.cc/pLjSRBvn/adv.jpg",
"name": "Adventure",
"priority": 3,
"_deleted": null
}
]
},
"version": 1,
"interval": 1,
"fetchedDate": "2021-11-25T00:00Z",
"fetchRealTime": false,
"expiryDate": "2021-11-25T00:00Z"
}
]
}
}
我是新手,请帮助我如何使用它我想从所有项目中获取数据-->catalogCategories-->项目-->姓名。我正在尝试获取数据,为我的目录生成标签栏
使用https://quicktype.io/并选择dart进行json序列化