2023-07-29 19:46:11 +02:00
|
|
|
import 'package:fooder_web/models/product.dart';
|
|
|
|
|
2023-07-29 19:21:02 +02:00
|
|
|
class Entry {
|
2023-07-29 19:46:11 +02:00
|
|
|
final int id;
|
|
|
|
final double grams;
|
|
|
|
final Product product;
|
|
|
|
final int mealId;
|
2023-07-29 19:21:02 +02:00
|
|
|
final double calories;
|
|
|
|
final double protein;
|
|
|
|
final double fat;
|
|
|
|
final double carb;
|
|
|
|
|
|
|
|
|
2023-07-29 20:55:32 +02:00
|
|
|
Entry({
|
2023-07-29 19:46:11 +02:00
|
|
|
required this.id,
|
|
|
|
required this.grams,
|
|
|
|
required this.product,
|
|
|
|
required this.mealId,
|
2023-07-29 19:21:02 +02:00
|
|
|
required this.calories,
|
|
|
|
required this.protein,
|
|
|
|
required this.fat,
|
|
|
|
required this.carb,
|
|
|
|
});
|
|
|
|
}
|