toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (availability != null) 'availability': availability!,
      if (customAttributes != null) 'customAttributes': customAttributes!,
      if (instoreProductLocation != null)
        'instoreProductLocation': instoreProductLocation!,
      if (kind != null) 'kind': kind!,
      if (pickupMethod != null) 'pickupMethod': pickupMethod!,
      if (pickupSla != null) 'pickupSla': pickupSla!,
      if (price != null) 'price': price!,
      if (quantity != null) 'quantity': quantity!,
      if (salePrice != null) 'salePrice': salePrice!,
      if (salePriceEffectiveDate != null)
        'salePriceEffectiveDate': salePriceEffectiveDate!,
      if (storeCode != null) 'storeCode': storeCode!,
    };