2025-07-19 18:13:13 +03:00
// 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 ' torrent.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 information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models ' ) ;
Torrent _ $TorrentFromJson ( Map < String , dynamic > json ) {
return _Torrent . fromJson ( json ) ;
}
/// @nodoc
mixin _ $Torrent {
String get magnet = > throw _privateConstructorUsedError ;
String ? get title = > throw _privateConstructorUsedError ;
String ? get name = > throw _privateConstructorUsedError ;
String ? get quality = > throw _privateConstructorUsedError ;
int ? get seeders = > throw _privateConstructorUsedError ;
2025-07-19 20:50:26 +03:00
int ? get size = > throw _privateConstructorUsedError ;
2025-07-19 18:13:13 +03:00
/// Serializes this Torrent to a JSON map.
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
/// Create a copy of Torrent
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$TorrentCopyWith < Torrent > get copyWith = > throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $TorrentCopyWith < $Res > {
factory $TorrentCopyWith ( Torrent value , $Res Function ( Torrent ) then ) =
_ $TorrentCopyWithImpl < $Res , Torrent > ;
@ useResult
$Res call (
{ String magnet ,
String ? title ,
String ? name ,
String ? quality ,
int ? seeders ,
2025-07-19 20:50:26 +03:00
int ? size } ) ;
2025-07-19 18:13:13 +03:00
}
/// @nodoc
class _ $TorrentCopyWithImpl < $Res , $Val extends Torrent >
implements $TorrentCopyWith < $Res > {
_ $TorrentCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of Torrent
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? magnet = null ,
Object ? title = freezed ,
Object ? name = freezed ,
Object ? quality = freezed ,
Object ? seeders = freezed ,
2025-07-19 20:50:26 +03:00
Object ? size = freezed ,
2025-07-19 18:13:13 +03:00
} ) {
return _then ( _value . copyWith (
magnet: null = = magnet
? _value . magnet
: magnet // ignore: cast_nullable_to_non_nullable
as String ,
title: freezed = = title
? _value . title
: title // ignore: cast_nullable_to_non_nullable
as String ? ,
name: freezed = = name
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ? ,
quality: freezed = = quality
? _value . quality
: quality // ignore: cast_nullable_to_non_nullable
as String ? ,
seeders: freezed = = seeders
? _value . seeders
: seeders // ignore: cast_nullable_to_non_nullable
as int ? ,
2025-07-19 20:50:26 +03:00
size: freezed = = size
? _value . size
: size // ignore: cast_nullable_to_non_nullable
as int ? ,
2025-07-19 18:13:13 +03:00
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $TorrentImplCopyWith < $Res > implements $TorrentCopyWith < $Res > {
factory _ $ $TorrentImplCopyWith (
_ $TorrentImpl value , $Res Function ( _ $TorrentImpl ) then ) =
__ $ $TorrentImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ String magnet ,
String ? title ,
String ? name ,
String ? quality ,
int ? seeders ,
2025-07-19 20:50:26 +03:00
int ? size } ) ;
2025-07-19 18:13:13 +03:00
}
/// @nodoc
class __ $ $TorrentImplCopyWithImpl < $Res >
extends _ $TorrentCopyWithImpl < $Res , _ $TorrentImpl >
implements _ $ $TorrentImplCopyWith < $Res > {
__ $ $TorrentImplCopyWithImpl (
_ $TorrentImpl _value , $Res Function ( _ $TorrentImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of Torrent
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? magnet = null ,
Object ? title = freezed ,
Object ? name = freezed ,
Object ? quality = freezed ,
Object ? seeders = freezed ,
2025-07-19 20:50:26 +03:00
Object ? size = freezed ,
2025-07-19 18:13:13 +03:00
} ) {
return _then ( _ $TorrentImpl (
magnet: null = = magnet
? _value . magnet
: magnet // ignore: cast_nullable_to_non_nullable
as String ,
title: freezed = = title
? _value . title
: title // ignore: cast_nullable_to_non_nullable
as String ? ,
name: freezed = = name
? _value . name
: name // ignore: cast_nullable_to_non_nullable
as String ? ,
quality: freezed = = quality
? _value . quality
: quality // ignore: cast_nullable_to_non_nullable
as String ? ,
seeders: freezed = = seeders
? _value . seeders
: seeders // ignore: cast_nullable_to_non_nullable
as int ? ,
2025-07-19 20:50:26 +03:00
size: freezed = = size
? _value . size
: size // ignore: cast_nullable_to_non_nullable
as int ? ,
2025-07-19 18:13:13 +03:00
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $TorrentImpl implements _Torrent {
const _ $TorrentImpl (
{ required this . magnet ,
this . title ,
this . name ,
this . quality ,
this . seeders ,
2025-07-19 20:50:26 +03:00
this . size } ) ;
2025-07-19 18:13:13 +03:00
factory _ $TorrentImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $TorrentImplFromJson ( json ) ;
@ override
final String magnet ;
@ override
final String ? title ;
@ override
final String ? name ;
@ override
final String ? quality ;
@ override
final int ? seeders ;
@ override
2025-07-19 20:50:26 +03:00
final int ? size ;
2025-07-19 18:13:13 +03:00
@ override
String toString ( ) {
2025-07-19 20:50:26 +03:00
return ' Torrent(magnet: $ magnet , title: $ title , name: $ name , quality: $ quality , seeders: $ seeders , size: $ size ) ' ;
2025-07-19 18:13:13 +03:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $TorrentImpl & &
( identical ( other . magnet , magnet ) | | other . magnet = = magnet ) & &
( identical ( other . title , title ) | | other . title = = title ) & &
( identical ( other . name , name ) | | other . name = = name ) & &
( identical ( other . quality , quality ) | | other . quality = = quality ) & &
( identical ( other . seeders , seeders ) | | other . seeders = = seeders ) & &
2025-07-19 20:50:26 +03:00
( identical ( other . size , size ) | | other . size = = size ) ) ;
2025-07-19 18:13:13 +03:00
}
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
int get hashCode = >
2025-07-19 20:50:26 +03:00
Object . hash ( runtimeType , magnet , title , name , quality , seeders , size ) ;
2025-07-19 18:13:13 +03:00
/// Create a copy of Torrent
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $TorrentImplCopyWith < _ $TorrentImpl > get copyWith = >
__ $ $TorrentImplCopyWithImpl < _ $TorrentImpl > ( this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $TorrentImplToJson (
this ,
) ;
}
}
abstract class _Torrent implements Torrent {
const factory _Torrent (
{ required final String magnet ,
final String ? title ,
final String ? name ,
final String ? quality ,
final int ? seeders ,
2025-07-19 20:50:26 +03:00
final int ? size } ) = _ $TorrentImpl ;
2025-07-19 18:13:13 +03:00
factory _Torrent . fromJson ( Map < String , dynamic > json ) = _ $TorrentImpl . fromJson ;
@ override
String get magnet ;
@ override
String ? get title ;
@ override
String ? get name ;
@ override
String ? get quality ;
@ override
int ? get seeders ;
@ override
2025-07-19 20:50:26 +03:00
int ? get size ;
2025-07-19 18:13:13 +03:00
/// Create a copy of Torrent
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $TorrentImplCopyWith < _ $TorrentImpl > get copyWith = >
throw _privateConstructorUsedError ;
}