PassioFoodDataInfo class

A class representing detailed information about a food item.

Constructors

PassioFoodDataInfo({required String brandName, required String foodName, required PassioID iconID, required String labelId, required PassioSearchNutritionPreview nutritionPreview, required String refCode, required String resultId, required String scoredName, required double score, required List<String>? tags, required String type, required bool isShortName})
Creates a new instance of PassioFoodDataInfo.
const
PassioFoodDataInfo.fromJson(Map<String, dynamic> json)
Creates a PassioFoodDataInfo instance from a JSON map.
factory

Properties

brandName String
The brand name of the food item.
final
foodName String
The name of the food item.
final
hashCode int
Calculates the hash code for this PassioFoodDataInfo object.
no setteroverride
iconID PassioID
The ID of the icon associated with the food item.
final
isShortName bool
Whether to use a short name for the food item.
final
labelId String
The ID of the food label.
final
nutritionPreview PassioSearchNutritionPreview
A preview of the nutritional information for the food item.
final
refCode String
A reference code serving as a unique identifier for the food item.
final
resultId String
A unique ID for the search result.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double
The score associated with the search result, potentially indicating its relevance.
final
scoredName String
The scored name of the food item
final
tags List<String>?
A list of tags associated with the food item
final
type String
The type of food item.
final

Methods

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

Operators

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