Product constructor

Product({
  1. String? barcode,
  2. String? productName,
  3. Map<OpenFoodFactsLanguage, String>? productNameInLanguages,
  4. String? genericName,
  5. String? brands,
  6. List<String>? brandsTags,
  7. String? countries,
  8. List<String>? countriesTags,
  9. Map<OpenFoodFactsLanguage, List<String>>? countriesTagsInLanguages,
  10. OpenFoodFactsLanguage? lang,
  11. String? quantity,
  12. String? imageFrontUrl,
  13. String? imageFrontSmallUrl,
  14. String? imageIngredientsUrl,
  15. String? imageIngredientsSmallUrl,
  16. String? imageNutritionUrl,
  17. String? imageNutritionSmallUrl,
  18. String? imagePackagingUrl,
  19. String? imagePackagingSmallUrl,
  20. String? servingSize,
  21. double? servingQuantity,
  22. double? packagingQuantity,
  23. List<ProductImage>? selectedImages,
  24. List<ProductImage>? images,
  25. List<Ingredient>? ingredients,
  26. String? ingredientsText,
  27. Map<OpenFoodFactsLanguage, String>? ingredientsTextInLanguages,
  28. List<String>? ingredientsTags,
  29. Map<OpenFoodFactsLanguage, List<String>>? ingredientsTagsInLanguages,
  30. IngredientsAnalysisTags? ingredientsAnalysisTags,
  31. Additives? additives,
  32. Allergens? allergens,
  33. NutrientLevels? nutrientLevels,
  34. String? nutrimentEnergyUnit,
  35. String? nutrimentDataPer,
  36. String? nutriscore,
  37. String? categories,
  38. List<String>? categoriesTags,
  39. Map<OpenFoodFactsLanguage, List<String>>? categoriesTagsInLanguages,
  40. String? labels,
  41. List<String>? labelsTags,
  42. Map<OpenFoodFactsLanguage, List<String>>? labelsTagsInLanguages,
  43. String? packaging,
  44. List<String>? packagingTags,
  45. List<String>? miscTags,
  46. List<String>? statesTags,
  47. List<String>? tracesTags,
  48. List<String>? storesTags,
  49. String? stores,
  50. List<AttributeGroup>? attributeGroups,
  51. DateTime? lastModified,
  52. String? ecoscoreGrade,
  53. double? ecoscoreScore,
  54. EcoscoreData? ecoscoreData,
  55. Nutriments? nutriments,
  56. bool? noNutritionData,
})

Implementation

Product(
    {this.barcode,
    this.productName,
    this.productNameInLanguages,
    this.genericName,
    this.brands,
    this.brandsTags,
    this.countries,
    this.countriesTags,
    this.countriesTagsInLanguages,
    this.lang,
    this.quantity,
    this.imageFrontUrl,
    this.imageFrontSmallUrl,
    this.imageIngredientsUrl,
    this.imageIngredientsSmallUrl,
    this.imageNutritionUrl,
    this.imageNutritionSmallUrl,
    this.imagePackagingUrl,
    this.imagePackagingSmallUrl,
    this.servingSize,
    this.servingQuantity,
    this.packagingQuantity,
    this.selectedImages,
    this.images,
    this.ingredients,
    this.ingredientsText,
    this.ingredientsTextInLanguages,
    this.ingredientsTags,
    this.ingredientsTagsInLanguages,
    this.ingredientsAnalysisTags,
    this.additives,
    this.allergens,
    this.nutrientLevels,
    this.nutrimentEnergyUnit,
    this.nutrimentDataPer,
    this.nutriscore,
    this.categories,
    this.categoriesTags,
    this.categoriesTagsInLanguages,
    this.labels,
    this.labelsTags,
    this.labelsTagsInLanguages,
    this.packaging,
    this.packagingTags,
    this.miscTags,
    this.statesTags,
    this.tracesTags,
    this.storesTags,
    this.stores,
    this.attributeGroups,
    this.lastModified,
    this.ecoscoreGrade,
    this.ecoscoreScore,
    this.ecoscoreData,
    Nutriments? nutriments,
    bool? noNutritionData})
    : _nutriments = nutriments,
      _noNutritionData = noNutritionData;