PassioFoodOrigin class

The origin of the data for a given food item of the nutritional database.

Constructors

PassioFoodOrigin(String id, String source, String? licenseCopy)
Creates a new PassioFoodOrigin instance.
const
PassioFoodOrigin.fromJson(Map<String, dynamic> json)
Creates a PassioFoodOrigin instance from a JSON map.
factory

Properties

hashCode int
Calculates the hash code for this PassioFoodOrigin object.
no setteroverride
id String
The unique identifier of the food origin.
final
licenseCopy String?
An optional license copy associated with the source (can be null).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
The source of the food origin.
final

Methods

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

Operators

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