Line data Source code
1 : // GENERATED CODE - DO NOT MODIFY BY HAND
2 :
3 : part of 'app_state.dart';
4 :
5 : // **************************************************************************
6 : // JsonSerializableGenerator
7 : // **************************************************************************
8 :
9 0 : _$_AppState _$$_AppStateFromJson(Map<String, dynamic> json) => _$_AppState(
10 0 : auth: AuthState.fromJson(json['auth'] as Map<String, dynamic>),
11 0 : pages: IList<PageData>.fromJson(
12 0 : json['pages'],
13 0 : (value) => const PageDataConverter()
14 0 : .fromJson(value as Map<String, Object?>)),
15 0 : problems: IList<ProblemInfo>.fromJson(json['problems'],
16 0 : (value) => ProblemInfo.fromJson(value as Map<String, dynamic>)),
17 0 : settings: Settings.fromJson(json['settings'] as Map<String, dynamic>),
18 0 : profile: json['profile'] == null
19 : ? null
20 0 : : ProfileData.fromJson(json['profile'] as Map<String, dynamic>),
21 : adventures:
22 0 : AdventuresState.fromJson(json['adventures'] as Map<String, dynamic>),
23 : challenges:
24 0 : ChallengesState.fromJson(json['challenges'] as Map<String, dynamic>),
25 0 : tasks: TasksState.fromJson(json['tasks'] as Map<String, dynamic>),
26 0 : steps: StepsState.fromJson(json['steps'] as Map<String, dynamic>),
27 : );
28 :
29 0 : Map<String, dynamic> _$$_AppStateToJson(_$_AppState instance) =>
30 0 : <String, dynamic>{
31 0 : 'auth': instance.auth.toJson(),
32 0 : 'pages': instance.pages.toJson(
33 0 : (value) => const PageDataConverter().toJson(value),
34 : ),
35 0 : 'problems': instance.problems.toJson(
36 0 : (value) => value.toJson(),
37 : ),
38 0 : 'settings': instance.settings.toJson(),
39 0 : 'profile': instance.profile?.toJson(),
40 0 : 'adventures': instance.adventures.toJson(),
41 0 : 'challenges': instance.challenges.toJson(),
42 0 : 'tasks': instance.tasks.toJson(),
43 0 : 'steps': instance.steps.toJson(),
44 : };
|