refactor(diary): API connect attempt

This commit is contained in:
2024-07-12 13:16:01 +03:00
parent e4cde31d76
commit 551debd450
21 changed files with 999 additions and 299 deletions

View File

@@ -0,0 +1,17 @@
import 'package:freezed_annotation/freezed_annotation.dart';
part 'portion.freezed.dart';
part 'portion.g.dart';
@freezed
class Portion with _$Portion {
const factory Portion({
required int id,
required String productName,
required int quantity,
required String portion,
}) = _Portion;
factory Portion.fromJson(Map<String, Object?> json) =>
_$PortionFromJson(json);
}