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 ' bitrate.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
Bitrate _ $BitrateFromJson ( Map < String , dynamic > json ) {
return _Bitrate . fromJson ( json ) ;
}
2021-07-19 00:47:22 +02:00
/// @nodoc
class _ $BitrateTearOff {
const _ $BitrateTearOff ( ) ;
_Bitrate call ( int bitsPerSecond ) {
return _Bitrate (
bitsPerSecond ,
) ;
}
2021-11-12 21:04:53 +01:00
Bitrate fromJson ( Map < String , Object ? > json ) {
return Bitrate . fromJson ( json ) ;
}
2021-07-19 00:47:22 +02:00
}
/// @nodoc
const $Bitrate = _ $BitrateTearOff ( ) ;
/// @nodoc
mixin _ $Bitrate {
/// Bits per second.
int get bitsPerSecond = > 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 )
$BitrateCopyWith < Bitrate > get copyWith = > throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $BitrateCopyWith < $Res > {
factory $BitrateCopyWith ( Bitrate value , $Res Function ( Bitrate ) then ) =
_ $BitrateCopyWithImpl < $Res > ;
$Res call ( { int bitsPerSecond } ) ;
}
/// @nodoc
class _ $BitrateCopyWithImpl < $Res > implements $BitrateCopyWith < $Res > {
_ $BitrateCopyWithImpl ( this . _value , this . _then ) ;
final Bitrate _value ;
// ignore: unused_field
final $Res Function ( Bitrate ) _then ;
@ override
$Res call ( {
Object ? bitsPerSecond = freezed ,
} ) {
return _then ( _value . copyWith (
bitsPerSecond: bitsPerSecond = = freezed
? _value . bitsPerSecond
: bitsPerSecond // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
abstract class _ $BitrateCopyWith < $Res > implements $BitrateCopyWith < $Res > {
factory _ $BitrateCopyWith ( _Bitrate value , $Res Function ( _Bitrate ) then ) =
__ $BitrateCopyWithImpl < $Res > ;
@ override
$Res call ( { int bitsPerSecond } ) ;
}
/// @nodoc
class __ $BitrateCopyWithImpl < $Res > extends _ $BitrateCopyWithImpl < $Res >
implements _ $BitrateCopyWith < $Res > {
__ $BitrateCopyWithImpl ( _Bitrate _value , $Res Function ( _Bitrate ) _then )
: super ( _value , ( v ) = > _then ( v as _Bitrate ) ) ;
@ override
_Bitrate get _value = > super . _value as _Bitrate ;
@ override
$Res call ( {
Object ? bitsPerSecond = freezed ,
} ) {
return _then ( _Bitrate (
bitsPerSecond = = freezed
? _value . bitsPerSecond
: bitsPerSecond // 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 _ $_Bitrate extends _Bitrate {
2021-07-19 00:47:22 +02:00
const _ $_Bitrate ( this . bitsPerSecond ) : super . _ ( ) ;
2021-11-12 21:04:53 +01:00
factory _ $_Bitrate . fromJson ( Map < String , dynamic > json ) = >
_ $ $_BitrateFromJson ( json ) ;
2021-07-19 00:47:22 +02:00
@ override
/// Bits per second.
final int bitsPerSecond ;
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
2021-11-12 21:04:53 +01:00
( other . runtimeType = = runtimeType & &
other is _Bitrate & &
2021-12-14 06:38:56 +01:00
const DeepCollectionEquality ( )
. equals ( other . bitsPerSecond , bitsPerSecond ) ) ;
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 ( bitsPerSecond ) ) ;
2021-07-19 00:47:22 +02:00
@ JsonKey ( ignore: true )
@ override
_ $BitrateCopyWith < _Bitrate > get copyWith = >
__ $BitrateCopyWithImpl < _Bitrate > ( this , _ $identity ) ;
2021-11-12 21:04:53 +01:00
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $_BitrateToJson ( this ) ;
}
2021-07-19 00:47:22 +02:00
}
2022-02-28 12:26:56 +01:00
abstract class _Bitrate extends Bitrate {
2021-07-19 00:47:22 +02:00
const factory _Bitrate ( int bitsPerSecond ) = _ $_Bitrate ;
const _Bitrate . _ ( ) : super . _ ( ) ;
2021-11-12 21:04:53 +01:00
factory _Bitrate . fromJson ( Map < String , dynamic > json ) = _ $_Bitrate . fromJson ;
2021-07-19 00:47:22 +02:00
@ override
/// Bits per second.
2021-11-12 21:04:53 +01:00
int get bitsPerSecond ;
2021-07-19 00:47:22 +02:00
@ override
@ JsonKey ( ignore: true )
_ $BitrateCopyWith < _Bitrate > get copyWith = >
throw _privateConstructorUsedError ;
}