toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (additionalImageLink != null)
    'additionalImageLink': additionalImageLink!,
  if (ageGroup != null) 'ageGroup': ageGroup!,
  if (brand != null) 'brand': brand!,
  if (capacity != null) 'capacity': capacity!,
  if (certification != null) 'certification': certification!,
  if (color != null) 'color': color!,
  if (count != null) 'count': count!,
  if (description != null) 'description': description!,
  if (disclosureDate != null) 'disclosureDate': disclosureDate!,
  if (excludedDestination != null)
    'excludedDestination': excludedDestination!,
  if (featureDescription != null) 'featureDescription': featureDescription!,
  if (flavor != null) 'flavor': flavor!,
  if (format != null) 'format': format!,
  if (gender != null) 'gender': gender!,
  if (grocery != null) 'grocery': grocery!,
  if (gtin != null) 'gtin': gtin!,
  if (imageLink != null) 'imageLink': imageLink!,
  if (includedDestination != null)
    'includedDestination': includedDestination!,
  if (intendedCountry != null) 'intendedCountry': intendedCountry!,
  if (itemGroupId != null) 'itemGroupId': itemGroupId!,
  if (material != null) 'material': material!,
  if (mpn != null) 'mpn': mpn!,
  if (nutrition != null) 'nutrition': nutrition!,
  if (pattern != null) 'pattern': pattern!,
  if (productDetail != null) 'productDetail': productDetail!,
  if (productHighlight != null) 'productHighlight': productHighlight!,
  if (productLine != null) 'productLine': productLine!,
  if (productName != null) 'productName': productName!,
  if (productPageUrl != null) 'productPageUrl': productPageUrl!,
  if (productType != null) 'productType': productType!,
  if (releaseDate != null) 'releaseDate': releaseDate!,
  if (richProductContent != null) 'richProductContent': richProductContent!,
  if (scent != null) 'scent': scent!,
  if (size != null) 'size': size!,
  if (sizeSystem != null) 'sizeSystem': sizeSystem!,
  if (sizeType != null) 'sizeType': sizeType!,
  if (suggestedRetailPrice != null)
    'suggestedRetailPrice': suggestedRetailPrice!,
  if (targetClientId != null) 'targetClientId': targetClientId!,
  if (theme != null) 'theme': theme!,
  if (title != null) 'title': title!,
  if (videoLink != null) 'videoLink': videoLink!,
  if (virtualModelLink != null) 'virtualModelLink': virtualModelLink!,
};