Aplikacja_mobilna/cookbook/lib/data/models/recipe_model.dart
2024-02-18 14:30:02 +01:00

19 lines
357 B
Dart

class Recipe {
final String label;
final List<String> ingredientLines;
final String imageUrl;
Recipe({
required this.label,
required this.ingredientLines,
required this.imageUrl,
});
Map<String, dynamic> toMap() {
return {
'label': label,
'ingredientLines': ingredientLines,
'imageUrl': imageUrl,
};
}
}