PassioIDAttributes class
Data class that represent an entry in the SDK's nutritional database.
Constructors
-
PassioIDAttributes(PassioID passioID, String name, PassioIDEntityType entityType, PassioFoodItemData? foodItem, PassioFoodRecipe? recipe, List<
PassioAlternative> ? parents, List<PassioAlternative> ? siblings, List<PassioAlternative> ? children) -
const
-
PassioIDAttributes.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
children
→ List<
PassioAlternative> ? -
Contains a list of all of the children nodes of the food entry.
final
- entityType → PassioIDEntityType
-
Defines the type of the food entry.
final
- foodItem → PassioFoodItemData?
-
If the food entry represent a single food item (as opposed to a recipe),
this field will contain the information for the food item.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Name of the food entry.
final
-
parents
→ List<
PassioAlternative> ? -
Contains a list of all of the parent nodes of the food entry.
final
- passioID → PassioID
-
ID of the food entry.
final
- recipe → PassioFoodRecipe?
-
If the food entry represent a recipe (as opposed to a single food item),
this field will contain the information for that recipe.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
siblings
→ List<
PassioAlternative> ? -
Contains a list of all of the sibling nodes of the food entry.
final
Methods
-
isOpenFood(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openFoodLicense(
) → String? -
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited