PassioAlternative class
Represents an alternative option for a food item.
Constructors
- PassioAlternative(PassioID passioID, String name, double? quantity, String? unitName)
-
Creates a new
PassioAlternative
instance.const -
PassioAlternative.fromJson(Map<
String, dynamic> json) -
Creates a
PassioAlternative
instance from a JSON map.factory
Properties
- hashCode → int
-
Calculates the hash code for this
PassioAlternative
object.no setteroverride - name → String
-
The name of the alternative.
final
- passioID → PassioID
-
The unique identifier of the alternative.
final
- quantity → double?
-
The quantity of the alternative (optional).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unitName → String?
-
The unit of measurement for the quantity (optional).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the
PassioAlternative
instance to a JSON map. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
Compares two
PassioAlternative
objects for equality.override