Skip to content

Commit c24be5d

Browse files
refactor: update dependency
1 parent 9a07b87 commit c24be5d

File tree

10 files changed

+213
-173
lines changed

10 files changed

+213
-173
lines changed

lib/data/data_sources/public_api/remote_data_sources.g.dart

+27-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/data/response_objects/public_api/public_api_response.freezed.dart

+46-42
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ part of 'public_api_response.dart';
1212
T _$identity<T>(T value) => value;
1313

1414
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.\nPlease 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.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
1616

1717
PublicApiResponse _$PublicApiResponseFromJson(Map<String, dynamic> json) {
1818
return _PublicApiEntity.fromJson(json);
@@ -68,22 +68,22 @@ class _$PublicApiResponseCopyWithImpl<$Res, $Val extends PublicApiResponse>
6868
}
6969

7070
/// @nodoc
71-
abstract class _$$_PublicApiEntityCopyWith<$Res>
71+
abstract class _$$PublicApiEntityImplCopyWith<$Res>
7272
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>;
7676
@override
7777
@useResult
7878
$Res call({int count, List<Entry> entries});
7979
}
8080

8181
/// @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)
8787
: super(_value, _then);
8888

8989
@pragma('vm:prefer-inline')
@@ -92,7 +92,7 @@ class __$$_PublicApiEntityCopyWithImpl<$Res>
9292
Object? count = null,
9393
Object? entries = null,
9494
}) {
95-
return _then(_$_PublicApiEntity(
95+
return _then(_$PublicApiEntityImpl(
9696
count: null == count
9797
? _value.count
9898
: count // ignore: cast_nullable_to_non_nullable
@@ -107,14 +107,14 @@ class __$$_PublicApiEntityCopyWithImpl<$Res>
107107

108108
/// @nodoc
109109
@JsonSerializable()
110-
class _$_PublicApiEntity extends _PublicApiEntity {
111-
const _$_PublicApiEntity(
110+
class _$PublicApiEntityImpl extends _PublicApiEntity {
111+
const _$PublicApiEntityImpl(
112112
{required this.count, required final List<Entry> entries})
113113
: _entries = entries,
114114
super._();
115115

116-
factory _$_PublicApiEntity.fromJson(Map<String, dynamic> json) =>
117-
_$$_PublicApiEntityFromJson(json);
116+
factory _$PublicApiEntityImpl.fromJson(Map<String, dynamic> json) =>
117+
_$$PublicApiEntityImplFromJson(json);
118118

119119
@override
120120
final int count;
@@ -132,10 +132,10 @@ class _$_PublicApiEntity extends _PublicApiEntity {
132132
}
133133

134134
@override
135-
bool operator ==(dynamic other) {
135+
bool operator ==(Object other) {
136136
return identical(this, other) ||
137137
(other.runtimeType == runtimeType &&
138-
other is _$_PublicApiEntity &&
138+
other is _$PublicApiEntityImpl &&
139139
(identical(other.count, count) || other.count == count) &&
140140
const DeepCollectionEquality().equals(other._entries, _entries));
141141
}
@@ -148,12 +148,13 @@ class _$_PublicApiEntity extends _PublicApiEntity {
148148
@JsonKey(ignore: true)
149149
@override
150150
@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);
153154

154155
@override
155156
Map<String, dynamic> toJson() {
156-
return _$$_PublicApiEntityToJson(
157+
return _$$PublicApiEntityImplToJson(
157158
this,
158159
);
159160
}
@@ -162,19 +163,19 @@ class _$_PublicApiEntity extends _PublicApiEntity {
162163
abstract class _PublicApiEntity extends PublicApiResponse {
163164
const factory _PublicApiEntity(
164165
{required final int count,
165-
required final List<Entry> entries}) = _$_PublicApiEntity;
166+
required final List<Entry> entries}) = _$PublicApiEntityImpl;
166167
const _PublicApiEntity._() : super._();
167168

168169
factory _PublicApiEntity.fromJson(Map<String, dynamic> json) =
169-
_$_PublicApiEntity.fromJson;
170+
_$PublicApiEntityImpl.fromJson;
170171

171172
@override
172173
int get count;
173174
@override
174175
List<Entry> get entries;
175176
@override
176177
@JsonKey(ignore: true)
177-
_$$_PublicApiEntityCopyWith<_$_PublicApiEntity> get copyWith =>
178+
_$$PublicApiEntityImplCopyWith<_$PublicApiEntityImpl> get copyWith =>
178179
throw _privateConstructorUsedError;
179180
}
180181

@@ -276,9 +277,10 @@ class _$EntryCopyWithImpl<$Res, $Val extends Entry>
276277
}
277278

278279
/// @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>;
282284
@override
283285
@useResult
284286
$Res call(
@@ -292,9 +294,11 @@ abstract class _$$_EntryCopyWith<$Res> implements $EntryCopyWith<$Res> {
292294
}
293295

294296
/// @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)
298302
: super(_value, _then);
299303

300304
@pragma('vm:prefer-inline')
@@ -308,7 +312,7 @@ class __$$_EntryCopyWithImpl<$Res> extends _$EntryCopyWithImpl<$Res, _$_Entry>
308312
Object? link = null,
309313
Object? category = freezed,
310314
}) {
311-
return _then(_$_Entry(
315+
return _then(_$EntryImpl(
312316
api: null == api
313317
? _value.api
314318
: api // ignore: cast_nullable_to_non_nullable
@@ -343,8 +347,8 @@ class __$$_EntryCopyWithImpl<$Res> extends _$EntryCopyWithImpl<$Res, _$_Entry>
343347

344348
/// @nodoc
345349
@JsonSerializable()
346-
class _$_Entry implements _Entry {
347-
const _$_Entry(
350+
class _$EntryImpl implements _Entry {
351+
const _$EntryImpl(
348352
{@JsonKey(name: 'API') required this.api,
349353
@JsonKey(name: 'Description') this.description = 'Empty',
350354
@JsonKey(name: 'Auth') this.auth,
@@ -353,8 +357,8 @@ class _$_Entry implements _Entry {
353357
@JsonKey(name: 'Link') this.link = 'Empty',
354358
@JsonKey(name: 'Category') this.category});
355359

356-
factory _$_Entry.fromJson(Map<String, dynamic> json) =>
357-
_$$_EntryFromJson(json);
360+
factory _$EntryImpl.fromJson(Map<String, dynamic> json) =>
361+
_$$EntryImplFromJson(json);
358362

359363
// ignore: invalid_annotation_target
360364
@override
@@ -386,10 +390,10 @@ class _$_Entry implements _Entry {
386390
}
387391

388392
@override
389-
bool operator ==(dynamic other) {
393+
bool operator ==(Object other) {
390394
return identical(this, other) ||
391395
(other.runtimeType == runtimeType &&
392-
other is _$_Entry &&
396+
other is _$EntryImpl &&
393397
(identical(other.api, api) || other.api == api) &&
394398
(identical(other.description, description) ||
395399
other.description == description) &&
@@ -409,12 +413,12 @@ class _$_Entry implements _Entry {
409413
@JsonKey(ignore: true)
410414
@override
411415
@pragma('vm:prefer-inline')
412-
_$$_EntryCopyWith<_$_Entry> get copyWith =>
413-
__$$_EntryCopyWithImpl<_$_Entry>(this, _$identity);
416+
_$$EntryImplCopyWith<_$EntryImpl> get copyWith =>
417+
__$$EntryImplCopyWithImpl<_$EntryImpl>(this, _$identity);
414418

415419
@override
416420
Map<String, dynamic> toJson() {
417-
return _$$_EntryToJson(
421+
return _$$EntryImplToJson(
418422
this,
419423
);
420424
}
@@ -428,9 +432,9 @@ abstract class _Entry implements Entry {
428432
@JsonKey(name: 'HTTPS') final bool? https,
429433
@JsonKey(name: 'Cors') final String? cors,
430434
@JsonKey(name: 'Link') final String link,
431-
@JsonKey(name: 'Category') final String? category}) = _$_Entry;
435+
@JsonKey(name: 'Category') final String? category}) = _$EntryImpl;
432436

433-
factory _Entry.fromJson(Map<String, dynamic> json) = _$_Entry.fromJson;
437+
factory _Entry.fromJson(Map<String, dynamic> json) = _$EntryImpl.fromJson;
434438

435439
@override // ignore: invalid_annotation_target
436440
@JsonKey(name: 'API')
@@ -455,6 +459,6 @@ abstract class _Entry implements Entry {
455459
String? get category;
456460
@override
457461
@JsonKey(ignore: true)
458-
_$$_EntryCopyWith<_$_Entry> get copyWith =>
462+
_$$EntryImplCopyWith<_$EntryImpl> get copyWith =>
459463
throw _privateConstructorUsedError;
460464
}

lib/data/response_objects/public_api/public_api_response.g.dart

+9-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)