Line data Source code
1 : import 'package:freezed_annotation/freezed_annotation.dart';
2 :
3 : import '../../types/typedefs.dart';
4 : import '../enums/theme_brightness_enum.dart';
5 : import 'theme_colors.dart';
6 :
7 : part 'theme_set.freezed.dart';
8 : part 'theme_set.g.dart';
9 :
10 : @freezed
11 : class ThemeSet with _$ThemeSet {
12 : factory ThemeSet({
13 : required ThemeColors colors,
14 : required ThemeBrightnessEnum brightness,
15 : }) = _ThemeSet;
16 :
17 2 : factory ThemeSet.fromJson(JsonMap json) => _$ThemeSetFromJson(json);
18 : }
|