toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() => {
      'name': name,
      'code': code,
      'description': description,
      'imageUrl': imageUrl,
      'weight': weight,
      'cookingGuidelines': cookingGuidelines,
      'microwaveCookingInstructions': microwaveCookingInstructions,
      'ovenCookingInstructions': ovenCookingInstructions,
      'storageInstructions': storageInstructions,
      'unitsPerCase': unitsPerCase,
      'plainTextIngredients': plainTextIngredients,
      'htmlIngredients': htmlIngredients,
      'formulation': formulation,
      'isAvailable': isAvailable,
      'isNew': isNew,
      'servingPortions': servingPortions,
      'servingSize': servingSize,
      'range': range,
      'servingType': servingType,
      'productAllergens': productAllergens,
      'productCatalogs': productCatalogs,
      'productDiets': productDiets,
      'productFreeFroms': productFreeFroms,
      'productGroups': productGroups,
      'productMadeWithouts': productMadeWithouts,
      'productMealTypes': productMealTypes,
      'productMicrowaveStages': productMicrowaveStages,
      'productNutritions': productNutritions,
      'productPrecautionaryAllergenStatements':
          productPrecautionaryAllergenStatements,
      'productWarnings': productWarnings,
      ...super.toJson(),
    };