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 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?, ); }