generated from xmartlabs/flutter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.freezed.dart
255 lines (229 loc) · 7.46 KB
/
project.freezed.dart
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
// 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 'project.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#custom-getters-and-methods');
Project _$ProjectFromJson(Map<String, dynamic> json) {
return _Project.fromJson(json);
}
/// @nodoc
mixin _$Project {
int get id => throw _privateConstructorUsedError;
String get name => throw _privateConstructorUsedError;
String get description => throw _privateConstructorUsedError;
String get url => throw _privateConstructorUsedError;
String get imageUrl => throw _privateConstructorUsedError;
String get language => throw _privateConstructorUsedError;
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$ProjectCopyWith<Project> get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $ProjectCopyWith<$Res> {
factory $ProjectCopyWith(Project value, $Res Function(Project) then) =
_$ProjectCopyWithImpl<$Res, Project>;
@useResult
$Res call(
{int id,
String name,
String description,
String url,
String imageUrl,
String language});
}
/// @nodoc
class _$ProjectCopyWithImpl<$Res, $Val extends Project>
implements $ProjectCopyWith<$Res> {
_$ProjectCopyWithImpl(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? name = null,
Object? description = null,
Object? url = null,
Object? imageUrl = null,
Object? language = null,
}) {
return _then(_value.copyWith(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
description: null == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String,
url: null == url
? _value.url
: url // ignore: cast_nullable_to_non_nullable
as String,
imageUrl: null == imageUrl
? _value.imageUrl
: imageUrl // ignore: cast_nullable_to_non_nullable
as String,
language: null == language
? _value.language
: language // ignore: cast_nullable_to_non_nullable
as String,
) as $Val);
}
}
/// @nodoc
abstract class _$$_ProjectCopyWith<$Res> implements $ProjectCopyWith<$Res> {
factory _$$_ProjectCopyWith(
_$_Project value, $Res Function(_$_Project) then) =
__$$_ProjectCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{int id,
String name,
String description,
String url,
String imageUrl,
String language});
}
/// @nodoc
class __$$_ProjectCopyWithImpl<$Res>
extends _$ProjectCopyWithImpl<$Res, _$_Project>
implements _$$_ProjectCopyWith<$Res> {
__$$_ProjectCopyWithImpl(_$_Project _value, $Res Function(_$_Project) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? name = null,
Object? description = null,
Object? url = null,
Object? imageUrl = null,
Object? language = null,
}) {
return _then(_$_Project(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
description: null == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String,
url: null == url
? _value.url
: url // ignore: cast_nullable_to_non_nullable
as String,
imageUrl: null == imageUrl
? _value.imageUrl
: imageUrl // ignore: cast_nullable_to_non_nullable
as String,
language: null == language
? _value.language
: language // ignore: cast_nullable_to_non_nullable
as String,
));
}
}
/// @nodoc
@JsonSerializable()
class _$_Project implements _Project {
_$_Project(
{required this.id,
required this.name,
required this.description,
required this.url,
required this.imageUrl,
required this.language});
factory _$_Project.fromJson(Map<String, dynamic> json) =>
_$$_ProjectFromJson(json);
@override
final int id;
@override
final String name;
@override
final String description;
@override
final String url;
@override
final String imageUrl;
@override
final String language;
@override
String toString() {
return 'Project(id: $id, name: $name, description: $description, url: $url, imageUrl: $imageUrl, language: $language)';
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_Project &&
(identical(other.id, id) || other.id == id) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.description, description) ||
other.description == description) &&
(identical(other.url, url) || other.url == url) &&
(identical(other.imageUrl, imageUrl) ||
other.imageUrl == imageUrl) &&
(identical(other.language, language) ||
other.language == language));
}
@JsonKey(ignore: true)
@override
int get hashCode =>
Object.hash(runtimeType, id, name, description, url, imageUrl, language);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_ProjectCopyWith<_$_Project> get copyWith =>
__$$_ProjectCopyWithImpl<_$_Project>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$_ProjectToJson(
this,
);
}
}
abstract class _Project implements Project {
factory _Project(
{required final int id,
required final String name,
required final String description,
required final String url,
required final String imageUrl,
required final String language}) = _$_Project;
factory _Project.fromJson(Map<String, dynamic> json) = _$_Project.fromJson;
@override
int get id;
@override
String get name;
@override
String get description;
@override
String get url;
@override
String get imageUrl;
@override
String get language;
@override
@JsonKey(ignore: true)
_$$_ProjectCopyWith<_$_Project> get copyWith =>
throw _privateConstructorUsedError;
}