2021-11-19 13:10:00 +03:00
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
2022-05-12 12:06:28 +03:00
// ignore_for_file: type=lint
2022-12-05 17:26:54 +03: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, unnecessary_question_mark
2021-11-19 13:10:00 +03:00
part of ' models.dart ' ;
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _ $identity < T > ( T value ) = > value ;
final _privateConstructorUsedError = UnsupportedError (
2022-05-12 12:06:28 +03:00
' 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#custom-getters-and-methods ' ) ;
2021-11-19 13:10:00 +03:00
/// @nodoc
mixin _ $Version {
int get major = > throw _privateConstructorUsedError ;
int get minor = > throw _privateConstructorUsedError ;
int get patch = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$VersionCopyWith < Version > get copyWith = > throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $VersionCopyWith < $Res > {
factory $VersionCopyWith ( Version value , $Res Function ( Version ) then ) =
2022-10-19 12:15:48 +03:00
_ $VersionCopyWithImpl < $Res , Version > ;
@ useResult
2021-11-19 13:10:00 +03:00
$Res call ( { int major , int minor , int patch } ) ;
}
/// @nodoc
2022-10-19 12:15:48 +03:00
class _ $VersionCopyWithImpl < $Res , $Val extends Version >
implements $VersionCopyWith < $Res > {
2021-11-19 13:10:00 +03:00
_ $VersionCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
2022-10-19 12:15:48 +03:00
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
2021-11-19 13:10:00 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2021-11-19 13:10:00 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? major = null ,
Object ? minor = null ,
Object ? patch = null ,
2021-11-19 13:10:00 +03:00
} ) {
return _then ( _value . copyWith (
2022-10-19 12:15:48 +03:00
major: null = = major
2021-11-19 13:10:00 +03:00
? _value . major
: major // ignore: cast_nullable_to_non_nullable
as int ,
2022-10-19 12:15:48 +03:00
minor: null = = minor
2021-11-19 13:10:00 +03:00
? _value . minor
: minor // ignore: cast_nullable_to_non_nullable
as int ,
2022-10-19 12:15:48 +03:00
patch: null = = patch
2021-11-19 13:10:00 +03:00
? _value . patch
: patch // ignore: cast_nullable_to_non_nullable
as int ,
2022-10-19 12:15:48 +03:00
) as $Val ) ;
2021-11-19 13:10:00 +03:00
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
abstract class _ $ $VersionImplCopyWith < $Res > implements $VersionCopyWith < $Res > {
factory _ $ $VersionImplCopyWith (
_ $VersionImpl value , $Res Function ( _ $VersionImpl ) then ) =
__ $ $VersionImplCopyWithImpl < $Res > ;
2021-11-19 13:10:00 +03:00
@ override
2022-10-19 12:15:48 +03:00
@ useResult
2021-11-19 13:10:00 +03:00
$Res call ( { int major , int minor , int patch } ) ;
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class __ $ $VersionImplCopyWithImpl < $Res >
extends _ $VersionCopyWithImpl < $Res , _ $VersionImpl >
implements _ $ $VersionImplCopyWith < $Res > {
__ $ $VersionImplCopyWithImpl (
_ $VersionImpl _value , $Res Function ( _ $VersionImpl ) _then )
2022-10-19 12:15:48 +03:00
: super ( _value , _then ) ;
2021-11-19 13:10:00 +03:00
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2021-11-19 13:10:00 +03:00
@ override
$Res call ( {
2022-10-19 12:15:48 +03:00
Object ? major = null ,
Object ? minor = null ,
Object ? patch = null ,
2021-11-19 13:10:00 +03:00
} ) {
2023-11-15 10:56:52 +03:00
return _then ( _ $VersionImpl (
2022-10-19 12:15:48 +03:00
null = = major
2021-11-19 13:10:00 +03:00
? _value . major
: major // ignore: cast_nullable_to_non_nullable
as int ,
2022-10-19 12:15:48 +03:00
null = = minor
2021-11-19 13:10:00 +03:00
? _value . minor
: minor // ignore: cast_nullable_to_non_nullable
as int ,
2022-10-19 12:15:48 +03:00
null = = patch
2021-11-19 13:10:00 +03:00
? _value . patch
: patch // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
2023-11-15 10:56:52 +03:00
class _ $VersionImpl extends _Version {
const _ $VersionImpl ( this . major , this . minor , this . patch )
2022-06-02 10:45:48 +03:00
: assert ( major > = 0 ) ,
assert ( major < 256 ) ,
assert ( minor > = 0 ) ,
assert ( minor < 256 ) ,
assert ( patch > = 0 ) ,
assert ( patch < 256 ) ,
super . _ ( ) ;
2021-11-19 13:10:00 +03:00
@ override
final int major ;
@ override
final int minor ;
@ override
final int patch ;
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2023-11-15 10:56:52 +03:00
other is _ $VersionImpl & &
2022-10-19 12:15:48 +03:00
( identical ( other . major , major ) | | other . major = = major ) & &
( identical ( other . minor , minor ) | | other . minor = = minor ) & &
( identical ( other . patch , patch ) | | other . patch = = patch ) ) ;
2021-11-19 13:10:00 +03:00
}
@ override
2022-10-19 12:15:48 +03:00
int get hashCode = > Object . hash ( runtimeType , major , minor , patch ) ;
2021-11-19 13:10:00 +03:00
@ JsonKey ( ignore: true )
@ override
2022-10-19 12:15:48 +03:00
@ pragma ( ' vm:prefer-inline ' )
2023-11-15 10:56:52 +03:00
_ $ $VersionImplCopyWith < _ $VersionImpl > get copyWith = >
__ $ $VersionImplCopyWithImpl < _ $VersionImpl > ( this , _ $identity ) ;
2021-11-19 13:10:00 +03:00
}
abstract class _Version extends Version {
2022-05-12 12:06:28 +03:00
const factory _Version ( final int major , final int minor , final int patch ) =
2023-11-15 10:56:52 +03:00
_ $VersionImpl ;
2021-11-19 13:10:00 +03:00
const _Version . _ ( ) : super . _ ( ) ;
@ override
2022-07-07 11:29:42 +03:00
int get major ;
2021-11-19 13:10:00 +03:00
@ override
2022-07-07 11:29:42 +03:00
int get minor ;
2021-11-19 13:10:00 +03:00
@ override
2022-07-07 11:29:42 +03:00
int get patch ;
2021-11-19 13:10:00 +03:00
@ override
@ JsonKey ( ignore: true )
2023-11-15 10:56:52 +03:00
_ $ $VersionImplCopyWith < _ $VersionImpl > get copyWith = >
2021-11-19 13:10:00 +03:00
throw _privateConstructorUsedError ;
}