Files
eatvio_app/lib/features/create_recipe/models/product.dart
2025-05-21 17:42:43 +03:00

16 lines
340 B
Dart

import 'package:freezed_annotation/freezed_annotation.dart';
part 'product.freezed.dart';
part 'product.g.dart';
@freezed
abstract class Product with _$Product {
const factory Product({
required int id,
required String name,
}) = _Product;
factory Product.fromJson(Map<String, Object?> json) => _$ProductFromJson(json);
}