@@ -220,6 +220,9 @@ class WorldInitializedMapper extends SubClassMapperBase<WorldInitialized> {
220
220
v.packsSignature;
221
221
static const Field <WorldInitialized , List <SignatureMetadata >>
222
222
_f$packsSignature = Field ('packsSignature' , _$packsSignature, opt: true );
223
+ static bool _$clearUserInterface (WorldInitialized v) => v.clearUserInterface;
224
+ static const Field <WorldInitialized , bool > _f$clearUserInterface =
225
+ Field ('clearUserInterface' , _$clearUserInterface, opt: true , def: false );
223
226
224
227
@override
225
228
final MappableFields <WorldInitialized > fields = const {
@@ -228,6 +231,7 @@ class WorldInitializedMapper extends SubClassMapperBase<WorldInitialized> {
228
231
#teamMembers: _f$teamMembers,
229
232
#id: _f$id,
230
233
#packsSignature: _f$packsSignature,
234
+ #clearUserInterface: _f$clearUserInterface,
231
235
};
232
236
233
237
@override
@@ -244,7 +248,8 @@ class WorldInitializedMapper extends SubClassMapperBase<WorldInitialized> {
244
248
info: data.dec (_f$info),
245
249
teamMembers: data.dec (_f$teamMembers),
246
250
id: data.dec (_f$id),
247
- packsSignature: data.dec (_f$packsSignature));
251
+ packsSignature: data.dec (_f$packsSignature),
252
+ clearUserInterface: data.dec (_f$clearUserInterface));
248
253
}
249
254
250
255
@override
@@ -314,7 +319,8 @@ abstract class WorldInitializedCopyWith<$R, $In extends WorldInitialized, $Out>
314
319
GameInfo ? info,
315
320
Map <String , Set <int >>? teamMembers,
316
321
int ? id,
317
- List <SignatureMetadata >? packsSignature});
322
+ List <SignatureMetadata >? packsSignature,
323
+ bool ? clearUserInterface});
318
324
WorldInitializedCopyWith <$R2 , $In , $Out2 > $chain <$R2 , $Out2 >(
319
325
Then <$Out2 , $R2 > t);
320
326
}
@@ -354,21 +360,25 @@ class _WorldInitializedCopyWithImpl<$R, $Out>
354
360
Object ? info = $none,
355
361
Object ? teamMembers = $none,
356
362
Object ? id = $none,
357
- Object ? packsSignature = $none}) =>
363
+ Object ? packsSignature = $none,
364
+ bool ? clearUserInterface}) =>
358
365
$apply (FieldCopyWithData ({
359
366
if (table != $none) #table: table,
360
367
if (info != $none) #info: info,
361
368
if (teamMembers != $none) #teamMembers: teamMembers,
362
369
if (id != $none) #id: id,
363
- if (packsSignature != $none) #packsSignature: packsSignature
370
+ if (packsSignature != $none) #packsSignature: packsSignature,
371
+ if (clearUserInterface != null ) #clearUserInterface: clearUserInterface
364
372
}));
365
373
@override
366
374
WorldInitialized $make (CopyWithData data) => WorldInitialized (
367
375
table: data.get (#table, or: $value.table),
368
376
info: data.get (#info, or: $value.info),
369
377
teamMembers: data.get (#teamMembers, or: $value.teamMembers),
370
378
id: data.get (#id, or: $value.id),
371
- packsSignature: data.get (#packsSignature, or: $value.packsSignature));
379
+ packsSignature: data.get (#packsSignature, or: $value.packsSignature),
380
+ clearUserInterface:
381
+ data.get (#clearUserInterface, or: $value.clearUserInterface));
372
382
373
383
@override
374
384
WorldInitializedCopyWith <$R2 , WorldInitialized , $Out2 > $chain <$R2 , $Out2 >(
@@ -1650,6 +1660,7 @@ class ClientWorldEventMapper extends SubClassMapperBase<ClientWorldEvent> {
1650
1660
BoardMoveRequestMapper .ensureInitialized ();
1651
1661
DialogCloseRequestMapper .ensureInitialized ();
1652
1662
ImagesRequestMapper .ensureInitialized ();
1663
+ ModeChangeRequestMapper .ensureInitialized ();
1653
1664
HybridWorldEventMapper .ensureInitialized ();
1654
1665
}
1655
1666
return _instance! ;
@@ -3095,6 +3106,129 @@ class _ImagesRequestCopyWithImpl<$R, $Out>
3095
3106
_ImagesRequestCopyWithImpl ($value, $cast, t);
3096
3107
}
3097
3108
3109
+ class ModeChangeRequestMapper extends SubClassMapperBase <ModeChangeRequest > {
3110
+ ModeChangeRequestMapper ._();
3111
+
3112
+ static ModeChangeRequestMapper ? _instance;
3113
+ static ModeChangeRequestMapper ensureInitialized () {
3114
+ if (_instance == null ) {
3115
+ MapperContainer .globals.use (_instance = ModeChangeRequestMapper ._());
3116
+ ClientWorldEventMapper .ensureInitialized ().addSubMapper (_instance! );
3117
+ ItemLocationMapper .ensureInitialized ();
3118
+ }
3119
+ return _instance! ;
3120
+ }
3121
+
3122
+ @override
3123
+ final String id = 'ModeChangeRequest' ;
3124
+
3125
+ static ItemLocation ? _$location (ModeChangeRequest v) => v.location;
3126
+ static const Field <ModeChangeRequest , ItemLocation > _f$location =
3127
+ Field ('location' , _$location);
3128
+
3129
+ @override
3130
+ final MappableFields <ModeChangeRequest > fields = const {
3131
+ #location: _f$location,
3132
+ };
3133
+
3134
+ @override
3135
+ final String discriminatorKey = 'type' ;
3136
+ @override
3137
+ final dynamic discriminatorValue = 'ModeChangeRequest' ;
3138
+ @override
3139
+ late final ClassMapperBase superMapper =
3140
+ ClientWorldEventMapper .ensureInitialized ();
3141
+
3142
+ static ModeChangeRequest _instantiate (DecodingData data) {
3143
+ return ModeChangeRequest (data.dec (_f$location));
3144
+ }
3145
+
3146
+ @override
3147
+ final Function instantiate = _instantiate;
3148
+
3149
+ static ModeChangeRequest fromMap (Map <String , dynamic > map) {
3150
+ return ensureInitialized ().decodeMap <ModeChangeRequest >(map);
3151
+ }
3152
+
3153
+ static ModeChangeRequest fromJson (String json) {
3154
+ return ensureInitialized ().decodeJson <ModeChangeRequest >(json);
3155
+ }
3156
+ }
3157
+
3158
+ mixin ModeChangeRequestMappable {
3159
+ String toJson () {
3160
+ return ModeChangeRequestMapper .ensureInitialized ()
3161
+ .encodeJson <ModeChangeRequest >(this as ModeChangeRequest );
3162
+ }
3163
+
3164
+ Map <String , dynamic > toMap () {
3165
+ return ModeChangeRequestMapper .ensureInitialized ()
3166
+ .encodeMap <ModeChangeRequest >(this as ModeChangeRequest );
3167
+ }
3168
+
3169
+ ModeChangeRequestCopyWith <ModeChangeRequest , ModeChangeRequest ,
3170
+ ModeChangeRequest >
3171
+ get copyWith => _ModeChangeRequestCopyWithImpl (
3172
+ this as ModeChangeRequest , $identity, $identity);
3173
+ @override
3174
+ String toString () {
3175
+ return ModeChangeRequestMapper .ensureInitialized ()
3176
+ .stringifyValue (this as ModeChangeRequest );
3177
+ }
3178
+
3179
+ @override
3180
+ bool operator == (Object other) {
3181
+ return ModeChangeRequestMapper .ensureInitialized ()
3182
+ .equalsValue (this as ModeChangeRequest , other);
3183
+ }
3184
+
3185
+ @override
3186
+ int get hashCode {
3187
+ return ModeChangeRequestMapper .ensureInitialized ()
3188
+ .hashValue (this as ModeChangeRequest );
3189
+ }
3190
+ }
3191
+
3192
+ extension ModeChangeRequestValueCopy <$R , $Out >
3193
+ on ObjectCopyWith <$R , ModeChangeRequest , $Out > {
3194
+ ModeChangeRequestCopyWith <$R , ModeChangeRequest , $Out >
3195
+ get $asModeChangeRequest =>
3196
+ $base.as ((v, t, t2) => _ModeChangeRequestCopyWithImpl (v, t, t2));
3197
+ }
3198
+
3199
+ abstract class ModeChangeRequestCopyWith <$R , $In extends ModeChangeRequest ,
3200
+ $Out > implements ClientWorldEventCopyWith <$R , $In , $Out > {
3201
+ ItemLocationCopyWith <$R , ItemLocation , ItemLocation >? get location;
3202
+ @override
3203
+ $R call ({ItemLocation ? location});
3204
+ ModeChangeRequestCopyWith <$R2 , $In , $Out2 > $chain <$R2 , $Out2 >(
3205
+ Then <$Out2 , $R2 > t);
3206
+ }
3207
+
3208
+ class _ModeChangeRequestCopyWithImpl <$R , $Out >
3209
+ extends ClassCopyWithBase <$R , ModeChangeRequest , $Out >
3210
+ implements ModeChangeRequestCopyWith <$R , ModeChangeRequest , $Out > {
3211
+ _ModeChangeRequestCopyWithImpl (super .value, super .then, super .then2);
3212
+
3213
+ @override
3214
+ late final ClassMapperBase <ModeChangeRequest > $mapper =
3215
+ ModeChangeRequestMapper .ensureInitialized ();
3216
+ @override
3217
+ ItemLocationCopyWith <$R , ItemLocation , ItemLocation >? get location =>
3218
+ $value.location? .copyWith.$chain ((v) => call (location: v));
3219
+ @override
3220
+ $R call ({Object ? location = $none}) =>
3221
+ $apply (FieldCopyWithData ({if (location != $none) #location: location}));
3222
+ @override
3223
+ ModeChangeRequest $make (CopyWithData data) =>
3224
+ ModeChangeRequest (data.get (#location, or: $value.location));
3225
+
3226
+ @override
3227
+ ModeChangeRequestCopyWith <$R2 , ModeChangeRequest , $Out2 > $chain <$R2 , $Out2 >(
3228
+ Then <$Out2 , $R2 > t) =>
3229
+ _ModeChangeRequestCopyWithImpl ($value, $cast, t);
3230
+ }
3231
+
3098
3232
class HybridWorldEventMapper extends SubClassMapperBase <HybridWorldEvent > {
3099
3233
HybridWorldEventMapper ._();
3100
3234
0 commit comments