ProductNutriments

class ProductNutriments : Serializable

JSON representation of the product nutriments entry.

See JSON Structure

Constructors

Link copied to clipboard
fun ProductNutriments()

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class ProductNutriment

Functions

Link copied to clipboard
operator fun contains(nutrimentName: String): Boolean
operator fun contains(nutriment: Nutriment): Boolean
Link copied to clipboard
operator fun get(nutriment: Nutriment): ProductNutriments.ProductNutriment?
Link copied to clipboard
fun getEnergyKcalValue(perServing: Boolean): Measurement?
Link copied to clipboard
fun getEnergyKjValue(isDataPerServing: Boolean): Measurement?
Link copied to clipboard
fun setAdditionalProperty(name: String, value: Any?)

Properties

Link copied to clipboard
val additionalProperties: HashMap<String, Any?>
Link copied to clipboard
var hasMinerals: Boolean = false
Link copied to clipboard
var hasVitamins: Boolean = false

Extensions

Link copied to clipboard
fun ProductNutriments.buildLevelItem(    context: Context,     nutriment: Nutriment,     nutrimentLevel: NutrimentLevel?): NutrientLevelItem?