Skip to content

Instantly share code, notes, and snippets.

@prateek601
Last active April 11, 2023 14:45
Show Gist options
  • Save prateek601/aadf50d2ed052e714de67a951f7b0b6e to your computer and use it in GitHub Desktop.
Save prateek601/aadf50d2ed052e714de67a951f7b0b6e to your computer and use it in GitHub Desktop.
void main() {
List data = [
{
"id": 127,
"name": "Empanelled",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": true,
"interface": null,
"service": 5,
"children": [
{
"id": 112,
"name": "The Leela Palace",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/cbde51b5-f685-4e3f-8f67-00216b73082f.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 130,
"name": "Le Roma Gardenia",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
},
{
"id": 4,
"name": "Stage Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/94ef2182-55a3-45e3-b741-901b4316ce5d.jpg",
"has_quantity": true,
"product_type": "Solution",
"order": 1,
"hide_from_filter": false,
"interface": 3,
"service": 1,
"children": [
{
"id": 5,
"name": "Mantap",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/ff8812c8-e3d1-4800-ae46-e88462c6685a.jpg",
"has_quantity": true,
"product_type": "Solution",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 9,
"name": "L - Backdrop",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/02323beb-18c6-4073-92b1-50c15cd7921f.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 32,
"name": "S - Backdrop",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/0f73c3db-1144-4c49-8fd4-35a08e468308.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 3,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 12,
"name": "Haldi/Mehendi",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/db4211e5-f7ff-4052-8837-77bc35de8ebd.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 4,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 119,
"name": "Photobooth",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/26523b8b-8965-4d68-bfb7-f783969e7306.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 5,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 34,
"name": "Sangeet Stage",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/1dea6f6b-3c43-40dc-831d-2a326945373e.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 6,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 160,
"name": "Other Stage Decor",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 7,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": [
{
"id": 124,
"name": "Party Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/7500d2d0-8faf-47f9-b6ae-efc35c69932a.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 161,
"name": "Anniversary",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 162,
"name": "Bachelors",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 3,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 122,
"name": "Cradle Ceremony",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/6bcf25ac-cbad-480c-b8c8-d3c5a9e08c4c.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 4,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 163,
"name": "House Warming",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 5,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
}
]
},
{
"id": 128,
"name": "Partnership",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": true,
"interface": null,
"service": null,
"children": [
{
"id": 131,
"name": "Farmhouse Social",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
},
{
"id": 13,
"name": "Welcome Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/7935715a-67ba-4164-9107-0bbf2bae5224.png",
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": false,
"interface": null,
"service": 1,
"children": [
{
"id": 15,
"name": "Entrance Arch Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/1c5fbc0f-58ab-4096-b28f-1be4bf0b8bc0.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 14,
"name": "Welcome Board Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/98fe62ab-7bd3-4ddd-9dac-00e24db931cf.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 58,
"name": "Walkway Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/af60b8fe-bf5f-4695-bf26-576a629d572d.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 3,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 16,
"name": "Pathway Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/fcdc8f0b-8613-4a4f-a26a-b10d4d0ed2a0.png",
"has_quantity": true,
"product_type": "Default",
"order": 4,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 20,
"name": "Door/Gate Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/deb4d145-916c-44c6-b3ee-da1eaa8f0ce5.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 5,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 65,
"name": "Bridal/Groom Entry Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/b2078b8f-fe2f-4b74-a0ed-ac3368676b4d.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 6,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 66,
"name": "Special Effects",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/14542ede-98cc-4f65-b2bb-1ae485ae5c1c.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 7,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
},
{
"id": 129,
"name": "Enrolled",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 3,
"hide_from_filter": true,
"interface": null,
"service": null,
"children": [
{
"id": 142,
"name": "Novotel",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 141,
"name": "Cutchi Memon Jamath Khana",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 140,
"name": "CBR Convention Hall",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 139,
"name": "Goldfinch",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 138,
"name": "Secret Grove",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
},
{
"id": 17,
"name": "Venue Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/dc4501d9-af1a-4f78-80a3-aed43bc5d861.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 3,
"hide_from_filter": false,
"interface": null,
"service": 1,
"children": [
{
"id": 28,
"name": "Accent Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/c34a2497-04b0-42bc-ab9b-dc36e8ea4f05.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 23,
"name": "Hanging Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/bf1486c4-61ef-4a4b-a652-09346c3a537f.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 26,
"name": "Lawn Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/5840bc36-d91f-4e82-a31c-8707f0cbece0.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 3,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 120,
"name": "Tree Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/f00011e5-8eb7-44b6-a141-cf37035e9a51.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 4,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 27,
"name": "Staircase/Railing Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/89fd5dbf-8c99-4e06-b195-edfdb0b36002.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 5,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 30,
"name": "Table Top Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/da051606-9505-4a51-8c57-065288ebd243.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 6,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 18,
"name": "Chair Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/6c245d0a-ec84-4c3a-8702-c8c5ad7b1b33.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 7,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 33,
"name": "Car Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/4af35a65-e29e-4c78-876b-ce88881e86c5.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 8,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 72,
"name": "H-Accessories",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/ee9fc183-3cd7-4f8a-9e91-9b065a3306bf.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 9,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 36,
"name": "S - Accessories",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/c19e5db7-baeb-4206-90bd-3c6bddb53fec.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 10,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
},
{
"id": 31,
"name": "Traditional Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/ec7cfeca-5a5a-4b00-aa70-79148eca4963.png",
"has_quantity": true,
"product_type": "Default",
"order": 4,
"hide_from_filter": false,
"interface": null,
"service": 1,
"children": [
{
"id": 19,
"name": "Chapra",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/ba02e17d-0ce2-4ab8-9fd0-aa5ca58b56e9.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 25,
"name": "Pooja Items",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/c2a568d5-af42-4fa2-b74d-f160f2969e91.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 3,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 29,
"name": "Swing Decor",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/39e7ffdf-cfcd-4387-bd50-5705fd0b1feb.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 4,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 21,
"name": "Sapthapadi",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/8fba5598-727d-471e-9db9-bfdb817c91ad.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 5,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
},
{
"id": 80,
"name": "Venue Listing",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 5,
"hide_from_filter": true,
"interface": null,
"service": 5,
"children": [
{
"id": 89,
"name": "Aadya Farms",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/e9acfc0f-d593-4342-9f1d-a46b4319e66f.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 101,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 97,
"name": "Area 83",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/f80a6136-94bd-4139-99b4-7b1a0d392cc2.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 102,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 103,
"name": "Amita Rasa",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/6f405768-1355-499b-82ef-3049b1e3b926.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 103,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 104,
"name": "Discovery Village Resort",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/df9a4d51-481f-4783-a408-77534a8096e5.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 401,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 86,
"name": "Fairfield by Marriott",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/0c2f009e-83f8-4e77-a99f-1fc13032fe01.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 601,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 95,
"name": "Guhantara Resort",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/0a663ab6-deb5-4557-b2d0-8134d5be65b3.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 701,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 100,
"name": "Holiday inn",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/8db1a67d-6195-4eee-9fa2-67f7b0a03e72.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 801,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 87,
"name": "JW Marriott",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/4c1d46ae-9dfc-4986-967a-de0d84cfcc29.png",
"has_quantity": true,
"product_type": "Default",
"order": 1001,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 105,
"name": "Jade Properties.",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/acd1214c-b9c5-46ef-9f59-cf3b9029c3f4.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1002,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 94,
"name": "Lemon tree",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/98d3fd43-d3cf-4afb-ba94-1e32559e124e.png",
"has_quantity": true,
"product_type": "Default",
"order": 1201,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 108,
"name": "Lalit Ashok",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/39a265dc-3cd3-4c8d-afba-e3cdd7d86fb8.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1202,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 90,
"name": "Marriott Whitefield",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/cd1a62ec-b50c-46fa-b137-c901050580e7.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1301,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 99,
"name": "Peacock Grove",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/6f27d786-1798-4d97-842c-3e3530960b26.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1601,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 110,
"name": "Panchvati Pavilion",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/3707fc46-ed7c-472f-9186-ed13dc64ef35.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1602,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 93,
"name": "Radha Regent",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/baae3525-983b-4cef-8ba5-48cd1e97b84a.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1801,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 106,
"name": "Royal Orchid",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/9cf15053-9ca5-4250-b789-c3a1d214a5dd.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1802,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 102,
"name": "Royal lotus View Resotel",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/71f1f0a2-fb34-417f-b04b-9ee911a7286f.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1802,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 98,
"name": "Radient Resort",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/119ff18e-1aaa-43bd-b836-cb16472484f5.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1803,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 109,
"name": "Shibravyi Courtyard",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/e0de2d4d-59b8-4e2a-a806-bdd3430681db.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1804,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 114,
"name": "Shilhaandara Resort",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/d552e8bc-9d77-4196-91fc-7aadc5b2168e.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1805,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 91,
"name": "Sheraton Grand",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/e58d258d-c97a-42a0-8fa3-f63f0b538427.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1901,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 107,
"name": "Shangri- la",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/381f15af-dd62-4cf8-9c05-764522415ee1.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1902,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 101,
"name": "The Oterra",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/5f3fc5fe-dce4-4fe4-ab84-035c3c8ad67d.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 2001,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 111,
"name": "Taj West End",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/7f43c824-59f3-4c6b-95f9-04856df79ecc.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 2002,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 113,
"name": "The Beginning",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/852327da-4454-40a9-986d-ac620f27f00e.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 2003,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 96,
"name": "Vivanta Bengaluru - Whitefield.",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/8dd17054-b496-457f-bf41-56297f7320d2.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 2201,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 88,
"name": "Welcome hotel by ITC",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/ddedce88-721a-4f95-9de9-b22b5e01fab7.png",
"has_quantity": true,
"product_type": "Default",
"order": 2301,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
},
{
"id": 153,
"name": "Product Add Ons",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/fc041f50-1657-4bbc-bead-8cc55cad9ddc.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 6,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": [
{
"id": 154,
"name": "Accent Products",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/674da01a-2379-4693-83fd-358f7f322ba7.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": true,
"interface": null,
"service": null,
"children": [
{
"id": 156,
"name": "Standees",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 157,
"name": "Table Centre",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 158,
"name": "Props & Accessories",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 3,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 166,
"name": "Party Needs",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 6,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
},
{
"id": 50,
"name": "Furniture",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/0f36f685-9de0-4205-b6c6-7772deacf260.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": false,
"interface": null,
"service": 1,
"children": [
{
"id": 71,
"name": "Guest Seating",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/136c5086-9b5e-4108-aa6c-17c27ae2fb1c.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 68,
"name": "Stage Seating",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/588ce339-129d-4cc2-a65f-1fedab406879.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 69,
"name": "Tables",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/15badc39-5ba3-45ae-b581-1d972065d573.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 3,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 155,
"name": "Other Furnitures",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 4,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
},
{
"id": 164,
"name": "Hangings",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 3,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 22,
"name": "Garland",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/b23de169-6689-4b0a-91b0-f74f36d04659.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 5,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 169,
"name": "Welcome Board",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 6,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": [
{
"id": 170,
"name": "Board",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 171,
"name": "Aisle Stand",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
}
]
},
{
"id": 37,
"name": "Essentials",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/6ef7444a-ae13-4101-864c-04504013ad21.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 6,
"hide_from_filter": false,
"interface": null,
"service": 1,
"children": [
{
"id": 38,
"name": "Platform & Basics",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/904d0c75-c2c9-4e1c-8719-925095324d6f.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": 1,
"children": null
},
{
"id": 39,
"name": "Lighting",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/a96b1abd-fad6-4071-82f2-3ddc8eb3c954.png",
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": false,
"interface": null,
"service": 1,
"children": null
},
{
"id": 40,
"name": "Sound System",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/1d22546a-0fea-44db-a2f9-a83e1037dacb.png",
"has_quantity": true,
"product_type": "Default",
"order": 3,
"hide_from_filter": false,
"interface": null,
"service": 1,
"children": null
},
{
"id": 41,
"name": "Tent/ Canopy",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/ab5994dc-bf78-4d40-8536-1554805bd243.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 4,
"hide_from_filter": false,
"interface": null,
"service": 1,
"children": null
},
{
"id": 116,
"name": "Licences",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/a407e089-8080-408c-9f2c-e52edf453c76.png",
"has_quantity": true,
"product_type": "Default",
"order": 5,
"hide_from_filter": false,
"interface": null,
"service": 7,
"children": null
},
{
"id": 117,
"name": "Logistics Add On",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/5ae31ac4-5adf-4677-b07f-468aa5812ee4.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 6,
"hide_from_filter": false,
"interface": null,
"service": 1,
"children": null
}
]
},
{
"id": 46,
"name": "Services",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/20156e81-6627-40af-81cf-bad6c6034035.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 7,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": [
{
"id": 148,
"name": "Hospitality",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/457772f0-34ce-45c6-962d-1668c5e7c91b.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": 6,
"children": null
},
{
"id": 147,
"name": "Logistics",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/1b457c61-7ab9-4b12-97fa-861808466481.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": 6,
"children": null
},
{
"id": 47,
"name": "Florist",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/0598af18-6a33-4227-aa65-c633d8fe7ca4.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": 1,
"children": null
},
{
"id": 48,
"name": "Bakery",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/5f937f2a-d30d-457d-80ac-e600d5c82480.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": false,
"interface": null,
"service": 6,
"children": null
},
{
"id": 49,
"name": "Catering",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/5cdf7fff-52ef-432b-a470-cbcab40eeb88.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 3,
"hide_from_filter": false,
"interface": null,
"service": 2,
"children": [
{
"id": 146,
"name": "Bar",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/5d14fa19-c3ae-48f7-a2f6-c4d59131ce04.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
},
{
"id": 51,
"name": "Photography",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/b77a1c7d-ad06-4301-b5e8-aa3d42db4259.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 4,
"hide_from_filter": false,
"interface": null,
"service": 3,
"children": null
},
{
"id": 52,
"name": "Videography",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/2ca8b04d-dc98-44e6-879e-59acfe9f24a9.png",
"has_quantity": true,
"product_type": "Default",
"order": 6,
"hide_from_filter": false,
"interface": null,
"service": 3,
"children": null
},
{
"id": 53,
"name": "Make Up",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/9c8ddbec-8e8e-4cef-b3db-cd00aae6d829.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 7,
"hide_from_filter": false,
"interface": null,
"service": 4,
"children": [
{
"id": 54,
"name": "Mehendi",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/331d8349-2299-498c-a504-7111528505ea.png",
"has_quantity": true,
"product_type": "Default",
"order": 8,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
},
{
"id": 79,
"name": "Safa",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/feca43fb-8118-4528-9256-bdfebb7d7faa.png",
"has_quantity": true,
"product_type": "Default",
"order": 9,
"hide_from_filter": false,
"interface": null,
"service": 6,
"children": null
}
]
},
{
"id": 55,
"name": "Entertainment",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/60149d36-3d4e-4f91-abc4-9d5f08f2dc52.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 8,
"hide_from_filter": false,
"interface": null,
"service": 7,
"children": [
{
"id": 59,
"name": "Baraat/Dhol",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/01a93e14-227f-4645-8fea-bbbfbebb00de.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": 7,
"children": null
},
{
"id": 60,
"name": "Choreographers",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/ebeed5ba-efd6-4180-842b-c4fd1d175d35.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": false,
"interface": null,
"service": 6,
"children": null
},
{
"id": 61,
"name": "Dancers",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/5f3d99e7-0820-468b-9d54-751b11ddcf3a.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 3,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 62,
"name": "Live Music",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/30858fd6-e9e1-4ddf-8220-b6d300fd68ac.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 4,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 63,
"name": "MC/DJ",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/4994c5a7-d90d-4440-bfb7-b26da4e5ef79.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 5,
"hide_from_filter": false,
"interface": null,
"service": 7,
"children": null
},
{
"id": 64,
"name": "Nadaswaram",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/f9fcc675-53fd-432e-ae8b-d8a79aeca713.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 7,
"hide_from_filter": false,
"interface": null,
"service": 7,
"children": null
}
]
},
{
"id": 74,
"name": "Meragi Special",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/086e3679-4887-4c15-b30f-149e531755b1.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 10,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": [
{
"id": 167,
"name": "Meragi Special Mantap",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 168,
"name": "Meragi Special Reception",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
},
{
"id": 56,
"name": "Prints",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/4fc703e3-5866-4e30-8e0a-97f0e774b55d.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 12,
"hide_from_filter": false,
"interface": null,
"service": 1,
"children": [
{
"id": 144,
"name": "Invitations",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/e5deb0da-e0d5-4475-b642-a59c276838fe.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 118,
"name": "Stationary",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/6a0afa2a-47d1-4930-9445-fa5ed69dd5e8.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
},
{
"id": 67,
"name": "Gifts",
"cover_image": "https://meragi-core-dev.s3.ap-south-1.amazonaws.com/category/4f0a5309-9964-49fd-98cd-edf0a77b8cf6.jpg",
"has_quantity": true,
"product_type": "Default",
"order": 13,
"hide_from_filter": true,
"interface": null,
"service": 6,
"children": null
},
{
"id": 149,
"name": "Guide",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 22,
"hide_from_filter": false,
"interface": null,
"service": 6,
"children": [
{
"id": 150,
"name": "Flowers",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 1,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 151,
"name": "Foliage",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 2,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
},
{
"id": 145,
"name": "Combinations",
"cover_image": null,
"has_quantity": true,
"product_type": "Default",
"order": 3,
"hide_from_filter": false,
"interface": null,
"service": null,
"children": null
}
]
}
];
void getChilderns(List childerns){
for(int i =0;i<childerns.length ;i++){
print(childerns[i]['id']);
if(childerns[i]['children']!=null){
getChilderns(childerns[i]['children']);
}
}
}
for(int i =0;i<data.length ;i++){
if(data[i]['id']==4){
getChilderns(data[i]['children']);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment