PassioFoodMetadata class

Represents metadata associated with a particular food item.

Constructors

PassioFoodMetadata({Barcode? barcode, List<PassioFoodOrigin>? foodOrigins, String? ingredientsDescription, List<String>? tags})
Creates a new PassioFoodMetadata instance.
const
PassioFoodMetadata.fromJson(Map<String, dynamic> json)
Creates a PassioFoodMetadata instance from a JSON map.
factory

Properties

barcode Barcode?
The barcode of the food item.
final
foodOrigins List<PassioFoodOrigin>?
A list of origins of the food item.
final
hashCode int
Calculates the hash code for this PassioFoodMetadata object.
no setteroverride
ingredientsDescription String?
A description of the ingredients in the food item.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags List<String>?
A list of tags associated with the food item.
final

Methods

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

Operators

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