feat: add Flutter web frontend with authentication and recipe management features
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
class Recipe {
|
||||
final int id;
|
||||
final String title;
|
||||
final String? description;
|
||||
final String? imageUrl;
|
||||
final int? servings;
|
||||
|
||||
const Recipe({
|
||||
required this.id,
|
||||
required this.title,
|
||||
this.description,
|
||||
this.imageUrl,
|
||||
this.servings,
|
||||
});
|
||||
|
||||
factory Recipe.fromJson(Map<String, dynamic> json) => Recipe(
|
||||
id: json['id'] as int,
|
||||
title: json['title'] as String,
|
||||
description: json['description'] as String?,
|
||||
imageUrl: json['imageUrl'] as String?,
|
||||
servings: json['servings'] as int?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user