@@ -12,7 +12,7 @@ part of 'public_api_response.dart';
12
12
T _$identity <T >(T value) => value;
13
13
14
14
final _privateConstructorUsedError = UnsupportedError (
15
- '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.\n Please check the documentation here for more information: https://github.com/rrousselGit/freezed#custom -getters-and-methods' );
15
+ '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.\n Please check the documentation here for more information: https://github.com/rrousselGit/freezed#adding -getters-and-methods-to-our-models ' );
16
16
17
17
PublicApiResponse _$PublicApiResponseFromJson (Map <String , dynamic > json) {
18
18
return _PublicApiEntity .fromJson (json);
@@ -68,22 +68,22 @@ class _$PublicApiResponseCopyWithImpl<$Res, $Val extends PublicApiResponse>
68
68
}
69
69
70
70
/// @nodoc
71
- abstract class _$$_PublicApiEntityCopyWith <$Res >
71
+ abstract class _$$PublicApiEntityImplCopyWith <$Res >
72
72
implements $PublicApiResponseCopyWith <$Res > {
73
- factory _$$_PublicApiEntityCopyWith (
74
- _$_PublicApiEntity value, $ Res Function (_$_PublicApiEntity ) then) =
75
- __$$_PublicApiEntityCopyWithImpl <$Res >;
73
+ factory _$$PublicApiEntityImplCopyWith ( _$PublicApiEntityImpl value,
74
+ $ Res Function (_$PublicApiEntityImpl ) then) =
75
+ __$$PublicApiEntityImplCopyWithImpl <$Res >;
76
76
@override
77
77
@useResult
78
78
$Res call ({int count, List <Entry > entries});
79
79
}
80
80
81
81
/// @nodoc
82
- class __$$_PublicApiEntityCopyWithImpl <$Res >
83
- extends _$PublicApiResponseCopyWithImpl <$Res , _$_PublicApiEntity >
84
- implements _$$_PublicApiEntityCopyWith <$Res > {
85
- __$$_PublicApiEntityCopyWithImpl (
86
- _$_PublicApiEntity _value, $Res Function (_$_PublicApiEntity ) _then)
82
+ class __$$PublicApiEntityImplCopyWithImpl <$Res >
83
+ extends _$PublicApiResponseCopyWithImpl <$Res , _$PublicApiEntityImpl >
84
+ implements _$$PublicApiEntityImplCopyWith <$Res > {
85
+ __$$PublicApiEntityImplCopyWithImpl (
86
+ _$PublicApiEntityImpl _value, $Res Function (_$PublicApiEntityImpl ) _then)
87
87
: super (_value, _then);
88
88
89
89
@pragma ('vm:prefer-inline' )
@@ -92,7 +92,7 @@ class __$$_PublicApiEntityCopyWithImpl<$Res>
92
92
Object ? count = null ,
93
93
Object ? entries = null ,
94
94
}) {
95
- return _then (_$_PublicApiEntity (
95
+ return _then (_$PublicApiEntityImpl (
96
96
count: null == count
97
97
? _value.count
98
98
: count // ignore: cast_nullable_to_non_nullable
@@ -107,14 +107,14 @@ class __$$_PublicApiEntityCopyWithImpl<$Res>
107
107
108
108
/// @nodoc
109
109
@JsonSerializable ()
110
- class _$_PublicApiEntity extends _PublicApiEntity {
111
- const _$_PublicApiEntity (
110
+ class _$PublicApiEntityImpl extends _PublicApiEntity {
111
+ const _$PublicApiEntityImpl (
112
112
{required this .count, required final List <Entry > entries})
113
113
: _entries = entries,
114
114
super ._();
115
115
116
- factory _$_PublicApiEntity .fromJson (Map <String , dynamic > json) =>
117
- _$$_PublicApiEntityFromJson (json);
116
+ factory _$PublicApiEntityImpl .fromJson (Map <String , dynamic > json) =>
117
+ _$$PublicApiEntityImplFromJson (json);
118
118
119
119
@override
120
120
final int count;
@@ -132,10 +132,10 @@ class _$_PublicApiEntity extends _PublicApiEntity {
132
132
}
133
133
134
134
@override
135
- bool operator == (dynamic other) {
135
+ bool operator == (Object other) {
136
136
return identical (this , other) ||
137
137
(other.runtimeType == runtimeType &&
138
- other is _$_PublicApiEntity &&
138
+ other is _$PublicApiEntityImpl &&
139
139
(identical (other.count, count) || other.count == count) &&
140
140
const DeepCollectionEquality ().equals (other._entries, _entries));
141
141
}
@@ -148,12 +148,13 @@ class _$_PublicApiEntity extends _PublicApiEntity {
148
148
@JsonKey (ignore: true )
149
149
@override
150
150
@pragma ('vm:prefer-inline' )
151
- _$$_PublicApiEntityCopyWith <_$_PublicApiEntity > get copyWith =>
152
- __$$_PublicApiEntityCopyWithImpl <_$_PublicApiEntity >(this , _$identity);
151
+ _$$PublicApiEntityImplCopyWith <_$PublicApiEntityImpl > get copyWith =>
152
+ __$$PublicApiEntityImplCopyWithImpl <_$PublicApiEntityImpl >(
153
+ this , _$identity);
153
154
154
155
@override
155
156
Map <String , dynamic > toJson () {
156
- return _$$_PublicApiEntityToJson (
157
+ return _$$PublicApiEntityImplToJson (
157
158
this ,
158
159
);
159
160
}
@@ -162,19 +163,19 @@ class _$_PublicApiEntity extends _PublicApiEntity {
162
163
abstract class _PublicApiEntity extends PublicApiResponse {
163
164
const factory _PublicApiEntity (
164
165
{required final int count,
165
- required final List <Entry > entries}) = _$_PublicApiEntity ;
166
+ required final List <Entry > entries}) = _$PublicApiEntityImpl ;
166
167
const _PublicApiEntity ._() : super ._();
167
168
168
169
factory _PublicApiEntity .fromJson (Map <String , dynamic > json) =
169
- _$_PublicApiEntity .fromJson;
170
+ _$PublicApiEntityImpl .fromJson;
170
171
171
172
@override
172
173
int get count;
173
174
@override
174
175
List <Entry > get entries;
175
176
@override
176
177
@JsonKey (ignore: true )
177
- _$$_PublicApiEntityCopyWith <_$_PublicApiEntity > get copyWith =>
178
+ _$$PublicApiEntityImplCopyWith <_$PublicApiEntityImpl > get copyWith =>
178
179
throw _privateConstructorUsedError;
179
180
}
180
181
@@ -276,9 +277,10 @@ class _$EntryCopyWithImpl<$Res, $Val extends Entry>
276
277
}
277
278
278
279
/// @nodoc
279
- abstract class _$$_EntryCopyWith <$Res > implements $EntryCopyWith <$Res > {
280
- factory _$$_EntryCopyWith (_$_Entry value, $Res Function (_$_Entry ) then) =
281
- __$$_EntryCopyWithImpl <$Res >;
280
+ abstract class _$$EntryImplCopyWith <$Res > implements $EntryCopyWith <$Res > {
281
+ factory _$$EntryImplCopyWith (
282
+ _$EntryImpl value, $Res Function (_$EntryImpl ) then) =
283
+ __$$EntryImplCopyWithImpl <$Res >;
282
284
@override
283
285
@useResult
284
286
$Res call (
@@ -292,9 +294,11 @@ abstract class _$$_EntryCopyWith<$Res> implements $EntryCopyWith<$Res> {
292
294
}
293
295
294
296
/// @nodoc
295
- class __$$_EntryCopyWithImpl <$Res > extends _$EntryCopyWithImpl <$Res , _$_Entry >
296
- implements _$$_EntryCopyWith <$Res > {
297
- __$$_EntryCopyWithImpl (_$_Entry _value, $Res Function (_$_Entry ) _then)
297
+ class __$$EntryImplCopyWithImpl <$Res >
298
+ extends _$EntryCopyWithImpl <$Res , _$EntryImpl >
299
+ implements _$$EntryImplCopyWith <$Res > {
300
+ __$$EntryImplCopyWithImpl (
301
+ _$EntryImpl _value, $Res Function (_$EntryImpl ) _then)
298
302
: super (_value, _then);
299
303
300
304
@pragma ('vm:prefer-inline' )
@@ -308,7 +312,7 @@ class __$$_EntryCopyWithImpl<$Res> extends _$EntryCopyWithImpl<$Res, _$_Entry>
308
312
Object ? link = null ,
309
313
Object ? category = freezed,
310
314
}) {
311
- return _then (_$_Entry (
315
+ return _then (_$EntryImpl (
312
316
api: null == api
313
317
? _value.api
314
318
: api // ignore: cast_nullable_to_non_nullable
@@ -343,8 +347,8 @@ class __$$_EntryCopyWithImpl<$Res> extends _$EntryCopyWithImpl<$Res, _$_Entry>
343
347
344
348
/// @nodoc
345
349
@JsonSerializable ()
346
- class _$_Entry implements _Entry {
347
- const _$_Entry (
350
+ class _$EntryImpl implements _Entry {
351
+ const _$EntryImpl (
348
352
{@JsonKey (name: 'API' ) required this .api,
349
353
@JsonKey (name: 'Description' ) this .description = 'Empty' ,
350
354
@JsonKey (name: 'Auth' ) this .auth,
@@ -353,8 +357,8 @@ class _$_Entry implements _Entry {
353
357
@JsonKey (name: 'Link' ) this .link = 'Empty' ,
354
358
@JsonKey (name: 'Category' ) this .category});
355
359
356
- factory _$_Entry .fromJson (Map <String , dynamic > json) =>
357
- _$$_EntryFromJson (json);
360
+ factory _$EntryImpl .fromJson (Map <String , dynamic > json) =>
361
+ _$$EntryImplFromJson (json);
358
362
359
363
// ignore: invalid_annotation_target
360
364
@override
@@ -386,10 +390,10 @@ class _$_Entry implements _Entry {
386
390
}
387
391
388
392
@override
389
- bool operator == (dynamic other) {
393
+ bool operator == (Object other) {
390
394
return identical (this , other) ||
391
395
(other.runtimeType == runtimeType &&
392
- other is _$_Entry &&
396
+ other is _$EntryImpl &&
393
397
(identical (other.api, api) || other.api == api) &&
394
398
(identical (other.description, description) ||
395
399
other.description == description) &&
@@ -409,12 +413,12 @@ class _$_Entry implements _Entry {
409
413
@JsonKey (ignore: true )
410
414
@override
411
415
@pragma ('vm:prefer-inline' )
412
- _$$_EntryCopyWith <_$_Entry > get copyWith =>
413
- __$$_EntryCopyWithImpl <_$_Entry >(this , _$identity);
416
+ _$$EntryImplCopyWith <_$EntryImpl > get copyWith =>
417
+ __$$EntryImplCopyWithImpl <_$EntryImpl >(this , _$identity);
414
418
415
419
@override
416
420
Map <String , dynamic > toJson () {
417
- return _$$_EntryToJson (
421
+ return _$$EntryImplToJson (
418
422
this ,
419
423
);
420
424
}
@@ -428,9 +432,9 @@ abstract class _Entry implements Entry {
428
432
@JsonKey (name: 'HTTPS' ) final bool ? https,
429
433
@JsonKey (name: 'Cors' ) final String ? cors,
430
434
@JsonKey (name: 'Link' ) final String link,
431
- @JsonKey (name: 'Category' ) final String ? category}) = _$_Entry ;
435
+ @JsonKey (name: 'Category' ) final String ? category}) = _$EntryImpl ;
432
436
433
- factory _Entry .fromJson (Map <String , dynamic > json) = _$_Entry .fromJson;
437
+ factory _Entry .fromJson (Map <String , dynamic > json) = _$EntryImpl .fromJson;
434
438
435
439
@override // ignore: invalid_annotation_target
436
440
@JsonKey (name: 'API' )
@@ -455,6 +459,6 @@ abstract class _Entry implements Entry {
455
459
String ? get category;
456
460
@override
457
461
@JsonKey (ignore: true )
458
- _$$_EntryCopyWith <_$_Entry > get copyWith =>
462
+ _$$EntryImplCopyWith <_$EntryImpl > get copyWith =>
459
463
throw _privateConstructorUsedError;
460
464
}
0 commit comments