toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (activeIngredients != null) 'activeIngredients': activeIngredients!,
      if (alcoholByVolume != null) 'alcoholByVolume': alcoholByVolume!,
      if (allergens != null) 'allergens': allergens!,
      if (derivedNutritionClaim != null)
        'derivedNutritionClaim': derivedNutritionClaim!,
      if (directions != null) 'directions': directions!,
      if (indications != null) 'indications': indications!,
      if (ingredients != null) 'ingredients': ingredients!,
      if (nutritionClaim != null) 'nutritionClaim': nutritionClaim!,
      if (storageInstructions != null)
        'storageInstructions': storageInstructions!,
    };