subtracks/lib/models/settings.freezed.dart
Bart Ribbers e11250182d chore: upgrade to Flutter 3.24.5
At the time of writing the latest Flutter version.
2024-12-10 22:45:36 +01:00

815 lines
24 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 'settings.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');
/// @nodoc
mixin _$Settings {
IList<SourceSettings> get sources => throw _privateConstructorUsedError;
SourceSettings? get activeSource => throw _privateConstructorUsedError;
AppSettings get app => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$SettingsCopyWith<Settings> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $SettingsCopyWith<$Res> {
factory $SettingsCopyWith(Settings value, $Res Function(Settings) then) =
_$SettingsCopyWithImpl<$Res, Settings>;
@useResult
$Res call(
{IList<SourceSettings> sources,
SourceSettings? activeSource,
AppSettings app});
$AppSettingsCopyWith<$Res> get app;
}
/// @nodoc
class _$SettingsCopyWithImpl<$Res, $Val extends Settings>
implements $SettingsCopyWith<$Res> {
_$SettingsCopyWithImpl(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? sources = null,
Object? activeSource = freezed,
Object? app = null,
}) {
return _then(_value.copyWith(
sources: null == sources
? _value.sources
: sources // ignore: cast_nullable_to_non_nullable
as IList<SourceSettings>,
activeSource: freezed == activeSource
? _value.activeSource
: activeSource // ignore: cast_nullable_to_non_nullable
as SourceSettings?,
app: null == app
? _value.app
: app // ignore: cast_nullable_to_non_nullable
as AppSettings,
) as $Val);
}
@override
@pragma('vm:prefer-inline')
$AppSettingsCopyWith<$Res> get app {
return $AppSettingsCopyWith<$Res>(_value.app, (value) {
return _then(_value.copyWith(app: value) as $Val);
});
}
}
/// @nodoc
abstract class _$$SettingsImplCopyWith<$Res>
implements $SettingsCopyWith<$Res> {
factory _$$SettingsImplCopyWith(
_$SettingsImpl value, $Res Function(_$SettingsImpl) then) =
__$$SettingsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{IList<SourceSettings> sources,
SourceSettings? activeSource,
AppSettings app});
@override
$AppSettingsCopyWith<$Res> get app;
}
/// @nodoc
class __$$SettingsImplCopyWithImpl<$Res>
extends _$SettingsCopyWithImpl<$Res, _$SettingsImpl>
implements _$$SettingsImplCopyWith<$Res> {
__$$SettingsImplCopyWithImpl(
_$SettingsImpl _value, $Res Function(_$SettingsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sources = null,
Object? activeSource = freezed,
Object? app = null,
}) {
return _then(_$SettingsImpl(
sources: null == sources
? _value.sources
: sources // ignore: cast_nullable_to_non_nullable
as IList<SourceSettings>,
activeSource: freezed == activeSource
? _value.activeSource
: activeSource // ignore: cast_nullable_to_non_nullable
as SourceSettings?,
app: null == app
? _value.app
: app // ignore: cast_nullable_to_non_nullable
as AppSettings,
));
}
}
/// @nodoc
class _$SettingsImpl implements _Settings {
const _$SettingsImpl(
{this.sources = const IListConst([]),
this.activeSource,
this.app = const AppSettings()});
@override
@JsonKey()
final IList<SourceSettings> sources;
@override
final SourceSettings? activeSource;
@override
@JsonKey()
final AppSettings app;
@override
String toString() {
return 'Settings(sources: $sources, activeSource: $activeSource, app: $app)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$SettingsImpl &&
const DeepCollectionEquality().equals(other.sources, sources) &&
(identical(other.activeSource, activeSource) ||
other.activeSource == activeSource) &&
(identical(other.app, app) || other.app == app));
}
@override
int get hashCode => Object.hash(runtimeType,
const DeepCollectionEquality().hash(sources), activeSource, app);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$SettingsImplCopyWith<_$SettingsImpl> get copyWith =>
__$$SettingsImplCopyWithImpl<_$SettingsImpl>(this, _$identity);
}
abstract class _Settings implements Settings {
const factory _Settings(
{final IList<SourceSettings> sources,
final SourceSettings? activeSource,
final AppSettings app}) = _$SettingsImpl;
@override
IList<SourceSettings> get sources;
@override
SourceSettings? get activeSource;
@override
AppSettings get app;
@override
@JsonKey(ignore: true)
_$$SettingsImplCopyWith<_$SettingsImpl> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$AppSettings {
int get maxBitrateWifi => throw _privateConstructorUsedError;
int get maxBitrateMobile => throw _privateConstructorUsedError;
String? get streamFormat => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$AppSettingsCopyWith<AppSettings> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $AppSettingsCopyWith<$Res> {
factory $AppSettingsCopyWith(
AppSettings value, $Res Function(AppSettings) then) =
_$AppSettingsCopyWithImpl<$Res, AppSettings>;
@useResult
$Res call({int maxBitrateWifi, int maxBitrateMobile, String? streamFormat});
}
/// @nodoc
class _$AppSettingsCopyWithImpl<$Res, $Val extends AppSettings>
implements $AppSettingsCopyWith<$Res> {
_$AppSettingsCopyWithImpl(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? maxBitrateWifi = null,
Object? maxBitrateMobile = null,
Object? streamFormat = freezed,
}) {
return _then(_value.copyWith(
maxBitrateWifi: null == maxBitrateWifi
? _value.maxBitrateWifi
: maxBitrateWifi // ignore: cast_nullable_to_non_nullable
as int,
maxBitrateMobile: null == maxBitrateMobile
? _value.maxBitrateMobile
: maxBitrateMobile // ignore: cast_nullable_to_non_nullable
as int,
streamFormat: freezed == streamFormat
? _value.streamFormat
: streamFormat // ignore: cast_nullable_to_non_nullable
as String?,
) as $Val);
}
}
/// @nodoc
abstract class _$$AppSettingsImplCopyWith<$Res>
implements $AppSettingsCopyWith<$Res> {
factory _$$AppSettingsImplCopyWith(
_$AppSettingsImpl value, $Res Function(_$AppSettingsImpl) then) =
__$$AppSettingsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({int maxBitrateWifi, int maxBitrateMobile, String? streamFormat});
}
/// @nodoc
class __$$AppSettingsImplCopyWithImpl<$Res>
extends _$AppSettingsCopyWithImpl<$Res, _$AppSettingsImpl>
implements _$$AppSettingsImplCopyWith<$Res> {
__$$AppSettingsImplCopyWithImpl(
_$AppSettingsImpl _value, $Res Function(_$AppSettingsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? maxBitrateWifi = null,
Object? maxBitrateMobile = null,
Object? streamFormat = freezed,
}) {
return _then(_$AppSettingsImpl(
maxBitrateWifi: null == maxBitrateWifi
? _value.maxBitrateWifi
: maxBitrateWifi // ignore: cast_nullable_to_non_nullable
as int,
maxBitrateMobile: null == maxBitrateMobile
? _value.maxBitrateMobile
: maxBitrateMobile // ignore: cast_nullable_to_non_nullable
as int,
streamFormat: freezed == streamFormat
? _value.streamFormat
: streamFormat // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// @nodoc
class _$AppSettingsImpl extends _AppSettings {
const _$AppSettingsImpl(
{this.maxBitrateWifi = 0,
this.maxBitrateMobile = 192,
this.streamFormat = 'mp3'})
: super._();
@override
@JsonKey()
final int maxBitrateWifi;
@override
@JsonKey()
final int maxBitrateMobile;
@override
@JsonKey()
final String? streamFormat;
@override
String toString() {
return 'AppSettings(maxBitrateWifi: $maxBitrateWifi, maxBitrateMobile: $maxBitrateMobile, streamFormat: $streamFormat)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$AppSettingsImpl &&
(identical(other.maxBitrateWifi, maxBitrateWifi) ||
other.maxBitrateWifi == maxBitrateWifi) &&
(identical(other.maxBitrateMobile, maxBitrateMobile) ||
other.maxBitrateMobile == maxBitrateMobile) &&
(identical(other.streamFormat, streamFormat) ||
other.streamFormat == streamFormat));
}
@override
int get hashCode =>
Object.hash(runtimeType, maxBitrateWifi, maxBitrateMobile, streamFormat);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$AppSettingsImplCopyWith<_$AppSettingsImpl> get copyWith =>
__$$AppSettingsImplCopyWithImpl<_$AppSettingsImpl>(this, _$identity);
}
abstract class _AppSettings extends AppSettings {
const factory _AppSettings(
{final int maxBitrateWifi,
final int maxBitrateMobile,
final String? streamFormat}) = _$AppSettingsImpl;
const _AppSettings._() : super._();
@override
int get maxBitrateWifi;
@override
int get maxBitrateMobile;
@override
String? get streamFormat;
@override
@JsonKey(ignore: true)
_$$AppSettingsImplCopyWith<_$AppSettingsImpl> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$SubsonicSettings {
int get id => throw _privateConstructorUsedError;
IList<SubsonicFeature> get features => throw _privateConstructorUsedError;
String get name => throw _privateConstructorUsedError;
Uri get address => throw _privateConstructorUsedError;
bool? get isActive => throw _privateConstructorUsedError;
DateTime get createdAt => throw _privateConstructorUsedError;
String get username => throw _privateConstructorUsedError;
String get password => throw _privateConstructorUsedError;
bool get useTokenAuth => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$SubsonicSettingsCopyWith<SubsonicSettings> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $SubsonicSettingsCopyWith<$Res> {
factory $SubsonicSettingsCopyWith(
SubsonicSettings value, $Res Function(SubsonicSettings) then) =
_$SubsonicSettingsCopyWithImpl<$Res, SubsonicSettings>;
@useResult
$Res call(
{int id,
IList<SubsonicFeature> features,
String name,
Uri address,
bool? isActive,
DateTime createdAt,
String username,
String password,
bool useTokenAuth});
}
/// @nodoc
class _$SubsonicSettingsCopyWithImpl<$Res, $Val extends SubsonicSettings>
implements $SubsonicSettingsCopyWith<$Res> {
_$SubsonicSettingsCopyWithImpl(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? id = null,
Object? features = null,
Object? name = null,
Object? address = null,
Object? isActive = freezed,
Object? createdAt = null,
Object? username = null,
Object? password = null,
Object? useTokenAuth = null,
}) {
return _then(_value.copyWith(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int,
features: null == features
? _value.features
: features // ignore: cast_nullable_to_non_nullable
as IList<SubsonicFeature>,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
address: null == address
? _value.address
: address // ignore: cast_nullable_to_non_nullable
as Uri,
isActive: freezed == isActive
? _value.isActive
: isActive // ignore: cast_nullable_to_non_nullable
as bool?,
createdAt: null == createdAt
? _value.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
username: null == username
? _value.username
: username // ignore: cast_nullable_to_non_nullable
as String,
password: null == password
? _value.password
: password // ignore: cast_nullable_to_non_nullable
as String,
useTokenAuth: null == useTokenAuth
? _value.useTokenAuth
: useTokenAuth // ignore: cast_nullable_to_non_nullable
as bool,
) as $Val);
}
}
/// @nodoc
abstract class _$$SubsonicSettingsImplCopyWith<$Res>
implements $SubsonicSettingsCopyWith<$Res> {
factory _$$SubsonicSettingsImplCopyWith(_$SubsonicSettingsImpl value,
$Res Function(_$SubsonicSettingsImpl) then) =
__$$SubsonicSettingsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{int id,
IList<SubsonicFeature> features,
String name,
Uri address,
bool? isActive,
DateTime createdAt,
String username,
String password,
bool useTokenAuth});
}
/// @nodoc
class __$$SubsonicSettingsImplCopyWithImpl<$Res>
extends _$SubsonicSettingsCopyWithImpl<$Res, _$SubsonicSettingsImpl>
implements _$$SubsonicSettingsImplCopyWith<$Res> {
__$$SubsonicSettingsImplCopyWithImpl(_$SubsonicSettingsImpl _value,
$Res Function(_$SubsonicSettingsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? features = null,
Object? name = null,
Object? address = null,
Object? isActive = freezed,
Object? createdAt = null,
Object? username = null,
Object? password = null,
Object? useTokenAuth = null,
}) {
return _then(_$SubsonicSettingsImpl(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int,
features: null == features
? _value.features
: features // ignore: cast_nullable_to_non_nullable
as IList<SubsonicFeature>,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
address: null == address
? _value.address
: address // ignore: cast_nullable_to_non_nullable
as Uri,
isActive: freezed == isActive
? _value.isActive
: isActive // ignore: cast_nullable_to_non_nullable
as bool?,
createdAt: null == createdAt
? _value.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
username: null == username
? _value.username
: username // ignore: cast_nullable_to_non_nullable
as String,
password: null == password
? _value.password
: password // ignore: cast_nullable_to_non_nullable
as String,
useTokenAuth: null == useTokenAuth
? _value.useTokenAuth
: useTokenAuth // ignore: cast_nullable_to_non_nullable
as bool,
));
}
}
/// @nodoc
class _$SubsonicSettingsImpl extends _SubsonicSettings {
const _$SubsonicSettingsImpl(
{required this.id,
this.features = const IListConst([]),
required this.name,
required this.address,
required this.isActive,
required this.createdAt,
required this.username,
required this.password,
this.useTokenAuth = true})
: super._();
@override
final int id;
@override
@JsonKey()
final IList<SubsonicFeature> features;
@override
final String name;
@override
final Uri address;
@override
final bool? isActive;
@override
final DateTime createdAt;
@override
final String username;
@override
final String password;
@override
@JsonKey()
final bool useTokenAuth;
@override
String toString() {
return 'SubsonicSettings(id: $id, features: $features, name: $name, address: $address, isActive: $isActive, createdAt: $createdAt, username: $username, password: $password, useTokenAuth: $useTokenAuth)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$SubsonicSettingsImpl &&
(identical(other.id, id) || other.id == id) &&
const DeepCollectionEquality().equals(other.features, features) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.address, address) || other.address == address) &&
(identical(other.isActive, isActive) ||
other.isActive == isActive) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.username, username) ||
other.username == username) &&
(identical(other.password, password) ||
other.password == password) &&
(identical(other.useTokenAuth, useTokenAuth) ||
other.useTokenAuth == useTokenAuth));
}
@override
int get hashCode => Object.hash(
runtimeType,
id,
const DeepCollectionEquality().hash(features),
name,
address,
isActive,
createdAt,
username,
password,
useTokenAuth);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$SubsonicSettingsImplCopyWith<_$SubsonicSettingsImpl> get copyWith =>
__$$SubsonicSettingsImplCopyWithImpl<_$SubsonicSettingsImpl>(
this, _$identity);
}
abstract class _SubsonicSettings extends SubsonicSettings {
const factory _SubsonicSettings(
{required final int id,
final IList<SubsonicFeature> features,
required final String name,
required final Uri address,
required final bool? isActive,
required final DateTime createdAt,
required final String username,
required final String password,
final bool useTokenAuth}) = _$SubsonicSettingsImpl;
const _SubsonicSettings._() : super._();
@override
int get id;
@override
IList<SubsonicFeature> get features;
@override
String get name;
@override
Uri get address;
@override
bool? get isActive;
@override
DateTime get createdAt;
@override
String get username;
@override
String get password;
@override
bool get useTokenAuth;
@override
@JsonKey(ignore: true)
_$$SubsonicSettingsImplCopyWith<_$SubsonicSettingsImpl> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$SubsonicSourceSettings {
SourceSettings get source => throw _privateConstructorUsedError;
SubsonicSettings get subsonic => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$SubsonicSourceSettingsCopyWith<SubsonicSourceSettings> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $SubsonicSourceSettingsCopyWith<$Res> {
factory $SubsonicSourceSettingsCopyWith(SubsonicSourceSettings value,
$Res Function(SubsonicSourceSettings) then) =
_$SubsonicSourceSettingsCopyWithImpl<$Res, SubsonicSourceSettings>;
@useResult
$Res call({SourceSettings source, SubsonicSettings subsonic});
$SubsonicSettingsCopyWith<$Res> get subsonic;
}
/// @nodoc
class _$SubsonicSourceSettingsCopyWithImpl<$Res,
$Val extends SubsonicSourceSettings>
implements $SubsonicSourceSettingsCopyWith<$Res> {
_$SubsonicSourceSettingsCopyWithImpl(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? source = null,
Object? subsonic = null,
}) {
return _then(_value.copyWith(
source: null == source
? _value.source
: source // ignore: cast_nullable_to_non_nullable
as SourceSettings,
subsonic: null == subsonic
? _value.subsonic
: subsonic // ignore: cast_nullable_to_non_nullable
as SubsonicSettings,
) as $Val);
}
@override
@pragma('vm:prefer-inline')
$SubsonicSettingsCopyWith<$Res> get subsonic {
return $SubsonicSettingsCopyWith<$Res>(_value.subsonic, (value) {
return _then(_value.copyWith(subsonic: value) as $Val);
});
}
}
/// @nodoc
abstract class _$$SubsonicSourceSettingsImplCopyWith<$Res>
implements $SubsonicSourceSettingsCopyWith<$Res> {
factory _$$SubsonicSourceSettingsImplCopyWith(
_$SubsonicSourceSettingsImpl value,
$Res Function(_$SubsonicSourceSettingsImpl) then) =
__$$SubsonicSourceSettingsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({SourceSettings source, SubsonicSettings subsonic});
@override
$SubsonicSettingsCopyWith<$Res> get subsonic;
}
/// @nodoc
class __$$SubsonicSourceSettingsImplCopyWithImpl<$Res>
extends _$SubsonicSourceSettingsCopyWithImpl<$Res,
_$SubsonicSourceSettingsImpl>
implements _$$SubsonicSourceSettingsImplCopyWith<$Res> {
__$$SubsonicSourceSettingsImplCopyWithImpl(
_$SubsonicSourceSettingsImpl _value,
$Res Function(_$SubsonicSourceSettingsImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? source = null,
Object? subsonic = null,
}) {
return _then(_$SubsonicSourceSettingsImpl(
source: null == source
? _value.source
: source // ignore: cast_nullable_to_non_nullable
as SourceSettings,
subsonic: null == subsonic
? _value.subsonic
: subsonic // ignore: cast_nullable_to_non_nullable
as SubsonicSettings,
));
}
}
/// @nodoc
class _$SubsonicSourceSettingsImpl extends _SubsonicSourceSettings {
const _$SubsonicSourceSettingsImpl(
{required this.source, required this.subsonic})
: super._();
@override
final SourceSettings source;
@override
final SubsonicSettings subsonic;
@override
String toString() {
return 'SubsonicSourceSettings(source: $source, subsonic: $subsonic)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$SubsonicSourceSettingsImpl &&
(identical(other.source, source) || other.source == source) &&
(identical(other.subsonic, subsonic) ||
other.subsonic == subsonic));
}
@override
int get hashCode => Object.hash(runtimeType, source, subsonic);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$SubsonicSourceSettingsImplCopyWith<_$SubsonicSourceSettingsImpl>
get copyWith => __$$SubsonicSourceSettingsImplCopyWithImpl<
_$SubsonicSourceSettingsImpl>(this, _$identity);
}
abstract class _SubsonicSourceSettings extends SubsonicSourceSettings {
const factory _SubsonicSourceSettings(
{required final SourceSettings source,
required final SubsonicSettings subsonic}) = _$SubsonicSourceSettingsImpl;
const _SubsonicSourceSettings._() : super._();
@override
SourceSettings get source;
@override
SubsonicSettings get subsonic;
@override
@JsonKey(ignore: true)
_$$SubsonicSourceSettingsImplCopyWith<_$SubsonicSourceSettingsImpl>
get copyWith => throw _privateConstructorUsedError;
}