Favorite.fromJson constructor

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

Implementation

Favorite.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  name = json['name'];
  category = json['category'];
}