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 0 : game: GameState.fromJson(json['game'] as Map<String, dynamic>),
22 : challenge: const ChallengeModelConverter()
23 0 : .fromJson(json['challenge'] as Map<String, Object?>),
24 : );
25 :
26 0 : Map<String, dynamic> _$$_AppStateToJson(_$_AppState instance) =>
27 0 : <String, dynamic>{
28 0 : 'auth': instance.auth.toJson(),
29 0 : 'pages': instance.pages.toJson(
30 0 : (value) => const PageDataConverter().toJson(value),
31 : ),
32 0 : 'problems': instance.problems.toJson(
33 0 : (value) => value.toJson(),
34 : ),
35 0 : 'settings': instance.settings.toJson(),
36 0 : 'profile': instance.profile?.toJson(),
37 0 : 'game': instance.game.toJson(),
38 0 : 'challenge': const ChallengeModelConverter().toJson(instance.challenge),
39 : };
|