PassioNutritionFacts class

A class representing the nutritional facts of a food item.

Constructors

PassioNutritionFacts({double? addedSugar, double? calcium, double? calories, double? carbs, double? cholesterol, double? dietaryFiber, double? fat, String? ingredients, double? iron, double? potassium, double? protein, double? saturatedFat, double? servingQuantity, String? servingUnit, double? weightQuantity, String? weightUnit, double? sodium, double? sugarAlcohol, double? sugars, double? totalSugars, double? transFat, double? vitaminD})
Creates a new instance of PassioNutritionFacts.
const
PassioNutritionFacts.fromJson(Map<String, dynamic> json)
Creates a PassioNutritionFacts instance from a JSON map.
factory

Properties

addedSugar double?
The amount of added sugar.
final
calcium double?
The amount of calcium.
final
calories double?
The number of calories.
final
carbs double?
The amount of carbohydrates.
final
cholesterol double?
The amount of cholesterol.
final
dietaryFiber double?
The amount of dietary fiber.
final
fat double?
The amount of fat.
final
hashCode int
Calculates the hash code for this PassioNutritionFacts object.
no setteroverride
ingredients String?
The ingredients list as a string.
final
iron double?
The amount of iron.
final
potassium double?
The amount of potassium.
final
protein double?
The amount of protein.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saturatedFat double?
The amount of saturated fat.
final
servingQuantity double?
The quantity of the serving size.
final
servingUnit String?
The unit name of the serving size.
final
sodium double?
The amount of sodium.
final
sugarAlcohol double?
The amount of sugar alcohol.
final
sugars double?
The total amount of sugars.
final
totalSugars double?
The amount of total sugars.
final
transFat double?
The amount of transFat.
final
vitaminD double?
The amount of vitamin D.
final
weightQuantity double?
The quantity of the weight.
final
weightUnit String?
The unit of the weight.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the PassioNutritionFacts instance to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
Compares two PassioNutritionFacts objects for equality.
override