212 lines
6.2 KiB
Dart
212 lines
6.2 KiB
Dart
// 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
|
|
|
|
part of 'photo_model.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');
|
|
|
|
PhotoModel _$PhotoModelFromJson(Map<String, dynamic> json) {
|
|
return _PhotoModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$PhotoModel {
|
|
int get albumId => throw _privateConstructorUsedError;
|
|
int get id => throw _privateConstructorUsedError;
|
|
String get title => throw _privateConstructorUsedError;
|
|
String get url => throw _privateConstructorUsedError;
|
|
String get thumbnailUrl => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$PhotoModelCopyWith<PhotoModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $PhotoModelCopyWith<$Res> {
|
|
factory $PhotoModelCopyWith(
|
|
PhotoModel value, $Res Function(PhotoModel) then) =
|
|
_$PhotoModelCopyWithImpl<$Res, PhotoModel>;
|
|
@useResult
|
|
$Res call(
|
|
{int albumId, int id, String title, String url, String thumbnailUrl});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$PhotoModelCopyWithImpl<$Res, $Val extends PhotoModel>
|
|
implements $PhotoModelCopyWith<$Res> {
|
|
_$PhotoModelCopyWithImpl(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? albumId = null,
|
|
Object? id = null,
|
|
Object? title = null,
|
|
Object? url = null,
|
|
Object? thumbnailUrl = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
albumId: null == albumId
|
|
? _value.albumId
|
|
: albumId // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
title: null == title
|
|
? _value.title
|
|
: title // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
url: null == url
|
|
? _value.url
|
|
: url // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
thumbnailUrl: null == thumbnailUrl
|
|
? _value.thumbnailUrl
|
|
: thumbnailUrl // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$_PhotoModelCopyWith<$Res>
|
|
implements $PhotoModelCopyWith<$Res> {
|
|
factory _$$_PhotoModelCopyWith(
|
|
_$_PhotoModel value, $Res Function(_$_PhotoModel) then) =
|
|
__$$_PhotoModelCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{int albumId, int id, String title, String url, String thumbnailUrl});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$_PhotoModelCopyWithImpl<$Res>
|
|
extends _$PhotoModelCopyWithImpl<$Res, _$_PhotoModel>
|
|
implements _$$_PhotoModelCopyWith<$Res> {
|
|
__$$_PhotoModelCopyWithImpl(
|
|
_$_PhotoModel _value, $Res Function(_$_PhotoModel) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? albumId = null,
|
|
Object? id = null,
|
|
Object? title = null,
|
|
Object? url = null,
|
|
Object? thumbnailUrl = null,
|
|
}) {
|
|
return _then(_$_PhotoModel(
|
|
albumId: null == albumId
|
|
? _value.albumId
|
|
: albumId // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
title: null == title
|
|
? _value.title
|
|
: title // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
url: null == url
|
|
? _value.url
|
|
: url // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
thumbnailUrl: null == thumbnailUrl
|
|
? _value.thumbnailUrl
|
|
: thumbnailUrl // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$_PhotoModel implements _PhotoModel {
|
|
const _$_PhotoModel(
|
|
{required this.albumId,
|
|
required this.id,
|
|
required this.title,
|
|
required this.url,
|
|
required this.thumbnailUrl});
|
|
|
|
factory _$_PhotoModel.fromJson(Map<String, dynamic> json) =>
|
|
_$$_PhotoModelFromJson(json);
|
|
|
|
@override
|
|
final int albumId;
|
|
@override
|
|
final int id;
|
|
@override
|
|
final String title;
|
|
@override
|
|
final String url;
|
|
@override
|
|
final String thumbnailUrl;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'PhotoModel(albumId: $albumId, id: $id, title: $title, url: $url, thumbnailUrl: $thumbnailUrl)';
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$_PhotoModelCopyWith<_$_PhotoModel> get copyWith =>
|
|
__$$_PhotoModelCopyWithImpl<_$_PhotoModel>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$_PhotoModelToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _PhotoModel implements PhotoModel {
|
|
const factory _PhotoModel(
|
|
{required final int albumId,
|
|
required final int id,
|
|
required final String title,
|
|
required final String url,
|
|
required final String thumbnailUrl}) = _$_PhotoModel;
|
|
|
|
factory _PhotoModel.fromJson(Map<String, dynamic> json) =
|
|
_$_PhotoModel.fromJson;
|
|
|
|
@override
|
|
int get albumId;
|
|
@override
|
|
int get id;
|
|
@override
|
|
String get title;
|
|
@override
|
|
String get url;
|
|
@override
|
|
String get thumbnailUrl;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$_PhotoModelCopyWith<_$_PhotoModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|