dataFromJson function
product : {"product_id":"96679","product_parent_id":"13119","brand":"A to z ns 100","batch_no":"AHJDHDG","packaging_display":"20 Pack","current_quantity":"3","quantity_added":"8","free":"","gst":"12","company":{"id":"2","name":"Abbott healthcare","company_sort":"ABB"},"division":{"id":"","name":""},"expiry_date":"28 Feb, 2025","expiry_date_sort":"02/25","hsn_code":"908878","mrp":"100.00","order_id":"13150","order_number":"PH-GST/007"} cart : {"total_quantity":"1","extra_claim_product":"","scheme_discount":"0.00","scheme_discount_price":"0.00","price":"67.80","cn_cart_totals_id":"27","quantity":"1","quantity_free":"0","product_discount_special":"0.00","product_discount_special_price":"0.00","product_discount_special_company":"0.00","product_discount_special_company_price":"0.00","discount_as_per_fixed":"2.00","discount_as_per_fixed_price":"1.36","extra_discount_as_per_fixed":"0.00","extra_discount_as_per_fixed_price":"0.00","product_discount":"9.00","product_discount_price":"5.98","out_of_stock_1_as_out":"0","total_discount":"7.34","total_discount_with_free_scheme":"0.00","cn_cart_id":"40","total_taxable_item_vise":"60.46","total_item_vise":"67.80","sgst":"6.00","cgst":"6.00","igst":"0.00","sgst_price":"3.6276","cgst_price":"3.6276","igst_price":"0.00","total_gst":"7.26"}
Implementation
CreditNoteData dataFromJson(String str) => CreditNoteData.fromJson(json.decode(str));