Product constructor
Product({
- String? name,
- String? code,
- String? description,
- String? imageUrl,
- double? weight,
- String? cookingGuidelines,
- String? microwaveCookingInstructions,
- String? ovenCookingInstructions,
- String? storageInstructions,
- int? unitsPerCase,
- String? plainTextIngredients,
- String? htmlIngredients,
- String? formulation,
- bool? isAvailable,
- bool? isNew,
- int? servingPortions,
- double? servingSize,
- Range? range,
- ServingType? servingType,
- List<
ProductAllergen> ? productAllergens, - List<
ProductCatalog> ? productCatalogs, - List<
ProductDiet> ? productDiets, - List<
ProductFreeFrom> ? productFreeFroms, - List<
ProductGroup> ? productGroups, - List<
ProductMadeWithout> ? productMadeWithouts, - List<
ProductMealType> ? productMealTypes, - List<
ProductMicrowaveStage> ? productMicrowaveStages, - List<
ProductNutrition> ? productNutritions, - List<
ProductPrecautionaryAllergenStatement> ? productPrecautionaryAllergenStatements, - List<
ProductWarning> ? productWarnings, - required String id,
- DateTime? created,
- String? creator,
- DateTime? updated,
- String? updater,
Implementation
Product({
this.name,
this.code,
this.description,
this.imageUrl,
this.weight,
this.cookingGuidelines,
this.microwaveCookingInstructions,
this.ovenCookingInstructions,
this.storageInstructions,
this.unitsPerCase,
this.plainTextIngredients,
this.htmlIngredients,
this.formulation,
this.isAvailable,
this.isNew,
this.servingPortions,
this.servingSize,
this.range,
this.servingType,
this.productAllergens,
this.productCatalogs,
this.productDiets,
this.productFreeFroms,
this.productGroups,
this.productMadeWithouts,
this.productMealTypes,
this.productMicrowaveStages,
this.productNutritions,
this.productPrecautionaryAllergenStatements,
this.productWarnings,
required String id,
DateTime? created,
String? creator,
DateTime? updated,
String? updater,
}) : super(
id: id,
created: created,
updated: updated,
updater: updater,
);