2023-07-05 23:53:08 -04: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 ' routing_context.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 ' ) ;
2023-07-06 11:41:38 -04:00
DHTSchema _ $DHTSchemaFromJson ( Map < String , dynamic > json ) {
switch ( json [ ' kind ' ] ) {
case ' DFLT ' :
return DHTSchemaDFLT . fromJson ( json ) ;
case ' SMPL ' :
return DHTSchemaSMPL . fromJson ( json ) ;
default :
throw CheckedFromJsonException (
json , ' kind ' , ' DHTSchema ' , ' Invalid union type " ${ json [ ' kind ' ] } "! ' ) ;
}
}
/// @nodoc
mixin _ $DHTSchema {
int get oCnt = > throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( int oCnt ) dflt ,
required TResult Function ( int oCnt , List < DHTSchemaMember > members ) smpl ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( int oCnt ) ? dflt ,
TResult ? Function ( int oCnt , List < DHTSchemaMember > members ) ? smpl ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( int oCnt ) ? dflt ,
TResult Function ( int oCnt , List < DHTSchemaMember > members ) ? smpl ,
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( DHTSchemaDFLT value ) dflt ,
required TResult Function ( DHTSchemaSMPL value ) smpl ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( DHTSchemaDFLT value ) ? dflt ,
TResult ? Function ( DHTSchemaSMPL value ) ? smpl ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( DHTSchemaDFLT value ) ? dflt ,
TResult Function ( DHTSchemaSMPL value ) ? smpl ,
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$DHTSchemaCopyWith < DHTSchema > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $DHTSchemaCopyWith < $Res > {
factory $DHTSchemaCopyWith ( DHTSchema value , $Res Function ( DHTSchema ) then ) =
_ $DHTSchemaCopyWithImpl < $Res , DHTSchema > ;
@ useResult
$Res call ( { int oCnt } ) ;
}
/// @nodoc
class _ $DHTSchemaCopyWithImpl < $Res , $Val extends DHTSchema >
implements $DHTSchemaCopyWith < $Res > {
_ $DHTSchemaCopyWithImpl ( 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 ? oCnt = null ,
} ) {
return _then ( _value . copyWith (
oCnt: null = = oCnt
? _value . oCnt
: oCnt // ignore: cast_nullable_to_non_nullable
as int ,
) as $Val ) ;
}
}
/// @nodoc
2024-02-21 18:17:07 -05:00
abstract class _ $ $DHTSchemaDFLTCopyWith < $Res >
2023-07-06 11:41:38 -04:00
implements $DHTSchemaCopyWith < $Res > {
2024-02-21 18:17:07 -05:00
factory _ $ $DHTSchemaDFLTCopyWith (
_ $DHTSchemaDFLT value , $Res Function ( _ $DHTSchemaDFLT ) then ) =
__ $ $DHTSchemaDFLTCopyWithImpl < $Res > ;
2023-07-06 11:41:38 -04:00
@ override
@ useResult
$Res call ( { int oCnt } ) ;
}
/// @nodoc
2024-02-21 18:17:07 -05:00
class __ $ $DHTSchemaDFLTCopyWithImpl < $Res >
extends _ $DHTSchemaCopyWithImpl < $Res , _ $DHTSchemaDFLT >
implements _ $ $DHTSchemaDFLTCopyWith < $Res > {
__ $ $DHTSchemaDFLTCopyWithImpl (
_ $DHTSchemaDFLT _value , $Res Function ( _ $DHTSchemaDFLT ) _then )
2023-07-06 11:41:38 -04:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? oCnt = null ,
} ) {
2024-02-21 18:17:07 -05:00
return _then ( _ $DHTSchemaDFLT (
2023-07-06 11:41:38 -04:00
oCnt: null = = oCnt
? _value . oCnt
: oCnt // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2024-02-21 18:17:07 -05:00
class _ $DHTSchemaDFLT implements DHTSchemaDFLT {
const _ $DHTSchemaDFLT ( { required this . oCnt , final String ? $type } )
2023-07-06 11:41:38 -04:00
: $type = $type ? ? ' DFLT ' ;
2024-02-21 18:17:07 -05:00
factory _ $DHTSchemaDFLT . fromJson ( Map < String , dynamic > json ) = >
_ $ $DHTSchemaDFLTFromJson ( json ) ;
2023-07-06 11:41:38 -04:00
@ override
final int oCnt ;
@ JsonKey ( name: ' kind ' )
final String $type ;
@ override
String toString ( ) {
return ' DHTSchema.dflt(oCnt: $ oCnt ) ' ;
}
@ override
2024-02-21 18:17:07 -05:00
bool operator = = ( dynamic other ) {
2023-07-06 11:41:38 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-02-21 18:17:07 -05:00
other is _ $DHTSchemaDFLT & &
2023-07-06 11:41:38 -04:00
( identical ( other . oCnt , oCnt ) | | other . oCnt = = oCnt ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > Object . hash ( runtimeType , oCnt ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-02-21 18:17:07 -05:00
_ $ $DHTSchemaDFLTCopyWith < _ $DHTSchemaDFLT > get copyWith = >
__ $ $DHTSchemaDFLTCopyWithImpl < _ $DHTSchemaDFLT > ( this , _ $identity ) ;
2023-07-06 11:41:38 -04:00
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( int oCnt ) dflt ,
required TResult Function ( int oCnt , List < DHTSchemaMember > members ) smpl ,
} ) {
return dflt ( oCnt ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( int oCnt ) ? dflt ,
TResult ? Function ( int oCnt , List < DHTSchemaMember > members ) ? smpl ,
} ) {
return dflt ? . call ( oCnt ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( int oCnt ) ? dflt ,
TResult Function ( int oCnt , List < DHTSchemaMember > members ) ? smpl ,
required TResult orElse ( ) ,
} ) {
if ( dflt ! = null ) {
return dflt ( oCnt ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( DHTSchemaDFLT value ) dflt ,
required TResult Function ( DHTSchemaSMPL value ) smpl ,
} ) {
return dflt ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( DHTSchemaDFLT value ) ? dflt ,
TResult ? Function ( DHTSchemaSMPL value ) ? smpl ,
} ) {
return dflt ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( DHTSchemaDFLT value ) ? dflt ,
TResult Function ( DHTSchemaSMPL value ) ? smpl ,
required TResult orElse ( ) ,
} ) {
if ( dflt ! = null ) {
return dflt ( this ) ;
}
return orElse ( ) ;
}
@ override
Map < String , dynamic > toJson ( ) {
2024-02-21 18:17:07 -05:00
return _ $ $DHTSchemaDFLTToJson (
2023-07-06 11:41:38 -04:00
this ,
) ;
}
}
abstract class DHTSchemaDFLT implements DHTSchema {
2024-02-21 18:17:07 -05:00
const factory DHTSchemaDFLT ( { required final int oCnt } ) = _ $DHTSchemaDFLT ;
2023-07-06 11:41:38 -04:00
factory DHTSchemaDFLT . fromJson ( Map < String , dynamic > json ) =
2024-02-21 18:17:07 -05:00
_ $DHTSchemaDFLT . fromJson ;
2023-07-06 11:41:38 -04:00
@ override
int get oCnt ;
@ override
@ JsonKey ( ignore: true )
2024-02-21 18:17:07 -05:00
_ $ $DHTSchemaDFLTCopyWith < _ $DHTSchemaDFLT > get copyWith = >
2023-07-06 11:41:38 -04:00
throw _privateConstructorUsedError ;
}
/// @nodoc
2024-02-21 18:17:07 -05:00
abstract class _ $ $DHTSchemaSMPLCopyWith < $Res >
2023-07-06 11:41:38 -04:00
implements $DHTSchemaCopyWith < $Res > {
2024-02-21 18:17:07 -05:00
factory _ $ $DHTSchemaSMPLCopyWith (
_ $DHTSchemaSMPL value , $Res Function ( _ $DHTSchemaSMPL ) then ) =
__ $ $DHTSchemaSMPLCopyWithImpl < $Res > ;
2023-07-06 11:41:38 -04:00
@ override
@ useResult
$Res call ( { int oCnt , List < DHTSchemaMember > members } ) ;
}
/// @nodoc
2024-02-21 18:17:07 -05:00
class __ $ $DHTSchemaSMPLCopyWithImpl < $Res >
extends _ $DHTSchemaCopyWithImpl < $Res , _ $DHTSchemaSMPL >
implements _ $ $DHTSchemaSMPLCopyWith < $Res > {
__ $ $DHTSchemaSMPLCopyWithImpl (
_ $DHTSchemaSMPL _value , $Res Function ( _ $DHTSchemaSMPL ) _then )
2023-07-06 11:41:38 -04:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? oCnt = null ,
Object ? members = null ,
} ) {
2024-02-21 18:17:07 -05:00
return _then ( _ $DHTSchemaSMPL (
2023-07-06 11:41:38 -04:00
oCnt: null = = oCnt
? _value . oCnt
: oCnt // ignore: cast_nullable_to_non_nullable
as int ,
members: null = = members
? _value . _members
: members // ignore: cast_nullable_to_non_nullable
as List < DHTSchemaMember > ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2024-02-21 18:17:07 -05:00
class _ $DHTSchemaSMPL implements DHTSchemaSMPL {
const _ $DHTSchemaSMPL (
2023-07-06 11:41:38 -04:00
{ required this . oCnt ,
required final List < DHTSchemaMember > members ,
final String ? $type } )
: _members = members ,
$type = $type ? ? ' SMPL ' ;
2024-02-21 18:17:07 -05:00
factory _ $DHTSchemaSMPL . fromJson ( Map < String , dynamic > json ) = >
_ $ $DHTSchemaSMPLFromJson ( json ) ;
2023-07-06 11:41:38 -04:00
@ override
final int oCnt ;
final List < DHTSchemaMember > _members ;
@ override
List < DHTSchemaMember > get members {
if ( _members is EqualUnmodifiableListView ) return _members ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _members ) ;
}
@ JsonKey ( name: ' kind ' )
final String $type ;
@ override
String toString ( ) {
return ' DHTSchema.smpl(oCnt: $ oCnt , members: $ members ) ' ;
}
@ override
2024-02-21 18:17:07 -05:00
bool operator = = ( dynamic other ) {
2023-07-06 11:41:38 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-02-21 18:17:07 -05:00
other is _ $DHTSchemaSMPL & &
2023-07-06 11:41:38 -04:00
( identical ( other . oCnt , oCnt ) | | other . oCnt = = oCnt ) & &
const DeepCollectionEquality ( ) . equals ( other . _members , _members ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > Object . hash (
runtimeType , oCnt , const DeepCollectionEquality ( ) . hash ( _members ) ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-02-21 18:17:07 -05:00
_ $ $DHTSchemaSMPLCopyWith < _ $DHTSchemaSMPL > get copyWith = >
__ $ $DHTSchemaSMPLCopyWithImpl < _ $DHTSchemaSMPL > ( this , _ $identity ) ;
2023-07-06 11:41:38 -04:00
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( int oCnt ) dflt ,
required TResult Function ( int oCnt , List < DHTSchemaMember > members ) smpl ,
} ) {
return smpl ( oCnt , members ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( int oCnt ) ? dflt ,
TResult ? Function ( int oCnt , List < DHTSchemaMember > members ) ? smpl ,
} ) {
return smpl ? . call ( oCnt , members ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( int oCnt ) ? dflt ,
TResult Function ( int oCnt , List < DHTSchemaMember > members ) ? smpl ,
required TResult orElse ( ) ,
} ) {
if ( smpl ! = null ) {
return smpl ( oCnt , members ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( DHTSchemaDFLT value ) dflt ,
required TResult Function ( DHTSchemaSMPL value ) smpl ,
} ) {
return smpl ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( DHTSchemaDFLT value ) ? dflt ,
TResult ? Function ( DHTSchemaSMPL value ) ? smpl ,
} ) {
return smpl ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( DHTSchemaDFLT value ) ? dflt ,
TResult Function ( DHTSchemaSMPL value ) ? smpl ,
required TResult orElse ( ) ,
} ) {
if ( smpl ! = null ) {
return smpl ( this ) ;
}
return orElse ( ) ;
}
@ override
Map < String , dynamic > toJson ( ) {
2024-02-21 18:17:07 -05:00
return _ $ $DHTSchemaSMPLToJson (
2023-07-06 11:41:38 -04:00
this ,
) ;
}
}
abstract class DHTSchemaSMPL implements DHTSchema {
const factory DHTSchemaSMPL (
{ required final int oCnt ,
2024-02-21 18:17:07 -05:00
required final List < DHTSchemaMember > members } ) = _ $DHTSchemaSMPL ;
2023-07-06 11:41:38 -04:00
factory DHTSchemaSMPL . fromJson ( Map < String , dynamic > json ) =
2024-02-21 18:17:07 -05:00
_ $DHTSchemaSMPL . fromJson ;
2023-07-06 11:41:38 -04:00
@ override
int get oCnt ;
List < DHTSchemaMember > get members ;
@ override
@ JsonKey ( ignore: true )
2024-02-21 18:17:07 -05:00
_ $ $DHTSchemaSMPLCopyWith < _ $DHTSchemaSMPL > get copyWith = >
2023-07-06 11:41:38 -04:00
throw _privateConstructorUsedError ;
}
2023-07-05 23:53:08 -04:00
DHTSchemaMember _ $DHTSchemaMemberFromJson ( Map < String , dynamic > json ) {
return _DHTSchemaMember . fromJson ( json ) ;
}
/// @nodoc
mixin _ $DHTSchemaMember {
FixedEncodedString43 get mKey = > throw _privateConstructorUsedError ;
int get mCnt = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$DHTSchemaMemberCopyWith < DHTSchemaMember > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $DHTSchemaMemberCopyWith < $Res > {
factory $DHTSchemaMemberCopyWith (
DHTSchemaMember value , $Res Function ( DHTSchemaMember ) then ) =
_ $DHTSchemaMemberCopyWithImpl < $Res , DHTSchemaMember > ;
@ useResult
$Res call ( { FixedEncodedString43 mKey , int mCnt } ) ;
}
/// @nodoc
class _ $DHTSchemaMemberCopyWithImpl < $Res , $Val extends DHTSchemaMember >
implements $DHTSchemaMemberCopyWith < $Res > {
_ $DHTSchemaMemberCopyWithImpl ( 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 ? mKey = null ,
Object ? mCnt = null ,
} ) {
return _then ( _value . copyWith (
mKey: null = = mKey
? _value . mKey
: mKey // ignore: cast_nullable_to_non_nullable
as FixedEncodedString43 ,
mCnt: null = = mCnt
? _value . mCnt
: mCnt // ignore: cast_nullable_to_non_nullable
as int ,
) as $Val ) ;
}
}
/// @nodoc
2024-02-21 18:17:07 -05:00
abstract class _ $ $_DHTSchemaMemberCopyWith < $Res >
2023-07-05 23:53:08 -04:00
implements $DHTSchemaMemberCopyWith < $Res > {
2024-02-21 18:17:07 -05:00
factory _ $ $_DHTSchemaMemberCopyWith (
_ $_DHTSchemaMember value , $Res Function ( _ $_DHTSchemaMember ) then ) =
__ $ $_DHTSchemaMemberCopyWithImpl < $Res > ;
2023-07-05 23:53:08 -04:00
@ override
@ useResult
$Res call ( { FixedEncodedString43 mKey , int mCnt } ) ;
}
/// @nodoc
2024-02-21 18:17:07 -05:00
class __ $ $_DHTSchemaMemberCopyWithImpl < $Res >
extends _ $DHTSchemaMemberCopyWithImpl < $Res , _ $_DHTSchemaMember >
implements _ $ $_DHTSchemaMemberCopyWith < $Res > {
__ $ $_DHTSchemaMemberCopyWithImpl (
_ $_DHTSchemaMember _value , $Res Function ( _ $_DHTSchemaMember ) _then )
2023-07-05 23:53:08 -04:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? mKey = null ,
Object ? mCnt = null ,
} ) {
2024-02-21 18:17:07 -05:00
return _then ( _ $_DHTSchemaMember (
2023-07-05 23:53:08 -04:00
mKey: null = = mKey
? _value . mKey
: mKey // ignore: cast_nullable_to_non_nullable
as FixedEncodedString43 ,
mCnt: null = = mCnt
? _value . mCnt
: mCnt // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2024-02-21 18:17:07 -05:00
class _ $_DHTSchemaMember implements _DHTSchemaMember {
const _ $_DHTSchemaMember ( { required this . mKey , required this . mCnt } )
2023-07-06 11:41:38 -04:00
: assert ( mCnt > 0 & & mCnt < = 65535 , ' value out of range ' ) ;
2023-07-05 23:53:08 -04:00
2024-02-21 18:17:07 -05:00
factory _ $_DHTSchemaMember . fromJson ( Map < String , dynamic > json ) = >
_ $ $_DHTSchemaMemberFromJson ( json ) ;
2023-07-05 23:53:08 -04:00
@ override
final FixedEncodedString43 mKey ;
@ override
final int mCnt ;
@ override
String toString ( ) {
return ' DHTSchemaMember(mKey: $ mKey , mCnt: $ mCnt ) ' ;
}
@ override
2024-02-21 18:17:07 -05:00
bool operator = = ( dynamic other ) {
2023-07-05 23:53:08 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-02-21 18:17:07 -05:00
other is _ $_DHTSchemaMember & &
2023-07-05 23:53:08 -04:00
( identical ( other . mKey , mKey ) | | other . mKey = = mKey ) & &
( identical ( other . mCnt , mCnt ) | | other . mCnt = = mCnt ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > Object . hash ( runtimeType , mKey , mCnt ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-02-21 18:17:07 -05:00
_ $ $_DHTSchemaMemberCopyWith < _ $_DHTSchemaMember > get copyWith = >
__ $ $_DHTSchemaMemberCopyWithImpl < _ $_DHTSchemaMember > ( this , _ $identity ) ;
2023-07-05 23:53:08 -04:00
@ override
Map < String , dynamic > toJson ( ) {
2024-02-21 18:17:07 -05:00
return _ $ $_DHTSchemaMemberToJson (
2023-07-05 23:53:08 -04:00
this ,
) ;
}
}
abstract class _DHTSchemaMember implements DHTSchemaMember {
const factory _DHTSchemaMember (
{ required final FixedEncodedString43 mKey ,
2024-02-21 18:17:07 -05:00
required final int mCnt } ) = _ $_DHTSchemaMember ;
2023-07-05 23:53:08 -04:00
factory _DHTSchemaMember . fromJson ( Map < String , dynamic > json ) =
2024-02-21 18:17:07 -05:00
_ $_DHTSchemaMember . fromJson ;
2023-07-05 23:53:08 -04:00
@ override
FixedEncodedString43 get mKey ;
@ override
int get mCnt ;
@ override
@ JsonKey ( ignore: true )
2024-02-21 18:17:07 -05:00
_ $ $_DHTSchemaMemberCopyWith < _ $_DHTSchemaMember > get copyWith = >
2023-07-05 23:53:08 -04:00
throw _privateConstructorUsedError ;
}
2023-07-06 11:41:38 -04:00
DHTRecordDescriptor _ $DHTRecordDescriptorFromJson ( Map < String , dynamic > json ) {
return _DHTRecordDescriptor . fromJson ( json ) ;
}
/// @nodoc
mixin _ $DHTRecordDescriptor {
Typed < FixedEncodedString43 > get key = > throw _privateConstructorUsedError ;
FixedEncodedString43 get owner = > throw _privateConstructorUsedError ;
DHTSchema get schema = > throw _privateConstructorUsedError ;
2023-08-02 21:09:47 -04:00
FixedEncodedString43 ? get ownerSecret = > throw _privateConstructorUsedError ;
2023-07-06 11:41:38 -04:00
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$DHTRecordDescriptorCopyWith < DHTRecordDescriptor > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $DHTRecordDescriptorCopyWith < $Res > {
factory $DHTRecordDescriptorCopyWith (
DHTRecordDescriptor value , $Res Function ( DHTRecordDescriptor ) then ) =
_ $DHTRecordDescriptorCopyWithImpl < $Res , DHTRecordDescriptor > ;
@ useResult
$Res call (
{ Typed < FixedEncodedString43 > key ,
FixedEncodedString43 owner ,
2023-08-02 21:09:47 -04:00
DHTSchema schema ,
FixedEncodedString43 ? ownerSecret } ) ;
2023-07-06 11:41:38 -04:00
$DHTSchemaCopyWith < $Res > get schema ;
}
/// @nodoc
class _ $DHTRecordDescriptorCopyWithImpl < $Res , $Val extends DHTRecordDescriptor >
implements $DHTRecordDescriptorCopyWith < $Res > {
_ $DHTRecordDescriptorCopyWithImpl ( 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 ? key = null ,
Object ? owner = null ,
Object ? schema = null ,
2023-08-02 21:09:47 -04:00
Object ? ownerSecret = freezed ,
2023-07-06 11:41:38 -04:00
} ) {
return _then ( _value . copyWith (
key: null = = key
? _value . key
: key // ignore: cast_nullable_to_non_nullable
as Typed < FixedEncodedString43 > ,
owner: null = = owner
? _value . owner
: owner // ignore: cast_nullable_to_non_nullable
as FixedEncodedString43 ,
schema: null = = schema
? _value . schema
: schema // ignore: cast_nullable_to_non_nullable
as DHTSchema ,
2023-08-02 21:09:47 -04:00
ownerSecret: freezed = = ownerSecret
? _value . ownerSecret
: ownerSecret // ignore: cast_nullable_to_non_nullable
as FixedEncodedString43 ? ,
2023-07-06 11:41:38 -04:00
) as $Val ) ;
}
@ override
@ pragma ( ' vm:prefer-inline ' )
$DHTSchemaCopyWith < $Res > get schema {
return $DHTSchemaCopyWith < $Res > ( _value . schema , ( value ) {
return _then ( _value . copyWith ( schema: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
2024-02-21 18:17:07 -05:00
abstract class _ $ $_DHTRecordDescriptorCopyWith < $Res >
2023-07-06 11:41:38 -04:00
implements $DHTRecordDescriptorCopyWith < $Res > {
2024-02-21 18:17:07 -05:00
factory _ $ $_DHTRecordDescriptorCopyWith ( _ $_DHTRecordDescriptor value ,
$Res Function ( _ $_DHTRecordDescriptor ) then ) =
__ $ $_DHTRecordDescriptorCopyWithImpl < $Res > ;
2023-07-06 11:41:38 -04:00
@ override
@ useResult
$Res call (
{ Typed < FixedEncodedString43 > key ,
FixedEncodedString43 owner ,
2023-08-02 21:09:47 -04:00
DHTSchema schema ,
FixedEncodedString43 ? ownerSecret } ) ;
2023-07-06 11:41:38 -04:00
@ override
$DHTSchemaCopyWith < $Res > get schema ;
}
/// @nodoc
2024-02-21 18:17:07 -05:00
class __ $ $_DHTRecordDescriptorCopyWithImpl < $Res >
extends _ $DHTRecordDescriptorCopyWithImpl < $Res , _ $_DHTRecordDescriptor >
implements _ $ $_DHTRecordDescriptorCopyWith < $Res > {
__ $ $_DHTRecordDescriptorCopyWithImpl ( _ $_DHTRecordDescriptor _value ,
$Res Function ( _ $_DHTRecordDescriptor ) _then )
2023-07-06 11:41:38 -04:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? key = null ,
Object ? owner = null ,
Object ? schema = null ,
2023-08-02 21:09:47 -04:00
Object ? ownerSecret = freezed ,
2023-07-06 11:41:38 -04:00
} ) {
2024-02-21 18:17:07 -05:00
return _then ( _ $_DHTRecordDescriptor (
2023-07-06 11:41:38 -04:00
key: null = = key
? _value . key
: key // ignore: cast_nullable_to_non_nullable
as Typed < FixedEncodedString43 > ,
owner: null = = owner
? _value . owner
: owner // ignore: cast_nullable_to_non_nullable
as FixedEncodedString43 ,
schema: null = = schema
? _value . schema
: schema // ignore: cast_nullable_to_non_nullable
as DHTSchema ,
2023-08-02 21:09:47 -04:00
ownerSecret: freezed = = ownerSecret
? _value . ownerSecret
: ownerSecret // ignore: cast_nullable_to_non_nullable
as FixedEncodedString43 ? ,
2023-07-06 11:41:38 -04:00
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2024-02-21 18:17:07 -05:00
class _ $_DHTRecordDescriptor implements _DHTRecordDescriptor {
const _ $_DHTRecordDescriptor (
2023-07-06 11:41:38 -04:00
{ required this . key ,
required this . owner ,
2023-08-02 21:09:47 -04:00
required this . schema ,
this . ownerSecret } ) ;
2023-07-06 11:41:38 -04:00
2024-02-21 18:17:07 -05:00
factory _ $_DHTRecordDescriptor . fromJson ( Map < String , dynamic > json ) = >
_ $ $_DHTRecordDescriptorFromJson ( json ) ;
2023-07-06 11:41:38 -04:00
@ override
final Typed < FixedEncodedString43 > key ;
@ override
final FixedEncodedString43 owner ;
@ override
final DHTSchema schema ;
2023-08-02 21:09:47 -04:00
@ override
final FixedEncodedString43 ? ownerSecret ;
2023-07-06 11:41:38 -04:00
@ override
String toString ( ) {
2023-08-02 21:09:47 -04:00
return ' DHTRecordDescriptor(key: $ key , owner: $ owner , schema: $ schema , ownerSecret: $ ownerSecret ) ' ;
2023-07-06 11:41:38 -04:00
}
@ override
2024-02-21 18:17:07 -05:00
bool operator = = ( dynamic other ) {
2023-07-06 11:41:38 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-02-21 18:17:07 -05:00
other is _ $_DHTRecordDescriptor & &
2023-07-06 11:41:38 -04:00
( identical ( other . key , key ) | | other . key = = key ) & &
( identical ( other . owner , owner ) | | other . owner = = owner ) & &
2023-08-02 21:09:47 -04:00
( identical ( other . schema , schema ) | | other . schema = = schema ) & &
2023-07-06 11:41:38 -04:00
( identical ( other . ownerSecret , ownerSecret ) | |
2023-08-02 21:09:47 -04:00
other . ownerSecret = = ownerSecret ) ) ;
2023-07-06 11:41:38 -04:00
}
@ JsonKey ( ignore: true )
@ override
2023-08-02 21:09:47 -04:00
int get hashCode = > Object . hash ( runtimeType , key , owner , schema , ownerSecret ) ;
2023-07-06 11:41:38 -04:00
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-02-21 18:17:07 -05:00
_ $ $_DHTRecordDescriptorCopyWith < _ $_DHTRecordDescriptor > get copyWith = >
__ $ $_DHTRecordDescriptorCopyWithImpl < _ $_DHTRecordDescriptor > (
2023-07-06 11:41:38 -04:00
this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
2024-02-21 18:17:07 -05:00
return _ $ $_DHTRecordDescriptorToJson (
2023-07-06 11:41:38 -04:00
this ,
) ;
}
}
abstract class _DHTRecordDescriptor implements DHTRecordDescriptor {
const factory _DHTRecordDescriptor (
{ required final Typed < FixedEncodedString43 > key ,
required final FixedEncodedString43 owner ,
2023-08-02 21:09:47 -04:00
required final DHTSchema schema ,
2024-02-21 18:17:07 -05:00
final FixedEncodedString43 ? ownerSecret } ) = _ $_DHTRecordDescriptor ;
2023-07-06 11:41:38 -04:00
factory _DHTRecordDescriptor . fromJson ( Map < String , dynamic > json ) =
2024-02-21 18:17:07 -05:00
_ $_DHTRecordDescriptor . fromJson ;
2023-07-06 11:41:38 -04:00
@ override
Typed < FixedEncodedString43 > get key ;
@ override
FixedEncodedString43 get owner ;
@ override
DHTSchema get schema ;
@ override
2023-08-02 21:09:47 -04:00
FixedEncodedString43 ? get ownerSecret ;
@ override
2023-07-06 11:41:38 -04:00
@ JsonKey ( ignore: true )
2024-02-21 18:17:07 -05:00
_ $ $_DHTRecordDescriptorCopyWith < _ $_DHTRecordDescriptor > get copyWith = >
2023-07-06 11:41:38 -04:00
throw _privateConstructorUsedError ;
}
ValueData _ $ValueDataFromJson ( Map < String , dynamic > json ) {
return _ValueData . fromJson ( json ) ;
}
/// @nodoc
mixin _ $ValueData {
int get seq = > throw _privateConstructorUsedError ;
2023-10-14 20:18:37 -04:00
@ Uint8ListJsonConverter . jsIsArray ( )
2023-07-06 11:41:38 -04:00
Uint8List get data = > throw _privateConstructorUsedError ;
FixedEncodedString43 get writer = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$ValueDataCopyWith < ValueData > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $ValueDataCopyWith < $Res > {
factory $ValueDataCopyWith ( ValueData value , $Res Function ( ValueData ) then ) =
_ $ValueDataCopyWithImpl < $Res , ValueData > ;
@ useResult
$Res call (
{ int seq ,
2023-10-14 20:18:37 -04:00
@ Uint8ListJsonConverter . jsIsArray ( ) Uint8List data ,
2023-07-06 11:41:38 -04:00
FixedEncodedString43 writer } ) ;
}
/// @nodoc
class _ $ValueDataCopyWithImpl < $Res , $Val extends ValueData >
implements $ValueDataCopyWith < $Res > {
_ $ValueDataCopyWithImpl ( 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 ? seq = null ,
Object ? data = null ,
Object ? writer = null ,
} ) {
return _then ( _value . copyWith (
seq: null = = seq
? _value . seq
: seq // ignore: cast_nullable_to_non_nullable
as int ,
data: null = = data
? _value . data
: data // ignore: cast_nullable_to_non_nullable
as Uint8List ,
writer: null = = writer
? _value . writer
: writer // ignore: cast_nullable_to_non_nullable
as FixedEncodedString43 ,
) as $Val ) ;
}
}
/// @nodoc
2024-02-21 18:17:07 -05:00
abstract class _ $ $_ValueDataCopyWith < $Res > implements $ValueDataCopyWith < $Res > {
factory _ $ $_ValueDataCopyWith (
_ $_ValueData value , $Res Function ( _ $_ValueData ) then ) =
__ $ $_ValueDataCopyWithImpl < $Res > ;
2023-07-06 11:41:38 -04:00
@ override
@ useResult
$Res call (
{ int seq ,
2023-10-14 20:18:37 -04:00
@ Uint8ListJsonConverter . jsIsArray ( ) Uint8List data ,
2023-07-06 11:41:38 -04:00
FixedEncodedString43 writer } ) ;
}
/// @nodoc
2024-02-21 18:17:07 -05:00
class __ $ $_ValueDataCopyWithImpl < $Res >
extends _ $ValueDataCopyWithImpl < $Res , _ $_ValueData >
implements _ $ $_ValueDataCopyWith < $Res > {
__ $ $_ValueDataCopyWithImpl (
_ $_ValueData _value , $Res Function ( _ $_ValueData ) _then )
2023-07-06 11:41:38 -04:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? seq = null ,
Object ? data = null ,
Object ? writer = null ,
} ) {
2024-02-21 18:17:07 -05:00
return _then ( _ $_ValueData (
2023-07-06 11:41:38 -04:00
seq: null = = seq
? _value . seq
: seq // ignore: cast_nullable_to_non_nullable
as int ,
data: null = = data
? _value . data
: data // ignore: cast_nullable_to_non_nullable
as Uint8List ,
writer: null = = writer
? _value . writer
: writer // ignore: cast_nullable_to_non_nullable
as FixedEncodedString43 ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2024-02-21 18:17:07 -05:00
class _ $_ValueData implements _ValueData {
const _ $_ValueData (
2023-07-06 11:41:38 -04:00
{ required this . seq ,
2023-10-14 20:18:37 -04:00
@ Uint8ListJsonConverter . jsIsArray ( ) required this . data ,
2023-07-06 11:41:38 -04:00
required this . writer } )
: assert ( seq > = 0 , ' seq out of range ' ) ;
2024-02-21 18:17:07 -05:00
factory _ $_ValueData . fromJson ( Map < String , dynamic > json ) = >
_ $ $_ValueDataFromJson ( json ) ;
2023-07-06 11:41:38 -04:00
@ override
final int seq ;
@ override
2023-10-14 20:18:37 -04:00
@ Uint8ListJsonConverter . jsIsArray ( )
2023-07-06 11:41:38 -04:00
final Uint8List data ;
@ override
final FixedEncodedString43 writer ;
@ override
String toString ( ) {
return ' ValueData(seq: $ seq , data: $ data , writer: $ writer ) ' ;
}
@ override
2024-02-21 18:17:07 -05:00
bool operator = = ( dynamic other ) {
2023-07-06 11:41:38 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-02-21 18:17:07 -05:00
other is _ $_ValueData & &
2023-07-06 11:41:38 -04:00
( identical ( other . seq , seq ) | | other . seq = = seq ) & &
const DeepCollectionEquality ( ) . equals ( other . data , data ) & &
( identical ( other . writer , writer ) | | other . writer = = writer ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > Object . hash (
runtimeType , seq , const DeepCollectionEquality ( ) . hash ( data ) , writer ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-02-21 18:17:07 -05:00
_ $ $_ValueDataCopyWith < _ $_ValueData > get copyWith = >
__ $ $_ValueDataCopyWithImpl < _ $_ValueData > ( this , _ $identity ) ;
2023-07-06 11:41:38 -04:00
@ override
Map < String , dynamic > toJson ( ) {
2024-02-21 18:17:07 -05:00
return _ $ $_ValueDataToJson (
2023-07-06 11:41:38 -04:00
this ,
) ;
}
}
abstract class _ValueData implements ValueData {
const factory _ValueData (
{ required final int seq ,
2023-10-14 20:18:37 -04:00
@ Uint8ListJsonConverter . jsIsArray ( ) required final Uint8List data ,
2024-02-21 18:17:07 -05:00
required final FixedEncodedString43 writer } ) = _ $_ValueData ;
2023-07-06 11:41:38 -04:00
factory _ValueData . fromJson ( Map < String , dynamic > json ) =
2024-02-21 18:17:07 -05:00
_ $_ValueData . fromJson ;
2023-07-06 11:41:38 -04:00
@ override
int get seq ;
@ override
2023-10-14 20:18:37 -04:00
@ Uint8ListJsonConverter . jsIsArray ( )
2023-07-06 11:41:38 -04:00
Uint8List get data ;
@ override
FixedEncodedString43 get writer ;
@ override
@ JsonKey ( ignore: true )
2024-02-21 18:17:07 -05:00
_ $ $_ValueDataCopyWith < _ $_ValueData > get copyWith = >
2023-07-06 11:41:38 -04:00
throw _privateConstructorUsedError ;
}
SafetySpec _ $SafetySpecFromJson ( Map < String , dynamic > json ) {
return _SafetySpec . fromJson ( json ) ;
}
/// @nodoc
mixin _ $SafetySpec {
int get hopCount = > throw _privateConstructorUsedError ;
Stability get stability = > throw _privateConstructorUsedError ;
Sequencing get sequencing = > throw _privateConstructorUsedError ;
2023-08-02 21:09:47 -04:00
String ? get preferredRoute = > throw _privateConstructorUsedError ;
2023-07-06 11:41:38 -04:00
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$SafetySpecCopyWith < SafetySpec > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SafetySpecCopyWith < $Res > {
factory $SafetySpecCopyWith (
SafetySpec value , $Res Function ( SafetySpec ) then ) =
_ $SafetySpecCopyWithImpl < $Res , SafetySpec > ;
@ useResult
$Res call (
2023-08-02 21:09:47 -04:00
{ int hopCount ,
2023-07-06 11:41:38 -04:00
Stability stability ,
2023-08-02 21:09:47 -04:00
Sequencing sequencing ,
String ? preferredRoute } ) ;
2023-07-06 11:41:38 -04:00
}
/// @nodoc
class _ $SafetySpecCopyWithImpl < $Res , $Val extends SafetySpec >
implements $SafetySpecCopyWith < $Res > {
_ $SafetySpecCopyWithImpl ( 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 ? hopCount = null ,
Object ? stability = null ,
Object ? sequencing = null ,
2023-08-02 21:09:47 -04:00
Object ? preferredRoute = freezed ,
2023-07-06 11:41:38 -04:00
} ) {
return _then ( _value . copyWith (
hopCount: null = = hopCount
? _value . hopCount
: hopCount // ignore: cast_nullable_to_non_nullable
as int ,
stability: null = = stability
? _value . stability
: stability // ignore: cast_nullable_to_non_nullable
as Stability ,
sequencing: null = = sequencing
? _value . sequencing
: sequencing // ignore: cast_nullable_to_non_nullable
as Sequencing ,
2023-08-02 21:09:47 -04:00
preferredRoute: freezed = = preferredRoute
? _value . preferredRoute
: preferredRoute // ignore: cast_nullable_to_non_nullable
as String ? ,
2023-07-06 11:41:38 -04:00
) as $Val ) ;
}
}
/// @nodoc
2024-02-21 18:17:07 -05:00
abstract class _ $ $_SafetySpecCopyWith < $Res >
2023-07-06 11:41:38 -04:00
implements $SafetySpecCopyWith < $Res > {
2024-02-21 18:17:07 -05:00
factory _ $ $_SafetySpecCopyWith (
_ $_SafetySpec value , $Res Function ( _ $_SafetySpec ) then ) =
__ $ $_SafetySpecCopyWithImpl < $Res > ;
2023-07-06 11:41:38 -04:00
@ override
@ useResult
$Res call (
2023-08-02 21:09:47 -04:00
{ int hopCount ,
2023-07-06 11:41:38 -04:00
Stability stability ,
2023-08-02 21:09:47 -04:00
Sequencing sequencing ,
String ? preferredRoute } ) ;
2023-07-06 11:41:38 -04:00
}
/// @nodoc
2024-02-21 18:17:07 -05:00
class __ $ $_SafetySpecCopyWithImpl < $Res >
extends _ $SafetySpecCopyWithImpl < $Res , _ $_SafetySpec >
implements _ $ $_SafetySpecCopyWith < $Res > {
__ $ $_SafetySpecCopyWithImpl (
_ $_SafetySpec _value , $Res Function ( _ $_SafetySpec ) _then )
2023-07-06 11:41:38 -04:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? hopCount = null ,
Object ? stability = null ,
Object ? sequencing = null ,
2023-08-02 21:09:47 -04:00
Object ? preferredRoute = freezed ,
2023-07-06 11:41:38 -04:00
} ) {
2024-02-21 18:17:07 -05:00
return _then ( _ $_SafetySpec (
2023-07-06 11:41:38 -04:00
hopCount: null = = hopCount
? _value . hopCount
: hopCount // ignore: cast_nullable_to_non_nullable
as int ,
stability: null = = stability
? _value . stability
: stability // ignore: cast_nullable_to_non_nullable
as Stability ,
sequencing: null = = sequencing
? _value . sequencing
: sequencing // ignore: cast_nullable_to_non_nullable
as Sequencing ,
2023-08-02 21:09:47 -04:00
preferredRoute: freezed = = preferredRoute
? _value . preferredRoute
: preferredRoute // ignore: cast_nullable_to_non_nullable
as String ? ,
2023-07-06 11:41:38 -04:00
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2024-02-21 18:17:07 -05:00
class _ $_SafetySpec implements _SafetySpec {
const _ $_SafetySpec (
2023-08-02 21:09:47 -04:00
{ required this . hopCount ,
2023-07-06 11:41:38 -04:00
required this . stability ,
2023-08-02 21:09:47 -04:00
required this . sequencing ,
this . preferredRoute } ) ;
2023-07-06 11:41:38 -04:00
2024-02-21 18:17:07 -05:00
factory _ $_SafetySpec . fromJson ( Map < String , dynamic > json ) = >
_ $ $_SafetySpecFromJson ( json ) ;
2023-07-06 11:41:38 -04:00
@ override
final int hopCount ;
@ override
final Stability stability ;
@ override
final Sequencing sequencing ;
2023-08-02 21:09:47 -04:00
@ override
final String ? preferredRoute ;
2023-07-06 11:41:38 -04:00
@ override
String toString ( ) {
2023-08-02 21:09:47 -04:00
return ' SafetySpec(hopCount: $ hopCount , stability: $ stability , sequencing: $ sequencing , preferredRoute: $ preferredRoute ) ' ;
2023-07-06 11:41:38 -04:00
}
@ override
2024-02-21 18:17:07 -05:00
bool operator = = ( dynamic other ) {
2023-07-06 11:41:38 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-02-21 18:17:07 -05:00
other is _ $_SafetySpec & &
2023-07-06 11:41:38 -04:00
( identical ( other . hopCount , hopCount ) | |
other . hopCount = = hopCount ) & &
( identical ( other . stability , stability ) | |
other . stability = = stability ) & &
( identical ( other . sequencing , sequencing ) | |
2023-08-02 21:09:47 -04:00
other . sequencing = = sequencing ) & &
( identical ( other . preferredRoute , preferredRoute ) | |
other . preferredRoute = = preferredRoute ) ) ;
2023-07-06 11:41:38 -04:00
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = >
2023-08-02 21:09:47 -04:00
Object . hash ( runtimeType , hopCount , stability , sequencing , preferredRoute ) ;
2023-07-06 11:41:38 -04:00
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-02-21 18:17:07 -05:00
_ $ $_SafetySpecCopyWith < _ $_SafetySpec > get copyWith = >
__ $ $_SafetySpecCopyWithImpl < _ $_SafetySpec > ( this , _ $identity ) ;
2023-07-06 11:41:38 -04:00
@ override
Map < String , dynamic > toJson ( ) {
2024-02-21 18:17:07 -05:00
return _ $ $_SafetySpecToJson (
2023-07-06 11:41:38 -04:00
this ,
) ;
}
}
abstract class _SafetySpec implements SafetySpec {
const factory _SafetySpec (
2023-08-02 21:09:47 -04:00
{ required final int hopCount ,
2023-07-06 11:41:38 -04:00
required final Stability stability ,
2023-08-02 21:09:47 -04:00
required final Sequencing sequencing ,
2024-02-21 18:17:07 -05:00
final String ? preferredRoute } ) = _ $_SafetySpec ;
2023-07-06 11:41:38 -04:00
factory _SafetySpec . fromJson ( Map < String , dynamic > json ) =
2024-02-21 18:17:07 -05:00
_ $_SafetySpec . fromJson ;
2023-07-06 11:41:38 -04:00
@ override
int get hopCount ;
@ override
Stability get stability ;
@ override
Sequencing get sequencing ;
@ override
2023-08-02 21:09:47 -04:00
String ? get preferredRoute ;
@ override
2023-07-06 11:41:38 -04:00
@ JsonKey ( ignore: true )
2024-02-21 18:17:07 -05:00
_ $ $_SafetySpecCopyWith < _ $_SafetySpec > get copyWith = >
2023-07-06 11:41:38 -04:00
throw _privateConstructorUsedError ;
}
RouteBlob _ $RouteBlobFromJson ( Map < String , dynamic > json ) {
return _RouteBlob . fromJson ( json ) ;
}
/// @nodoc
mixin _ $RouteBlob {
String get routeId = > throw _privateConstructorUsedError ;
@ Uint8ListJsonConverter ( )
Uint8List get blob = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$RouteBlobCopyWith < RouteBlob > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $RouteBlobCopyWith < $Res > {
factory $RouteBlobCopyWith ( RouteBlob value , $Res Function ( RouteBlob ) then ) =
_ $RouteBlobCopyWithImpl < $Res , RouteBlob > ;
@ useResult
$Res call ( { String routeId , @ Uint8ListJsonConverter ( ) Uint8List blob } ) ;
}
/// @nodoc
class _ $RouteBlobCopyWithImpl < $Res , $Val extends RouteBlob >
implements $RouteBlobCopyWith < $Res > {
_ $RouteBlobCopyWithImpl ( 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 ? routeId = null ,
Object ? blob = null ,
} ) {
return _then ( _value . copyWith (
routeId: null = = routeId
? _value . routeId
: routeId // ignore: cast_nullable_to_non_nullable
as String ,
blob: null = = blob
? _value . blob
: blob // ignore: cast_nullable_to_non_nullable
as Uint8List ,
) as $Val ) ;
}
}
/// @nodoc
2024-02-21 18:17:07 -05:00
abstract class _ $ $_RouteBlobCopyWith < $Res > implements $RouteBlobCopyWith < $Res > {
factory _ $ $_RouteBlobCopyWith (
_ $_RouteBlob value , $Res Function ( _ $_RouteBlob ) then ) =
__ $ $_RouteBlobCopyWithImpl < $Res > ;
2023-07-06 11:41:38 -04:00
@ override
@ useResult
$Res call ( { String routeId , @ Uint8ListJsonConverter ( ) Uint8List blob } ) ;
}
/// @nodoc
2024-02-21 18:17:07 -05:00
class __ $ $_RouteBlobCopyWithImpl < $Res >
extends _ $RouteBlobCopyWithImpl < $Res , _ $_RouteBlob >
implements _ $ $_RouteBlobCopyWith < $Res > {
__ $ $_RouteBlobCopyWithImpl (
_ $_RouteBlob _value , $Res Function ( _ $_RouteBlob ) _then )
2023-07-06 11:41:38 -04:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? routeId = null ,
Object ? blob = null ,
} ) {
2024-02-21 18:17:07 -05:00
return _then ( _ $_RouteBlob (
2023-07-06 11:41:38 -04:00
routeId: null = = routeId
? _value . routeId
: routeId // ignore: cast_nullable_to_non_nullable
as String ,
blob: null = = blob
? _value . blob
: blob // ignore: cast_nullable_to_non_nullable
as Uint8List ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
2024-02-21 18:17:07 -05:00
class _ $_RouteBlob implements _RouteBlob {
const _ $_RouteBlob (
2023-07-06 11:41:38 -04:00
{ required this . routeId , @ Uint8ListJsonConverter ( ) required this . blob } ) ;
2024-02-21 18:17:07 -05:00
factory _ $_RouteBlob . fromJson ( Map < String , dynamic > json ) = >
_ $ $_RouteBlobFromJson ( json ) ;
2023-07-06 11:41:38 -04:00
@ override
final String routeId ;
@ override
@ Uint8ListJsonConverter ( )
final Uint8List blob ;
@ override
String toString ( ) {
return ' RouteBlob(routeId: $ routeId , blob: $ blob ) ' ;
}
@ override
2024-02-21 18:17:07 -05:00
bool operator = = ( dynamic other ) {
2023-07-06 11:41:38 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-02-21 18:17:07 -05:00
other is _ $_RouteBlob & &
2023-07-06 11:41:38 -04:00
( identical ( other . routeId , routeId ) | | other . routeId = = routeId ) & &
const DeepCollectionEquality ( ) . equals ( other . blob , blob ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > Object . hash (
runtimeType , routeId , const DeepCollectionEquality ( ) . hash ( blob ) ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
2024-02-21 18:17:07 -05:00
_ $ $_RouteBlobCopyWith < _ $_RouteBlob > get copyWith = >
__ $ $_RouteBlobCopyWithImpl < _ $_RouteBlob > ( this , _ $identity ) ;
2023-07-06 11:41:38 -04:00
@ override
Map < String , dynamic > toJson ( ) {
2024-02-21 18:17:07 -05:00
return _ $ $_RouteBlobToJson (
2023-07-06 11:41:38 -04:00
this ,
) ;
}
}
abstract class _RouteBlob implements RouteBlob {
const factory _RouteBlob (
2024-02-21 18:17:07 -05:00
{ required final String routeId ,
@ Uint8ListJsonConverter ( ) required final Uint8List blob } ) = _ $_RouteBlob ;
2023-07-06 11:41:38 -04:00
factory _RouteBlob . fromJson ( Map < String , dynamic > json ) =
2024-02-21 18:17:07 -05:00
_ $_RouteBlob . fromJson ;
2023-07-06 11:41:38 -04:00
@ override
String get routeId ;
@ override
@ Uint8ListJsonConverter ( )
Uint8List get blob ;
@ override
@ JsonKey ( ignore: true )
2024-02-21 18:17:07 -05:00
_ $ $_RouteBlobCopyWith < _ $_RouteBlob > get copyWith = >
2023-07-06 11:41:38 -04:00
throw _privateConstructorUsedError ;
}