feat(views): added view handling for diets, recipes, plans and posts

This commit is contained in:
misha
2025-09-11 18:04:35 +03:00
parent 8b7180c2da
commit ff49562e86
12 changed files with 222 additions and 166 deletions

View File

@@ -0,0 +1,16 @@
import 'package:freezed_annotation/freezed_annotation.dart';
part 'view_model.freezed.dart';
part 'view_model.g.dart';
@freezed
abstract class ViewModel with _$ViewModel {
factory ViewModel({
required String type,
List<int>? ids,
List<String>? slugs,
}) = _ViewModel;
factory ViewModel.fromJson(Map<String, dynamic> json) => _$ViewModelFromJson(json);
}