PurchasableFood class Data
A PurchasableFood class that represents a food item that can be purchased.
The PurchasableFood class has properties for the food item's unique identifier, name, description, image URL, price, and owner. It also provides a factory method for creating a PurchasableFood instance from a JSON object.
Constructors
- PurchasableFood({required String id, required String name, required String image, required String description, required double price, required String owner})
-
PurchasableFood.fromJson(Map<
String, dynamic> json) -
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited