toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (availableQuantity != null) 'availableQuantity': availableQuantity!,
if (currencyCode != null) 'currencyCode': currencyCode!,
if (displayPrice != null) 'displayPrice': displayPrice!,
if (id != null) 'id': id!,
if (itemAttributes != null) 'itemAttributes': itemAttributes!,
if (originalPrice != null) 'originalPrice': originalPrice!,
if (quantity != null) 'quantity': quantity!,
if (stockState != null) 'stockState': stockState!,
};