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// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'alfred_automatic_cache.dart';
// **************************************************************************
// AutoequalGenerator
// **************************************************************************
extension _$AlfredAutomaticCacheAutoequal on AlfredAutomaticCache {
List<Object?> get _$props => [seconds, looseReload];
}
// **************************************************************************
// CopyWithGenerator
// **************************************************************************
abstract class _$AlfredAutomaticCacheCWProxy {
AlfredAutomaticCache seconds(int seconds);
AlfredAutomaticCache looseReload(bool? looseReload);
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `AlfredAutomaticCache(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
///
/// Usage
/// ```dart
/// AlfredAutomaticCache(...).copyWith(id: 12, name: "My name")
/// ````
AlfredAutomaticCache call({
int seconds,
bool? looseReload,
});
}
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfAlfredAutomaticCache.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfAlfredAutomaticCache.copyWith.fieldName(...)`
class _$AlfredAutomaticCacheCWProxyImpl
implements _$AlfredAutomaticCacheCWProxy {
const _$AlfredAutomaticCacheCWProxyImpl(this._value);
final AlfredAutomaticCache _value;
@override
AlfredAutomaticCache seconds(int seconds) => this(seconds: seconds);
@override
AlfredAutomaticCache looseReload(bool? looseReload) =>
this(looseReload: looseReload);
@override
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `AlfredAutomaticCache(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
///
/// Usage
/// ```dart
/// AlfredAutomaticCache(...).copyWith(id: 12, name: "My name")
/// ````
AlfredAutomaticCache call({
Object? seconds = const $CopyWithPlaceholder(),
Object? looseReload = const $CopyWithPlaceholder(),
}) {
return AlfredAutomaticCache(
seconds: seconds == const $CopyWithPlaceholder()
? _value.seconds
// ignore: cast_nullable_to_non_nullable
: seconds as int,
looseReload: looseReload == const $CopyWithPlaceholder()
? _value.looseReload
// ignore: cast_nullable_to_non_nullable
: looseReload as bool?,
);
}
}
extension $AlfredAutomaticCacheCopyWith on AlfredAutomaticCache {
/// Returns a callable class that can be used as follows: `instanceOfAlfredAutomaticCache.copyWith(...)` or like so:`instanceOfAlfredAutomaticCache.copyWith.fieldName(...)`.
// ignore: library_private_types_in_public_api
_$AlfredAutomaticCacheCWProxy get copyWith =>
_$AlfredAutomaticCacheCWProxyImpl(this);
}
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Map<String, dynamic> _$AlfredAutomaticCacheToJson(
AlfredAutomaticCache instance) =>
<String, dynamic>{
'seconds': instance.seconds,
if (instance.looseReload case final value?) 'loosereload': value,
};