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 (title != null) 'title': title!,
      if (variantGtins != null) 'variantGtins': variantGtins!,
    };