Food Details
PassioFoodItem
public struct PassioFoodItem: Codable {
public let id: String
public let name: String
public let details: String
public let iconId: String
public let licenseCopy: String
public let amount: PassioNutritionAISDK.PassioFoodAmount
public let ingredients: [PassioNutritionAISDK.PassioIngredient]
public let refCode: String?
}data class PassioFoodItem(
val id: String,
val refCode: String,
val name: String,
val details: String,
val iconId: String,
val amount: PassioFoodAmount,
val ingredients: List<PassioIngredient>,
)export interface PassioFoodItem {
refCode?: RefCode
name: string
details?: string
iconId: PassioID | string
amount: PassioFoodAmount
ingredients?: PassioIngredient[]
weight: UnitMass
isOpenFood?: boolean
openFoodLicense?: string
id: string
}PassioFoodAmount
Changing the Serving Size
PassioIngredient
Fetching nutrients
Single food item vs recipe
UI Example

Last updated