Line data Source code
1 : import 'package:freezed_annotation/freezed_annotation.dart';
2 :
3 : import '../../types/redux_action.dart';
4 : import '../../types/typedefs.dart';
5 : import '../models/problem_info.dart';
6 :
7 : part 'remove_problem_action.freezed.dart';
8 : part 'remove_problem_action.g.dart';
9 :
10 : @freezed
11 : class RemoveProblemAction with _$RemoveProblemAction, ReduxAction {
12 1 : const RemoveProblemAction._();
13 : const factory RemoveProblemAction(ProblemInfo info) = _RemoveProblemAction;
14 :
15 0 : factory RemoveProblemAction.fromJson(JsonMap json) =>
16 0 : _$RemoveProblemActionFromJson(json);
17 :
18 0 : @override
19 : String get typeName => 'RemoveProblemAction';
20 : }
|