[英]How to get data using Flutter from api using Json Serializable
我遇到了一個問題,如何使用 json 可序列化 package 在 ZC0417B407EEE71CCE266
{
"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 序列化
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.