Files
eatvio_app/lib/features/create_recipe/models/ingredient.dart
2025-02-17 14:40:31 +07:00

16 lines
390 B
Dart

import 'package:freezed_annotation/freezed_annotation.dart';
part 'ingredient.freezed.dart';
part 'ingredient.g.dart';
@freezed
class Ingredient with _$Ingredient {
const factory Ingredient({
required String name,
required String unit,
required String portion,
}) = _Ingredient;
factory Ingredient.fromJson(Map<String, Object?> json) => _$IngredientFromJson(json);
}