-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccess.freezed.dart
More file actions
613 lines (508 loc) · 22.3 KB
/
access.freezed.dart
File metadata and controls
613 lines (508 loc) · 22.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
// GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
part of 'access.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
// dart format off
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$Access {
String get id; String? get label; bool? get read; bool? get write; bool? get manage; String? get objectId; String get userId; User? get user;@JsonKey(unknownEnumValue: AccessModule.unknown) AccessModule get module;
/// Create a copy of Access
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$AccessCopyWith<Access> get copyWith => _$AccessCopyWithImpl<Access>(this as Access, _$identity);
/// Serializes this Access to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is Access&&(identical(other.id, id) || other.id == id)&&(identical(other.label, label) || other.label == label)&&(identical(other.read, read) || other.read == read)&&(identical(other.write, write) || other.write == write)&&(identical(other.manage, manage) || other.manage == manage)&&(identical(other.objectId, objectId) || other.objectId == objectId)&&(identical(other.userId, userId) || other.userId == userId)&&(identical(other.user, user) || other.user == user)&&(identical(other.module, module) || other.module == module));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id,label,read,write,manage,objectId,userId,user,module);
@override
String toString() {
return 'Access(id: $id, label: $label, read: $read, write: $write, manage: $manage, objectId: $objectId, userId: $userId, user: $user, module: $module)';
}
}
/// @nodoc
abstract mixin class $AccessCopyWith<$Res> {
factory $AccessCopyWith(Access value, $Res Function(Access) _then) = _$AccessCopyWithImpl;
@useResult
$Res call({
String id, String? label, bool? read, bool? write, bool? manage, String? objectId, String userId, User? user,@JsonKey(unknownEnumValue: AccessModule.unknown) AccessModule module
});
$UserCopyWith<$Res>? get user;
}
/// @nodoc
class _$AccessCopyWithImpl<$Res>
implements $AccessCopyWith<$Res> {
_$AccessCopyWithImpl(this._self, this._then);
final Access _self;
final $Res Function(Access) _then;
/// Create a copy of Access
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? label = freezed,Object? read = freezed,Object? write = freezed,Object? manage = freezed,Object? objectId = freezed,Object? userId = null,Object? user = freezed,Object? module = null,}) {
return _then(_self.copyWith(
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as String,label: freezed == label ? _self.label : label // ignore: cast_nullable_to_non_nullable
as String?,read: freezed == read ? _self.read : read // ignore: cast_nullable_to_non_nullable
as bool?,write: freezed == write ? _self.write : write // ignore: cast_nullable_to_non_nullable
as bool?,manage: freezed == manage ? _self.manage : manage // ignore: cast_nullable_to_non_nullable
as bool?,objectId: freezed == objectId ? _self.objectId : objectId // ignore: cast_nullable_to_non_nullable
as String?,userId: null == userId ? _self.userId : userId // ignore: cast_nullable_to_non_nullable
as String,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable
as User?,module: null == module ? _self.module : module // ignore: cast_nullable_to_non_nullable
as AccessModule,
));
}
/// Create a copy of Access
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$UserCopyWith<$Res>? get user {
if (_self.user == null) {
return null;
}
return $UserCopyWith<$Res>(_self.user!, (value) {
return _then(_self.copyWith(user: value));
});
}
}
/// Adds pattern-matching-related methods to [Access].
extension AccessPatterns on Access {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _Access value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _Access() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _Access value) $default,){
final _that = this;
switch (_that) {
case _Access():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _Access value)? $default,){
final _that = this;
switch (_that) {
case _Access() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String id, String? label, bool? read, bool? write, bool? manage, String? objectId, String userId, User? user, @JsonKey(unknownEnumValue: AccessModule.unknown) AccessModule module)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _Access() when $default != null:
return $default(_that.id,_that.label,_that.read,_that.write,_that.manage,_that.objectId,_that.userId,_that.user,_that.module);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String id, String? label, bool? read, bool? write, bool? manage, String? objectId, String userId, User? user, @JsonKey(unknownEnumValue: AccessModule.unknown) AccessModule module) $default,) {final _that = this;
switch (_that) {
case _Access():
return $default(_that.id,_that.label,_that.read,_that.write,_that.manage,_that.objectId,_that.userId,_that.user,_that.module);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String id, String? label, bool? read, bool? write, bool? manage, String? objectId, String userId, User? user, @JsonKey(unknownEnumValue: AccessModule.unknown) AccessModule module)? $default,) {final _that = this;
switch (_that) {
case _Access() when $default != null:
return $default(_that.id,_that.label,_that.read,_that.write,_that.manage,_that.objectId,_that.userId,_that.user,_that.module);case _:
return null;
}
}
}
/// @nodoc
@JsonSerializable()
class _Access extends Access {
const _Access({required this.id, this.label, this.read, this.write, this.manage, this.objectId, required this.userId, this.user, @JsonKey(unknownEnumValue: AccessModule.unknown) required this.module}): super._();
factory _Access.fromJson(Map<String, dynamic> json) => _$AccessFromJson(json);
@override final String id;
@override final String? label;
@override final bool? read;
@override final bool? write;
@override final bool? manage;
@override final String? objectId;
@override final String userId;
@override final User? user;
@override@JsonKey(unknownEnumValue: AccessModule.unknown) final AccessModule module;
/// Create a copy of Access
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$AccessCopyWith<_Access> get copyWith => __$AccessCopyWithImpl<_Access>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$AccessToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _Access&&(identical(other.id, id) || other.id == id)&&(identical(other.label, label) || other.label == label)&&(identical(other.read, read) || other.read == read)&&(identical(other.write, write) || other.write == write)&&(identical(other.manage, manage) || other.manage == manage)&&(identical(other.objectId, objectId) || other.objectId == objectId)&&(identical(other.userId, userId) || other.userId == userId)&&(identical(other.user, user) || other.user == user)&&(identical(other.module, module) || other.module == module));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id,label,read,write,manage,objectId,userId,user,module);
@override
String toString() {
return 'Access(id: $id, label: $label, read: $read, write: $write, manage: $manage, objectId: $objectId, userId: $userId, user: $user, module: $module)';
}
}
/// @nodoc
abstract mixin class _$AccessCopyWith<$Res> implements $AccessCopyWith<$Res> {
factory _$AccessCopyWith(_Access value, $Res Function(_Access) _then) = __$AccessCopyWithImpl;
@override @useResult
$Res call({
String id, String? label, bool? read, bool? write, bool? manage, String? objectId, String userId, User? user,@JsonKey(unknownEnumValue: AccessModule.unknown) AccessModule module
});
@override $UserCopyWith<$Res>? get user;
}
/// @nodoc
class __$AccessCopyWithImpl<$Res>
implements _$AccessCopyWith<$Res> {
__$AccessCopyWithImpl(this._self, this._then);
final _Access _self;
final $Res Function(_Access) _then;
/// Create a copy of Access
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? label = freezed,Object? read = freezed,Object? write = freezed,Object? manage = freezed,Object? objectId = freezed,Object? userId = null,Object? user = freezed,Object? module = null,}) {
return _then(_Access(
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as String,label: freezed == label ? _self.label : label // ignore: cast_nullable_to_non_nullable
as String?,read: freezed == read ? _self.read : read // ignore: cast_nullable_to_non_nullable
as bool?,write: freezed == write ? _self.write : write // ignore: cast_nullable_to_non_nullable
as bool?,manage: freezed == manage ? _self.manage : manage // ignore: cast_nullable_to_non_nullable
as bool?,objectId: freezed == objectId ? _self.objectId : objectId // ignore: cast_nullable_to_non_nullable
as String?,userId: null == userId ? _self.userId : userId // ignore: cast_nullable_to_non_nullable
as String,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable
as User?,module: null == module ? _self.module : module // ignore: cast_nullable_to_non_nullable
as AccessModule,
));
}
/// Create a copy of Access
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$UserCopyWith<$Res>? get user {
if (_self.user == null) {
return null;
}
return $UserCopyWith<$Res>(_self.user!, (value) {
return _then(_self.copyWith(user: value));
});
}
}
/// @nodoc
mixin _$AccessInput {
/// Represents the id of the access.
String? get id;/// Represents the id of the access.
set id(String? value);/// Represents the read permission.
bool get read;/// Represents the read permission.
set read(bool value);/// Represents the write permission.
bool get write;/// Represents the write permission.
set write(bool value);/// Represents the manage permission.
bool get manage;/// Represents the manage permission.
set manage(bool value);/// Represents the id of the object.
String? get objectId;/// Represents the id of the object.
set objectId(String? value);/// Represents the id of the user.
String? get userId;/// Represents the id of the user.
set userId(String? value);/// Represents the module of the access.
@JsonKey(unknownEnumValue: AccessModule.unknown) AccessModule get module;/// Represents the module of the access.
@JsonKey(unknownEnumValue: AccessModule.unknown) set module(AccessModule value);
/// Create a copy of AccessInput
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$AccessInputCopyWith<AccessInput> get copyWith => _$AccessInputCopyWithImpl<AccessInput>(this as AccessInput, _$identity);
/// Serializes this AccessInput to a JSON map.
Map<String, dynamic> toJson();
@override
String toString() {
return 'AccessInput(id: $id, read: $read, write: $write, manage: $manage, objectId: $objectId, userId: $userId, module: $module)';
}
}
/// @nodoc
abstract mixin class $AccessInputCopyWith<$Res> {
factory $AccessInputCopyWith(AccessInput value, $Res Function(AccessInput) _then) = _$AccessInputCopyWithImpl;
@useResult
$Res call({
String? id, bool read, bool write, bool manage, String? objectId, String? userId,@JsonKey(unknownEnumValue: AccessModule.unknown) AccessModule module
});
}
/// @nodoc
class _$AccessInputCopyWithImpl<$Res>
implements $AccessInputCopyWith<$Res> {
_$AccessInputCopyWithImpl(this._self, this._then);
final AccessInput _self;
final $Res Function(AccessInput) _then;
/// Create a copy of AccessInput
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? read = null,Object? write = null,Object? manage = null,Object? objectId = freezed,Object? userId = freezed,Object? module = null,}) {
return _then(_self.copyWith(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as String?,read: null == read ? _self.read : read // ignore: cast_nullable_to_non_nullable
as bool,write: null == write ? _self.write : write // ignore: cast_nullable_to_non_nullable
as bool,manage: null == manage ? _self.manage : manage // ignore: cast_nullable_to_non_nullable
as bool,objectId: freezed == objectId ? _self.objectId : objectId // ignore: cast_nullable_to_non_nullable
as String?,userId: freezed == userId ? _self.userId : userId // ignore: cast_nullable_to_non_nullable
as String?,module: null == module ? _self.module : module // ignore: cast_nullable_to_non_nullable
as AccessModule,
));
}
}
/// Adds pattern-matching-related methods to [AccessInput].
extension AccessInputPatterns on AccessInput {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _AccessInput value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _AccessInput() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _AccessInput value) $default,){
final _that = this;
switch (_that) {
case _AccessInput():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _AccessInput value)? $default,){
final _that = this;
switch (_that) {
case _AccessInput() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String? id, bool read, bool write, bool manage, String? objectId, String? userId, @JsonKey(unknownEnumValue: AccessModule.unknown) AccessModule module)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _AccessInput() when $default != null:
return $default(_that.id,_that.read,_that.write,_that.manage,_that.objectId,_that.userId,_that.module);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String? id, bool read, bool write, bool manage, String? objectId, String? userId, @JsonKey(unknownEnumValue: AccessModule.unknown) AccessModule module) $default,) {final _that = this;
switch (_that) {
case _AccessInput():
return $default(_that.id,_that.read,_that.write,_that.manage,_that.objectId,_that.userId,_that.module);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String? id, bool read, bool write, bool manage, String? objectId, String? userId, @JsonKey(unknownEnumValue: AccessModule.unknown) AccessModule module)? $default,) {final _that = this;
switch (_that) {
case _AccessInput() when $default != null:
return $default(_that.id,_that.read,_that.write,_that.manage,_that.objectId,_that.userId,_that.module);case _:
return null;
}
}
}
/// @nodoc
@JsonSerializable()
class _AccessInput extends AccessInput {
_AccessInput({this.id, this.read = false, this.write = false, this.manage = false, this.objectId, this.userId, @JsonKey(unknownEnumValue: AccessModule.unknown) required this.module}): super._();
factory _AccessInput.fromJson(Map<String, dynamic> json) => _$AccessInputFromJson(json);
/// Represents the id of the access.
@override String? id;
/// Represents the read permission.
@override@JsonKey() bool read;
/// Represents the write permission.
@override@JsonKey() bool write;
/// Represents the manage permission.
@override@JsonKey() bool manage;
/// Represents the id of the object.
@override String? objectId;
/// Represents the id of the user.
@override String? userId;
/// Represents the module of the access.
@override@JsonKey(unknownEnumValue: AccessModule.unknown) AccessModule module;
/// Create a copy of AccessInput
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$AccessInputCopyWith<_AccessInput> get copyWith => __$AccessInputCopyWithImpl<_AccessInput>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$AccessInputToJson(this, );
}
@override
String toString() {
return 'AccessInput(id: $id, read: $read, write: $write, manage: $manage, objectId: $objectId, userId: $userId, module: $module)';
}
}
/// @nodoc
abstract mixin class _$AccessInputCopyWith<$Res> implements $AccessInputCopyWith<$Res> {
factory _$AccessInputCopyWith(_AccessInput value, $Res Function(_AccessInput) _then) = __$AccessInputCopyWithImpl;
@override @useResult
$Res call({
String? id, bool read, bool write, bool manage, String? objectId, String? userId,@JsonKey(unknownEnumValue: AccessModule.unknown) AccessModule module
});
}
/// @nodoc
class __$AccessInputCopyWithImpl<$Res>
implements _$AccessInputCopyWith<$Res> {
__$AccessInputCopyWithImpl(this._self, this._then);
final _AccessInput _self;
final $Res Function(_AccessInput) _then;
/// Create a copy of AccessInput
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? read = null,Object? write = null,Object? manage = null,Object? objectId = freezed,Object? userId = freezed,Object? module = null,}) {
return _then(_AccessInput(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as String?,read: null == read ? _self.read : read // ignore: cast_nullable_to_non_nullable
as bool,write: null == write ? _self.write : write // ignore: cast_nullable_to_non_nullable
as bool,manage: null == manage ? _self.manage : manage // ignore: cast_nullable_to_non_nullable
as bool,objectId: freezed == objectId ? _self.objectId : objectId // ignore: cast_nullable_to_non_nullable
as String?,userId: freezed == userId ? _self.userId : userId // ignore: cast_nullable_to_non_nullable
as String?,module: null == module ? _self.module : module // ignore: cast_nullable_to_non_nullable
as AccessModule,
));
}
}
// dart format on