PurchasableFood.fromJson constructor

PurchasableFood.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PurchasableFood.fromJson(Map<String, dynamic> json) {
  return PurchasableFood(
    id: json['id'],
    name: json['name'],
    image: json['image'],
    description: json['description'],
    price: json['price'],
    owner: json['owner'],
  );
}