forked from eatvio/eatvio_app
feat(views): added view handling for diets, recipes, plans and posts
This commit is contained in:
16
lib/features/feed/models/view_model.dart
Normal file
16
lib/features/feed/models/view_model.dart
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user