2024-01-24 12:57:23 +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 ' models.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#custom-getters-and-methods ' ) ;
KeyCustomization _ $KeyCustomizationFromJson ( Map < String , dynamic > json ) {
return _KeyCustomization . fromJson ( json ) ;
}
/// @nodoc
mixin _ $KeyCustomization {
2024-01-24 19:13:03 +03:00
int get serial = > throw _privateConstructorUsedError ;
2024-01-24 14:35:09 +03:00
@ JsonKey ( includeIfNull: false )
2024-01-24 13:14:55 +03:00
String ? get name = > throw _privateConstructorUsedError ;
2024-01-24 14:35:09 +03:00
@ JsonKey ( includeIfNull: false )
2024-01-24 12:57:23 +03:00
@ _ColorConverter ( )
2024-01-24 13:14:55 +03:00
Color ? get color = > throw _privateConstructorUsedError ;
2024-01-24 12:57:23 +03:00
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$KeyCustomizationCopyWith < KeyCustomization > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $KeyCustomizationCopyWith < $Res > {
factory $KeyCustomizationCopyWith (
KeyCustomization value , $Res Function ( KeyCustomization ) then ) =
_ $KeyCustomizationCopyWithImpl < $Res , KeyCustomization > ;
@ useResult
2024-01-24 14:35:09 +03:00
$Res call (
2024-01-24 19:13:03 +03:00
{ int serial ,
2024-01-24 14:35:09 +03:00
@ JsonKey ( includeIfNull: false ) String ? name ,
@ JsonKey ( includeIfNull: false ) @ _ColorConverter ( ) Color ? color } ) ;
2024-01-24 12:57:23 +03:00
}
/// @nodoc
class _ $KeyCustomizationCopyWithImpl < $Res , $Val extends KeyCustomization >
implements $KeyCustomizationCopyWith < $Res > {
_ $KeyCustomizationCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? serial = null ,
2024-01-24 13:14:55 +03:00
Object ? name = freezed ,
Object ? color = freezed ,
2024-01-24 12:57:23 +03:00
} ) {
return _then ( _value . copyWith (
serial: null = = serial
? _value . serial
: serial // ignore: cast_nullable_to_non_nullable
2024-01-24 19:13:03 +03:00
as int ,
2024-01-24 13:14:55 +03:00
name: freezed = = name
? _value . name
: name // ignore: cast_nullable_to_non_nullable
2024-01-24 12:57:23 +03:00
as String ? ,
2024-01-24 13:14:55 +03:00
color: freezed = = color
? _value . color
: color // ignore: cast_nullable_to_non_nullable
2024-01-24 12:57:23 +03:00
as Color ? ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $KeyCustomizationImplCopyWith < $Res >
implements $KeyCustomizationCopyWith < $Res > {
factory _ $ $KeyCustomizationImplCopyWith ( _ $KeyCustomizationImpl value ,
$Res Function ( _ $KeyCustomizationImpl ) then ) =
__ $ $KeyCustomizationImplCopyWithImpl < $Res > ;
@ override
@ useResult
2024-01-24 14:35:09 +03:00
$Res call (
2024-01-24 19:13:03 +03:00
{ int serial ,
2024-01-24 14:35:09 +03:00
@ JsonKey ( includeIfNull: false ) String ? name ,
@ JsonKey ( includeIfNull: false ) @ _ColorConverter ( ) Color ? color } ) ;
2024-01-24 12:57:23 +03:00
}
/// @nodoc
class __ $ $KeyCustomizationImplCopyWithImpl < $Res >
extends _ $KeyCustomizationCopyWithImpl < $Res , _ $KeyCustomizationImpl >
implements _ $ $KeyCustomizationImplCopyWith < $Res > {
__ $ $KeyCustomizationImplCopyWithImpl ( _ $KeyCustomizationImpl _value ,
$Res Function ( _ $KeyCustomizationImpl ) _then )
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? serial = null ,
2024-01-24 13:14:55 +03:00
Object ? name = freezed ,
Object ? color = freezed ,
2024-01-24 12:57:23 +03:00
} ) {
return _then ( _ $KeyCustomizationImpl (
serial: null = = serial
? _value . serial
: serial // ignore: cast_nullable_to_non_nullable
2024-01-24 19:13:03 +03:00
as int ,
2024-01-24 13:14:55 +03:00
name: freezed = = name
? _value . name
: name // ignore: cast_nullable_to_non_nullable
2024-01-24 12:57:23 +03:00
as String ? ,
2024-01-24 13:14:55 +03:00
color: freezed = = color
? _value . color
: color // ignore: cast_nullable_to_non_nullable
2024-01-24 12:57:23 +03:00
as Color ? ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $KeyCustomizationImpl implements _KeyCustomization {
_ $KeyCustomizationImpl (
2024-01-24 14:35:09 +03:00
{ required this . serial ,
@ JsonKey ( includeIfNull: false ) this . name ,
@ JsonKey ( includeIfNull: false ) @ _ColorConverter ( ) this . color } ) ;
2024-01-24 12:57:23 +03:00
factory _ $KeyCustomizationImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $KeyCustomizationImplFromJson ( json ) ;
@ override
2024-01-24 19:13:03 +03:00
final int serial ;
2024-01-24 12:57:23 +03:00
@ override
2024-01-24 14:35:09 +03:00
@ JsonKey ( includeIfNull: false )
2024-01-24 13:14:55 +03:00
final String ? name ;
2024-01-24 12:57:23 +03:00
@ override
2024-01-24 14:35:09 +03:00
@ JsonKey ( includeIfNull: false )
2024-01-24 12:57:23 +03:00
@ _ColorConverter ( )
2024-01-24 13:14:55 +03:00
final Color ? color ;
2024-01-24 12:57:23 +03:00
@ override
String toString ( ) {
2024-01-24 13:14:55 +03:00
return ' KeyCustomization(serial: $ serial , name: $ name , color: $ color ) ' ;
2024-01-24 12:57:23 +03:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $KeyCustomizationImpl & &
( identical ( other . serial , serial ) | | other . serial = = serial ) & &
2024-01-24 13:14:55 +03:00
( identical ( other . name , name ) | | other . name = = name ) & &
( identical ( other . color , color ) | | other . color = = color ) ) ;
2024-01-24 12:57:23 +03:00
}
@ JsonKey ( ignore: true )
@ override
2024-01-24 13:14:55 +03:00
int get hashCode = > Object . hash ( runtimeType , serial , name , color ) ;
2024-01-24 12:57:23 +03:00
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $KeyCustomizationImplCopyWith < _ $KeyCustomizationImpl > get copyWith = >
__ $ $KeyCustomizationImplCopyWithImpl < _ $KeyCustomizationImpl > (
this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $KeyCustomizationImplToJson (
this ,
) ;
}
}
abstract class _KeyCustomization implements KeyCustomization {
factory _KeyCustomization (
2024-01-24 19:13:03 +03:00
{ required final int serial ,
2024-01-24 14:35:09 +03:00
@ JsonKey ( includeIfNull: false ) final String ? name ,
@ JsonKey ( includeIfNull: false )
@ _ColorConverter ( )
final Color ? color } ) = _ $KeyCustomizationImpl ;
2024-01-24 12:57:23 +03:00
factory _KeyCustomization . fromJson ( Map < String , dynamic > json ) =
_ $KeyCustomizationImpl . fromJson ;
@ override
2024-01-24 19:13:03 +03:00
int get serial ;
2024-01-24 12:57:23 +03:00
@ override
2024-01-24 14:35:09 +03:00
@ JsonKey ( includeIfNull: false )
2024-01-24 13:14:55 +03:00
String ? get name ;
2024-01-24 12:57:23 +03:00
@ override
2024-01-24 14:35:09 +03:00
@ JsonKey ( includeIfNull: false )
2024-01-24 12:57:23 +03:00
@ _ColorConverter ( )
2024-01-24 13:14:55 +03:00
Color ? get color ;
2024-01-24 12:57:23 +03:00
@ override
@ JsonKey ( ignore: true )
_ $ $KeyCustomizationImplCopyWith < _ $KeyCustomizationImpl > get copyWith = >
throw _privateConstructorUsedError ;
}