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// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'alfred_user_configuration_config_select.dart';
// **************************************************************************
// CopyWithGenerator
// **************************************************************************
abstract class _$AlfredUserConfigurationConfigSelectCWProxy {
AlfredUserConfigurationConfigSelect defaultValue(String defaultValue);
AlfredUserConfigurationConfigSelect pairs(
List<AlfredUserConfigurationConfigSelectPair> pairs,
);
AlfredUserConfigurationConfigSelect value(String? value);
/// Creates a new instance with the provided field values.
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `AlfredUserConfigurationConfigSelect(...).copyWith.fieldName(value)`.
///
/// Example:
/// ```dart
/// AlfredUserConfigurationConfigSelect(...).copyWith(id: 12, name: "My name")
/// ```
AlfredUserConfigurationConfigSelect call({
String defaultValue,
List<AlfredUserConfigurationConfigSelectPair> pairs,
String? value,
});
}
/// Callable proxy for `copyWith` functionality.
/// Use as `instanceOfAlfredUserConfigurationConfigSelect.copyWith(...)` or call `instanceOfAlfredUserConfigurationConfigSelect.copyWith.fieldName(value)` for a single field.
class _$AlfredUserConfigurationConfigSelectCWProxyImpl
implements _$AlfredUserConfigurationConfigSelectCWProxy {
const _$AlfredUserConfigurationConfigSelectCWProxyImpl(this._value);
final AlfredUserConfigurationConfigSelect _value;
@override
AlfredUserConfigurationConfigSelect defaultValue(String defaultValue) =>
call(defaultValue: defaultValue);
@override
AlfredUserConfigurationConfigSelect pairs(
List<AlfredUserConfigurationConfigSelectPair> pairs,
) => call(pairs: pairs);
@override
AlfredUserConfigurationConfigSelect value(String? value) =>
call(value: value);
@override
/// Creates a new instance with the provided field values.
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `AlfredUserConfigurationConfigSelect(...).copyWith.fieldName(value)`.
///
/// Example:
/// ```dart
/// AlfredUserConfigurationConfigSelect(...).copyWith(id: 12, name: "My name")
/// ```
AlfredUserConfigurationConfigSelect call({
Object? defaultValue = const $CopyWithPlaceholder(),
Object? pairs = const $CopyWithPlaceholder(),
Object? value = const $CopyWithPlaceholder(),
}) {
return AlfredUserConfigurationConfigSelect(
defaultValue:
defaultValue == const $CopyWithPlaceholder() || defaultValue == null
? _value.defaultValue
// ignore: cast_nullable_to_non_nullable
: defaultValue as String,
pairs: pairs == const $CopyWithPlaceholder() || pairs == null
? _value.pairs
// ignore: cast_nullable_to_non_nullable
: pairs as List<AlfredUserConfigurationConfigSelectPair>,
value: value == const $CopyWithPlaceholder()
? _value.value
// ignore: cast_nullable_to_non_nullable
: value as String?,
);
}
}
extension $AlfredUserConfigurationConfigSelectCopyWith
on AlfredUserConfigurationConfigSelect {
/// Returns a callable class used to build a new instance with modified fields.
/// Example: `instanceOfAlfredUserConfigurationConfigSelect.copyWith(...)` or `instanceOfAlfredUserConfigurationConfigSelect.copyWith.fieldName(...)`.
// ignore: library_private_types_in_public_api
_$AlfredUserConfigurationConfigSelectCWProxy get copyWith =>
_$AlfredUserConfigurationConfigSelectCWProxyImpl(this);
}
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
AlfredUserConfigurationConfigSelect
_$AlfredUserConfigurationConfigSelectFromJson(Map<String, dynamic> json) =>
AlfredUserConfigurationConfigSelect(
defaultValue:
AlfredUserConfigurationConfig.fromJsonDefaultValue(json, 'default')
as String,
pairs: AlfredUserConfigurationConfigSelect._pairsFromJson(
json['pairs'] as List,
),
);