-
Notifications
You must be signed in to change notification settings - Fork 6.3k
converting json to models
{ data: [ { row_title: "Quotations", row_type: "quotations", data: [ { grid_title: "Customer 1", grid_background: "#2BB751", grid_color: "#000000", pricing: { regular: "1,000", offer: "780", discount: "17% discount", prefix: "Rs" }, is_quotation: 1, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: true, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] }, { grid_title: 957738370, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "15% discount", prefix: "Rs" }, is_quotation: 0, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: true, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] }, { grid_title: "Customer 3", grid_background: "#2BB751", grid_color: "#000000", pricing: { regular: "1,000", offer: "780", discount: "16% discount", prefix: "Rs" }, is_quotation: 1, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: true, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] }, { grid_title: 260540726, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "19% discount", prefix: "Rs" }, is_quotation: 0, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: true, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] }, { grid_title: "Customer 5", grid_background: "#2BB751", grid_color: "#000000", pricing: { regular: "1,000", offer: "780", discount: "19% discount", prefix: "Rs" }, is_quotation: 1, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: true, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] } ] }, { row_title: "Pending Orders (Prescription verification)", row_type: "pending", data: [ { grid_title: 309986726, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "15% discount", prefix: "Rs" }, prescription_status: "Uploaded", is_quotation: 0, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: true, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] }, { grid_title: 371824992, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "20% discount", prefix: "Rs" }, prescription_status: "Pending", is_quotation: 0, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: true, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] }, { grid_title: 617901906, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "17% discount", prefix: "Rs" }, prescription_status: "Uploaded", is_quotation: 0, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: true, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] }, { grid_title: 601647172, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "16% discount", prefix: "Rs" }, prescription_status: "Uploaded", is_quotation: 0, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: true, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] } ] }, { row_title: "Confirmed Orders", row_type: "confirmed", data: [ { grid_title: 718721443, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "18% discount", prefix: "Rs" }, prescription_status: "Uploaded", is_quotation: 0, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: false, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] }, { grid_title: 936354249, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "17% discount", prefix: "Rs" }, prescription_status: "Uploaded", is_quotation: 0, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: false, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] }, { grid_title: 264484477, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "16% discount", prefix: "Rs" }, prescription_status: "Uploaded", is_quotation: 0, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: false, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] }, { grid_title: 532326391, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "15% discount", prefix: "Rs" }, prescription_status: "Uploaded", is_quotation: 0, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: false, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] }, { grid_title: 825615240, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "17% discount", prefix: "Rs" }, prescription_status: "Uploaded", is_quotation: 0, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: false, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] }, { grid_title: 782899047, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "19% discount", prefix: "Rs" }, prescription_status: "Uploaded", is_quotation: 0, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km" }, { id: 2, available: false, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier" } ] } ] }, { row_title: "Out for Delivery", row_type: "out-delivery", data: [ { grid_title: 210245913, grid_background: "#f00", grid_color: "#000000", pricing: { regular: "1,000", offer: "780", discount: "16% discount", prefix: "Rs" }, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km", detail: { name: "Sumit Mehta", info: "+91 9999 999999" } }, { id: 2, available: false, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier", info: "3-5 days", detail: { name: "Bluedart", info: "4253647657" } } ] }, { grid_title: 421524461, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "17% discount", prefix: "Rs" }, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km", detail: { name: "Sumit Mehta", info: "+91 9999 999999" } }, { id: 2, available: false, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier", info: "3-5 days", detail: { name: "Bluedart", info: "4253647657" } } ] }, { grid_title: 728917890, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "18% discount", prefix: "Rs" }, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km", detail: { name: "Sumit Mehta", info: "+91 9999 999999" } }, { id: 2, available: false, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier", info: "3-5 days", detail: { name: "Bluedart", info: "4253647657" } } ] } ] }, { row_title: "Delivered", row_type: "delivered", data: [ { grid_title: 581928983, grid_background: "#f00", grid_color: "#000000", pricing: { regular: "1,000", offer: "780", discount: "17% discount", prefix: "Rs" }, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km", detail: { name: "Sumit Mehta", info: "+91-9999-999999", delivery_date: "2 Jun 2021", delivery_time: "4:51" } }, { id: 2, available: false, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier", info: "3-5 days", detail: { name: "Bluedart", info: "4253647657" } } ] }, { grid_title: 156282860, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "16% discount", prefix: "Rs" }, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km", detail: { name: "Sumit Mehta", info: "+91-9999-999999", delivery_date: "2 Jun 2021", delivery_time: "4:51" } }, { id: 2, available: false, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier", info: "3-5 days", detail: { name: "Bluedart", info: "4253647657" } } ] }, { grid_title: 402104143, grid_background: "#194a75", grid_color: "#ffffff", pricing: { regular: "1,000", offer: "780", discount: "20% discount", prefix: "Rs" }, delivery_methods: [ { id: 1, available: true, title: "Home Delivery", info: "2.2 km", detail: { name: "Sumit Mehta", info: "+91-9999-999999", delivery_date: "2 Jun 2021", delivery_time: "4:51" } }, { id: 2, available: false, title: "Pick-up", info: "2.6 km" }, { id: 3, available: false, title: "Courier", info: "3-5 days", detail: { name: "Bluedart", info: "4253647657" } } ] } ] } ], error: false, message: "Home response" }
Created by CodePath with much help from the community. Contributed content licensed under cc-wiki with attribution required. You are free to remix and reuse, as long as you attribute and use a similar license.
Finding these guides helpful?
We need help from the broader community to improve these guides, add new topics and keep the topics up-to-date. See our contribution guidelines here and our topic issues list for great ways to help out.
Check these same guides through our standalone viewer for a better browsing experience and an improved search. Follow us on twitter @codepath for access to more useful Android development resources.