2021-08-31 18:06:34 +02:00
// coverage:ignore-file
2021-07-19 00:47:22 +02:00
// GENERATED CODE - DO NOT MODIFY BY HAND
// 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 ' thumbnail.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. \n Please check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods ' ) ;
/// @nodoc
class _ $ThumbnailTearOff {
const _ $ThumbnailTearOff ( ) ;
_Thumbnail call ( Uri url , int height , int width ) {
return _Thumbnail (
url ,
height ,
width ,
) ;
}
}
/// @nodoc
const $Thumbnail = _ $ThumbnailTearOff ( ) ;
/// @nodoc
mixin _ $Thumbnail {
/// Image url.
Uri get url = > throw _privateConstructorUsedError ;
/// Image height.
int get height = > throw _privateConstructorUsedError ;
/// Image width.
int get width = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$ThumbnailCopyWith < Thumbnail > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $ThumbnailCopyWith < $Res > {
factory $ThumbnailCopyWith ( Thumbnail value , $Res Function ( Thumbnail ) then ) =
_ $ThumbnailCopyWithImpl < $Res > ;
$Res call ( { Uri url , int height , int width } ) ;
}
/// @nodoc
class _ $ThumbnailCopyWithImpl < $Res > implements $ThumbnailCopyWith < $Res > {
_ $ThumbnailCopyWithImpl ( this . _value , this . _then ) ;
final Thumbnail _value ;
// ignore: unused_field
final $Res Function ( Thumbnail ) _then ;
@ override
$Res call ( {
Object ? url = freezed ,
Object ? height = freezed ,
Object ? width = freezed ,
} ) {
return _then ( _value . copyWith (
url: url = = freezed
? _value . url
: url // ignore: cast_nullable_to_non_nullable
as Uri ,
height: height = = freezed
? _value . height
: height // ignore: cast_nullable_to_non_nullable
as int ,
width: width = = freezed
? _value . width
: width // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
abstract class _ $ThumbnailCopyWith < $Res > implements $ThumbnailCopyWith < $Res > {
factory _ $ThumbnailCopyWith (
_Thumbnail value , $Res Function ( _Thumbnail ) then ) =
__ $ThumbnailCopyWithImpl < $Res > ;
@ override
$Res call ( { Uri url , int height , int width } ) ;
}
/// @nodoc
class __ $ThumbnailCopyWithImpl < $Res > extends _ $ThumbnailCopyWithImpl < $Res >
implements _ $ThumbnailCopyWith < $Res > {
__ $ThumbnailCopyWithImpl ( _Thumbnail _value , $Res Function ( _Thumbnail ) _then )
: super ( _value , ( v ) = > _then ( v as _Thumbnail ) ) ;
@ override
_Thumbnail get _value = > super . _value as _Thumbnail ;
@ override
$Res call ( {
Object ? url = freezed ,
Object ? height = freezed ,
Object ? width = freezed ,
} ) {
return _then ( _Thumbnail (
url = = freezed
? _value . url
: url // ignore: cast_nullable_to_non_nullable
as Uri ,
height = = freezed
? _value . height
: height // ignore: cast_nullable_to_non_nullable
as int ,
width = = freezed
? _value . width
: width // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
class _ $_Thumbnail implements _Thumbnail {
const _ $_Thumbnail ( this . url , this . height , this . width ) ;
@ override
/// Image url.
final Uri url ;
@ override
/// Image height.
final int height ;
@ override
/// Image width.
final int width ;
@ override
String toString ( ) {
return ' Thumbnail(url: $ url , height: $ height , width: $ width ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
2021-11-12 21:04:53 +01:00
( other . runtimeType = = runtimeType & &
other is _Thumbnail & &
( identical ( other . url , url ) | | other . url = = url ) & &
( identical ( other . height , height ) | | other . height = = height ) & &
( identical ( other . width , width ) | | other . width = = width ) ) ;
2021-07-19 00:47:22 +02:00
}
@ override
2021-11-12 21:04:53 +01:00
int get hashCode = > Object . hash ( runtimeType , url , height , width ) ;
2021-07-19 00:47:22 +02:00
@ JsonKey ( ignore: true )
@ override
_ $ThumbnailCopyWith < _Thumbnail > get copyWith = >
__ $ThumbnailCopyWithImpl < _Thumbnail > ( this , _ $identity ) ;
}
abstract class _Thumbnail implements Thumbnail {
const factory _Thumbnail ( Uri url , int height , int width ) = _ $_Thumbnail ;
@ override
/// Image url.
2021-11-12 21:04:53 +01:00
Uri get url ;
2021-07-19 00:47:22 +02:00
@ override
/// Image height.
2021-11-12 21:04:53 +01:00
int get height ;
2021-07-19 00:47:22 +02:00
@ override
/// Image width.
2021-11-12 21:04:53 +01:00
int get width ;
2021-07-19 00:47:22 +02:00
@ override
@ JsonKey ( ignore: true )
_ $ThumbnailCopyWith < _Thumbnail > get copyWith = >
throw _privateConstructorUsedError ;
}