Line data Source code
1 : import 'package:fast_immutable_collections/fast_immutable_collections.dart';
2 : import 'package:freezed_annotation/freezed_annotation.dart';
3 : import 'package:redfire/types.dart';
4 :
5 : import '../../projects/models/section_model.dart';
6 :
7 : part 'set_sections_action.freezed.dart';
8 : part 'set_sections_action.g.dart';
9 :
10 : @freezed
11 : class SetSectionsAction with _$SetSectionsAction, ReduxAction {
12 1 : const SetSectionsAction._();
13 : const factory SetSectionsAction({required IList<SectionModel> list}) =
14 : _SetSectionsAction;
15 :
16 1 : factory SetSectionsAction.fromJson(JsonMap json) =>
17 1 : _$SetSectionsActionFromJson(json);
18 :
19 0 : @override
20 : String get typeName => 'SetSectionsAction';
21 : }
|