toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (brand != null) 'brand': brand!,
  if (brandExclusion != null) 'brandExclusion': brandExclusion!,
  if (contentLanguage != null) 'contentLanguage': contentLanguage!,
  if (couponValueType != null) 'couponValueType': couponValueType!,
  if (customRedemptionRestriction != null)
    'customRedemptionRestriction': customRedemptionRestriction!,
  if (freeGiftDescription != null)
    'freeGiftDescription': freeGiftDescription!,
  if (freeGiftItemId != null) 'freeGiftItemId': freeGiftItemId!,
  if (freeGiftValue != null) 'freeGiftValue': freeGiftValue!,
  if (genericRedemptionCode != null)
    'genericRedemptionCode': genericRedemptionCode!,
  if (getThisQuantityDiscounted != null)
    'getThisQuantityDiscounted': getThisQuantityDiscounted!,
  if (id != null) 'id': id!,
  if (itemGroupId != null) 'itemGroupId': itemGroupId!,
  if (itemGroupIdExclusion != null)
    'itemGroupIdExclusion': itemGroupIdExclusion!,
  if (itemId != null) 'itemId': itemId!,
  if (itemIdExclusion != null) 'itemIdExclusion': itemIdExclusion!,
  if (limitQuantity != null) 'limitQuantity': limitQuantity!,
  if (limitValue != null) 'limitValue': limitValue!,
  if (longTitle != null) 'longTitle': longTitle!,
  if (maxDiscountAmount != null) 'maxDiscountAmount': maxDiscountAmount!,
  if (minimumPurchaseAmount != null)
    'minimumPurchaseAmount': minimumPurchaseAmount!,
  if (minimumPurchaseQuantity != null)
    'minimumPurchaseQuantity': minimumPurchaseQuantity!,
  if (moneyBudget != null) 'moneyBudget': moneyBudget!,
  if (moneyOffAmount != null) 'moneyOffAmount': moneyOffAmount!,
  if (offerType != null) 'offerType': offerType!,
  if (orderLimit != null) 'orderLimit': orderLimit!,
  if (percentOff != null) 'percentOff': percentOff!,
  if (productApplicability != null)
    'productApplicability': productApplicability!,
  if (productType != null) 'productType': productType!,
  if (productTypeExclusion != null)
    'productTypeExclusion': productTypeExclusion!,
  if (promotionDestinationIds != null)
    'promotionDestinationIds': promotionDestinationIds!,
  if (promotionDisplayDates != null)
    'promotionDisplayDates': promotionDisplayDates!,
  if (promotionDisplayTimePeriod != null)
    'promotionDisplayTimePeriod': promotionDisplayTimePeriod!,
  if (promotionEffectiveDates != null)
    'promotionEffectiveDates': promotionEffectiveDates!,
  if (promotionEffectiveTimePeriod != null)
    'promotionEffectiveTimePeriod': promotionEffectiveTimePeriod!,
  if (promotionId != null) 'promotionId': promotionId!,
  if (promotionStatus != null) 'promotionStatus': promotionStatus!,
  if (promotionUrl != null) 'promotionUrl': promotionUrl!,
  if (redemptionChannel != null) 'redemptionChannel': redemptionChannel!,
  if (redemptionRestriction != null)
    'redemptionRestriction': redemptionRestriction!,
  if (shippingServiceNames != null)
    'shippingServiceNames': shippingServiceNames!,
  if (storeApplicability != null) 'storeApplicability': storeApplicability!,
  if (storeCode != null) 'storeCode': storeCode!,
  if (storeCodeExclusion != null) 'storeCodeExclusion': storeCodeExclusion!,
  if (targetCountry != null) 'targetCountry': targetCountry!,
};