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 '../enums/platform_enum.dart';
6 :
7 : part 'update_settings_action.freezed.dart';
8 : part 'update_settings_action.g.dart';
9 :
10 : @freezed
11 : class UpdateSettingsAction with _$UpdateSettingsAction, ReduxAction {
12 0 : const UpdateSettingsAction._();
13 : const factory UpdateSettingsAction({required PlatformsEnum platform}) =
14 : _UpdateSettingsAction;
15 :
16 0 : factory UpdateSettingsAction.fromJson(JsonMap json) =>
17 0 : _$UpdateSettingsActionFromJson(json);
18 :
19 0 : @override
20 : String get typeName => 'UpdateSettingsAction';
21 : }
|