toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"name": name,
"product_id": productId,
"variation_id": variationId,
"quantity": quantity,
"tax_class": taxClass,
"subtotal": subtotal,
"subtotal_tax": subtotalTax,
"total": total,
"total_tax": totalTax,
"taxes": List<dynamic>.from(taxes!.map((x) => x.toJson())),
"meta_data": List<dynamic>.from(metaData!.map((x) => x.toJson())),
"sku": sku,
"price": price,
};