242 lines
7.8 KiB
Dart
242 lines
7.8 KiB
Dart
// coverage:ignore-file
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// 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 '../config.dart';
|
|
|
|
// **************************************************************************
|
|
// FreezedGenerator
|
|
// **************************************************************************
|
|
|
|
T _$identity<T>(T value) => value;
|
|
|
|
final _privateConstructorUsedError = UnsupportedError(
|
|
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
|
|
|
AccessControl _$AccessControlFromJson(Map<String, dynamic> json) {
|
|
return _AccessControl.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$AccessControl {
|
|
AccessControlMode get mode => throw _privateConstructorUsedError;
|
|
List<String> get acceptList => throw _privateConstructorUsedError;
|
|
List<String> get rejectList => throw _privateConstructorUsedError;
|
|
bool get isFilterSystemApp => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$AccessControlCopyWith<AccessControl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $AccessControlCopyWith<$Res> {
|
|
factory $AccessControlCopyWith(
|
|
AccessControl value, $Res Function(AccessControl) then) =
|
|
_$AccessControlCopyWithImpl<$Res, AccessControl>;
|
|
@useResult
|
|
$Res call(
|
|
{AccessControlMode mode,
|
|
List<String> acceptList,
|
|
List<String> rejectList,
|
|
bool isFilterSystemApp});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$AccessControlCopyWithImpl<$Res, $Val extends AccessControl>
|
|
implements $AccessControlCopyWith<$Res> {
|
|
_$AccessControlCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? mode = null,
|
|
Object? acceptList = null,
|
|
Object? rejectList = null,
|
|
Object? isFilterSystemApp = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
mode: null == mode
|
|
? _value.mode
|
|
: mode // ignore: cast_nullable_to_non_nullable
|
|
as AccessControlMode,
|
|
acceptList: null == acceptList
|
|
? _value.acceptList
|
|
: acceptList // ignore: cast_nullable_to_non_nullable
|
|
as List<String>,
|
|
rejectList: null == rejectList
|
|
? _value.rejectList
|
|
: rejectList // ignore: cast_nullable_to_non_nullable
|
|
as List<String>,
|
|
isFilterSystemApp: null == isFilterSystemApp
|
|
? _value.isFilterSystemApp
|
|
: isFilterSystemApp // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$AccessControlImplCopyWith<$Res>
|
|
implements $AccessControlCopyWith<$Res> {
|
|
factory _$$AccessControlImplCopyWith(
|
|
_$AccessControlImpl value, $Res Function(_$AccessControlImpl) then) =
|
|
__$$AccessControlImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{AccessControlMode mode,
|
|
List<String> acceptList,
|
|
List<String> rejectList,
|
|
bool isFilterSystemApp});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$AccessControlImplCopyWithImpl<$Res>
|
|
extends _$AccessControlCopyWithImpl<$Res, _$AccessControlImpl>
|
|
implements _$$AccessControlImplCopyWith<$Res> {
|
|
__$$AccessControlImplCopyWithImpl(
|
|
_$AccessControlImpl _value, $Res Function(_$AccessControlImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? mode = null,
|
|
Object? acceptList = null,
|
|
Object? rejectList = null,
|
|
Object? isFilterSystemApp = null,
|
|
}) {
|
|
return _then(_$AccessControlImpl(
|
|
mode: null == mode
|
|
? _value.mode
|
|
: mode // ignore: cast_nullable_to_non_nullable
|
|
as AccessControlMode,
|
|
acceptList: null == acceptList
|
|
? _value._acceptList
|
|
: acceptList // ignore: cast_nullable_to_non_nullable
|
|
as List<String>,
|
|
rejectList: null == rejectList
|
|
? _value._rejectList
|
|
: rejectList // ignore: cast_nullable_to_non_nullable
|
|
as List<String>,
|
|
isFilterSystemApp: null == isFilterSystemApp
|
|
? _value.isFilterSystemApp
|
|
: isFilterSystemApp // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$AccessControlImpl implements _AccessControl {
|
|
const _$AccessControlImpl(
|
|
{this.mode = AccessControlMode.rejectSelected,
|
|
final List<String> acceptList = const [],
|
|
final List<String> rejectList = const [],
|
|
this.isFilterSystemApp = true})
|
|
: _acceptList = acceptList,
|
|
_rejectList = rejectList;
|
|
|
|
factory _$AccessControlImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$AccessControlImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey()
|
|
final AccessControlMode mode;
|
|
final List<String> _acceptList;
|
|
@override
|
|
@JsonKey()
|
|
List<String> get acceptList {
|
|
if (_acceptList is EqualUnmodifiableListView) return _acceptList;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_acceptList);
|
|
}
|
|
|
|
final List<String> _rejectList;
|
|
@override
|
|
@JsonKey()
|
|
List<String> get rejectList {
|
|
if (_rejectList is EqualUnmodifiableListView) return _rejectList;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_rejectList);
|
|
}
|
|
|
|
@override
|
|
@JsonKey()
|
|
final bool isFilterSystemApp;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AccessControl(mode: $mode, acceptList: $acceptList, rejectList: $rejectList, isFilterSystemApp: $isFilterSystemApp)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$AccessControlImpl &&
|
|
(identical(other.mode, mode) || other.mode == mode) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._acceptList, _acceptList) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._rejectList, _rejectList) &&
|
|
(identical(other.isFilterSystemApp, isFilterSystemApp) ||
|
|
other.isFilterSystemApp == isFilterSystemApp));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
mode,
|
|
const DeepCollectionEquality().hash(_acceptList),
|
|
const DeepCollectionEquality().hash(_rejectList),
|
|
isFilterSystemApp);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$AccessControlImplCopyWith<_$AccessControlImpl> get copyWith =>
|
|
__$$AccessControlImplCopyWithImpl<_$AccessControlImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$AccessControlImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _AccessControl implements AccessControl {
|
|
const factory _AccessControl(
|
|
{final AccessControlMode mode,
|
|
final List<String> acceptList,
|
|
final List<String> rejectList,
|
|
final bool isFilterSystemApp}) = _$AccessControlImpl;
|
|
|
|
factory _AccessControl.fromJson(Map<String, dynamic> json) =
|
|
_$AccessControlImpl.fromJson;
|
|
|
|
@override
|
|
AccessControlMode get mode;
|
|
@override
|
|
List<String> get acceptList;
|
|
@override
|
|
List<String> get rejectList;
|
|
@override
|
|
bool get isFilterSystemApp;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$AccessControlImplCopyWith<_$AccessControlImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|