TypicalFood.fromJson constructor

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

Implementation

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