Line data Source code
1 : // GENERATED CODE - DO NOT MODIFY BY HAND
2 :
3 : part of 'game_state.dart';
4 :
5 : // **************************************************************************
6 : // JsonSerializableGenerator
7 : // **************************************************************************
8 :
9 0 : _$_GameState _$$_GameStateFromJson(Map<String, dynamic> json) => _$_GameState(
10 0 : barriers: Barriers.fromJson(json['barriers'] as Map<String, dynamic>),
11 0 : otherPlayerIds: ISet<String>.fromJson(
12 0 : json['otherPlayerIds'], (value) => value as String),
13 0 : playerPaths: IMap<String, IList<Double2>>.fromJson(
14 0 : json['playerPaths'] as Map<String, dynamic>,
15 0 : (value) => value as String,
16 0 : (value) => IList<Double2>.fromJson(value,
17 0 : (value) => Double2.fromJson(value as Map<String, dynamic>))),
18 : );
19 :
20 0 : Map<String, dynamic> _$$_GameStateToJson(_$_GameState instance) =>
21 0 : <String, dynamic>{
22 0 : 'barriers': instance.barriers.toJson(),
23 0 : 'otherPlayerIds': instance.otherPlayerIds.toJson(
24 0 : (value) => value,
25 : ),
26 0 : 'playerPaths': instance.playerPaths.toJson(
27 0 : (value) => value,
28 0 : (value) => value.toJson(
29 0 : (value) => value.toJson(),
30 : ),
31 : ),
32 : };
|