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

description → String
final
hashCode → int
The hash code for this object.
read-onlyinherited
id → String
final
image → String
final
name → String
final
owner → String
final
price → double
final
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

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