toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (brand != null) 'brand': brand!,
  if (brandInventoryStatus != null)
    'brandInventoryStatus': brandInventoryStatus!,
  if (categoryL1 != null) 'categoryL1': categoryL1!,
  if (categoryL2 != null) 'categoryL2': categoryL2!,
  if (categoryL3 != null) 'categoryL3': categoryL3!,
  if (categoryL4 != null) 'categoryL4': categoryL4!,
  if (categoryL5 != null) 'categoryL5': categoryL5!,
  if (inventoryStatus != null) 'inventoryStatus': inventoryStatus!,
  if (previousRank != null) 'previousRank': previousRank!,
  if (previousRelativeDemand != null)
    'previousRelativeDemand': previousRelativeDemand!,
  if (rank != null) 'rank': rank!,
  if (relativeDemand != null) 'relativeDemand': relativeDemand!,
  if (relativeDemandChange != null)
    'relativeDemandChange': relativeDemandChange!,
  if (reportCategoryId != null) 'reportCategoryId': reportCategoryId!,
  if (reportCountryCode != null) 'reportCountryCode': reportCountryCode!,
  if (reportDate != null) 'reportDate': reportDate!,
  if (reportGranularity != null) 'reportGranularity': reportGranularity!,
  if (title != null) 'title': title!,
  if (variantGtins != null) 'variantGtins': variantGtins!,
};