toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (adjustments != null) 'adjustments': adjustments!,
if (annotations != null) 'annotations': annotations!,
if (cancellations != null) 'cancellations': cancellations!,
if (id != null) 'id': id!,
if (price != null) 'price': price!,
if (product != null) 'product': product!,
if (quantityCanceled != null) 'quantityCanceled': quantityCanceled!,
if (quantityDelivered != null) 'quantityDelivered': quantityDelivered!,
if (quantityOrdered != null) 'quantityOrdered': quantityOrdered!,
if (quantityPending != null) 'quantityPending': quantityPending!,
if (quantityReadyForPickup != null)
'quantityReadyForPickup': quantityReadyForPickup!,
if (quantityReturned != null) 'quantityReturned': quantityReturned!,
if (quantityShipped != null) 'quantityShipped': quantityShipped!,
if (quantityUndeliverable != null)
'quantityUndeliverable': quantityUndeliverable!,
if (returnInfo != null) 'returnInfo': returnInfo!,
if (returns != null) 'returns': returns!,
if (shippingDetails != null) 'shippingDetails': shippingDetails!,
if (tax != null) 'tax': tax!,
};