PassioAdvisorFoodInfo class
Represents information about a food item recognized by the Passio Advisor.
This class contains details about the food item, including its data info, portion size, recognized name, and weight in grams.
Constructors
- PassioAdvisorFoodInfo({PassioFoodDataInfo? foodDataInfo, PassioFoodItem? packagedFoodItem, required String portionSize, required String recognisedName, required PassioFoodResultType resultType, required double weightGrams})
-
Creates a new instance of
PassioAdvisorFoodInfo
.const -
PassioAdvisorFoodInfo.fromJson(Map<
String, dynamic> json) -
Creates a
PassioAdvisorFoodInfo
instance from a JSON map.factory
Properties
- foodDataInfo → PassioFoodDataInfo?
-
Detailed information about the food item.
final
- hashCode → int
-
Calculates the hash code for this
PassioAdvisorFoodInfo
object.no setteroverride - packagedFoodItem → PassioFoodItem?
-
Contains detailed information about the packaged food item, including nutrition facts and barcode data.
final
- portionSize → String
-
The portion size of the food item.
final
- recognisedName → String
-
The recognised name of the food item.
final
- resultType → PassioFoodResultType
-
The type of result returned from the food recognition process.
It can indicate if the result is a recognized food item, barcode, or nutrition facts.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- weightGrams → double
-
The weight of the food item in grams.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the
PassioAdvisorFoodInfo
instance to a JSON map. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
Compares two
PassioAdvisorFoodInfo
objects for equality.override