toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (brand != null) 'brand': brand!,
      if (gtin != null) 'gtin': gtin!,
      if (lineItemId != null) 'lineItemId': lineItemId!,
      if (mpn != null) 'mpn': mpn!,
      if (productDescription != null)
        'productDescription': productDescription!,
      if (productId != null) 'productId': productId!,
      if (productTitle != null) 'productTitle': productTitle!,
      if (quantity != null) 'quantity': quantity!,
      if (sku != null) 'sku': sku!,
      if (upc != null) 'upc': upc!,
    };