import 'package:json_annotation/json_annotation.dart'; import 'ingredient_model.dart'; part 'recipe_model.g.dart'; @JsonSerializable() class Recipe { String? uuid; String? title; String? description; String? image; List? ingredients; List? instructions; int? prepTime; int? cookTime; int? servings; List? utensils; Recipe({ this.uuid, this.title, this.description, this.image, this.ingredients, this.instructions, this.prepTime, this.cookTime, this.servings, this.utensils, }); Map toJson() => _$RecipeToJson(this); factory Recipe.fromJson(Map json) => _$RecipeFromJson(json); }