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
2022-02-01 00:55:55 +01:00
// ignore_for_file: type=lint
2021-07-19 00:47:22 +02:00
// 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 ' filesize.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 ' ) ;
2021-11-12 21:04:53 +01:00
FileSize _ $FileSizeFromJson ( Map < String , dynamic > json ) {
return _FileSize . fromJson ( json ) ;
}
2021-07-19 00:47:22 +02:00
/// @nodoc
class _ $FileSizeTearOff {
const _ $FileSizeTearOff ( ) ;
_FileSize call ( int totalBytes ) {
return _FileSize (
totalBytes ,
) ;
}
2021-11-12 21:04:53 +01:00
FileSize fromJson ( Map < String , Object ? > json ) {
return FileSize . fromJson ( json ) ;
}
2021-07-19 00:47:22 +02:00
}
/// @nodoc
const $FileSize = _ $FileSizeTearOff ( ) ;
/// @nodoc
mixin _ $FileSize {
/// Total bytes.
int get totalBytes = > throw _privateConstructorUsedError ;
2021-11-12 21:04:53 +01:00
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
2021-07-19 00:47:22 +02:00
@ JsonKey ( ignore: true )
$FileSizeCopyWith < FileSize > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $FileSizeCopyWith < $Res > {
factory $FileSizeCopyWith ( FileSize value , $Res Function ( FileSize ) then ) =
_ $FileSizeCopyWithImpl < $Res > ;
$Res call ( { int totalBytes } ) ;
}
/// @nodoc
class _ $FileSizeCopyWithImpl < $Res > implements $FileSizeCopyWith < $Res > {
_ $FileSizeCopyWithImpl ( this . _value , this . _then ) ;
final FileSize _value ;
// ignore: unused_field
final $Res Function ( FileSize ) _then ;
@ override
$Res call ( {
Object ? totalBytes = freezed ,
} ) {
return _then ( _value . copyWith (
totalBytes: totalBytes = = freezed
? _value . totalBytes
: totalBytes // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
abstract class _ $FileSizeCopyWith < $Res > implements $FileSizeCopyWith < $Res > {
factory _ $FileSizeCopyWith ( _FileSize value , $Res Function ( _FileSize ) then ) =
__ $FileSizeCopyWithImpl < $Res > ;
@ override
$Res call ( { int totalBytes } ) ;
}
/// @nodoc
class __ $FileSizeCopyWithImpl < $Res > extends _ $FileSizeCopyWithImpl < $Res >
implements _ $FileSizeCopyWith < $Res > {
__ $FileSizeCopyWithImpl ( _FileSize _value , $Res Function ( _FileSize ) _then )
: super ( _value , ( v ) = > _then ( v as _FileSize ) ) ;
@ override
_FileSize get _value = > super . _value as _FileSize ;
@ override
$Res call ( {
Object ? totalBytes = freezed ,
} ) {
return _then ( _FileSize (
totalBytes = = freezed
? _value . totalBytes
: totalBytes // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
2021-11-12 21:04:53 +01:00
@ JsonSerializable ( )
2022-02-28 12:26:56 +01:00
class _ $_FileSize extends _FileSize {
2021-07-19 00:47:22 +02:00
const _ $_FileSize ( this . totalBytes ) : super . _ ( ) ;
2021-11-12 21:04:53 +01:00
factory _ $_FileSize . fromJson ( Map < String , dynamic > json ) = >
_ $ $_FileSizeFromJson ( json ) ;
2021-07-19 00:47:22 +02:00
@ override
/// Total bytes.
final int totalBytes ;
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
2021-11-12 21:04:53 +01:00
( other . runtimeType = = runtimeType & &
other is _FileSize & &
2021-12-14 06:38:56 +01:00
const DeepCollectionEquality ( )
. equals ( other . totalBytes , totalBytes ) ) ;
2021-07-19 00:47:22 +02:00
}
@ override
2021-12-14 06:38:56 +01:00
int get hashCode = >
Object . hash ( runtimeType , const DeepCollectionEquality ( ) . hash ( totalBytes ) ) ;
2021-07-19 00:47:22 +02:00
@ JsonKey ( ignore: true )
@ override
_ $FileSizeCopyWith < _FileSize > get copyWith = >
__ $FileSizeCopyWithImpl < _FileSize > ( this , _ $identity ) ;
2021-11-12 21:04:53 +01:00
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $_FileSizeToJson ( this ) ;
}
2021-07-19 00:47:22 +02:00
}
2022-02-28 12:26:56 +01:00
abstract class _FileSize extends FileSize {
2021-07-19 00:47:22 +02:00
const factory _FileSize ( int totalBytes ) = _ $_FileSize ;
const _FileSize . _ ( ) : super . _ ( ) ;
2021-11-12 21:04:53 +01:00
factory _FileSize . fromJson ( Map < String , dynamic > json ) = _ $_FileSize . fromJson ;
2021-07-19 00:47:22 +02:00
@ override
/// Total bytes.
2021-11-12 21:04:53 +01:00
int get totalBytes ;
2021-07-19 00:47:22 +02:00
@ override
@ JsonKey ( ignore: true )
_ $FileSizeCopyWith < _FileSize > get copyWith = >
throw _privateConstructorUsedError ;
}