forked from eatvio/eatvio_app
16 lines
375 B
Dart
16 lines
375 B
Dart
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);
|
|
} |