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 (
2024-03-01 11:38:03 -05: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#adding-getters-and-methods-to-our-models ' ) ;
2023-07-05 23:53:08 -04:00
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-03-01 11:38:03 -05:00
abstract class _ $ $DHTSchemaDFLTImplCopyWith < $Res >
2023-07-06 11:41:38 -04:00
implements $DHTSchemaCopyWith < $Res > {
2024-03-01 11:38:03 -05:00
factory _ $ $DHTSchemaDFLTImplCopyWith (
_ $DHTSchemaDFLTImpl value , $Res Function ( _ $DHTSchemaDFLTImpl ) then ) =
__ $ $DHTSchemaDFLTImplCopyWithImpl < $Res > ;
2023-07-06 11:41:38 -04:00
@ override
@ useResult
$Res call ( { int oCnt } ) ;
}
/// @nodoc
2024-03-01 11:38:03 -05:00
class __ $ $DHTSchemaDFLTImplCopyWithImpl < $Res >
extends _ $DHTSchemaCopyWithImpl < $Res , _ $DHTSchemaDFLTImpl >
implements _ $ $DHTSchemaDFLTImplCopyWith < $Res > {
__ $ $DHTSchemaDFLTImplCopyWithImpl (
_ $DHTSchemaDFLTImpl _value , $Res Function ( _ $DHTSchemaDFLTImpl ) _then )
2023-07-06 11:41:38 -04:00
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? oCnt = null ,
} ) {
2024-03-01 11:38:03 -05:00
return _then ( _ $DHTSchemaDFLTImpl (
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-03-01 11:38:03 -05:00
class _ $DHTSchemaDFLTImpl implements DHTSchemaDFLT {
const _ $DHTSchemaDFLTImpl ( { required this . oCnt , final String ? $type } )
2023-07-06 11:41:38 -04:00
: $type = $type ? ? ' DFLT ' ;
2024-03-01 11:38:03 -05:00
factory _ $DHTSchemaDFLTImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $DHTSchemaDFLTImplFromJson ( 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-03-01 11:38:03 -05:00
bool operator = = ( Object other ) {
2023-07-06 11:41:38 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-03-01 11:38:03 -05:00
other is _ $DHTSchemaDFLTImpl & &
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-03-01 11:38:03 -05:00
_ $ $DHTSchemaDFLTImplCopyWith < _ $DHTSchemaDFLTImpl > get copyWith = >
__ $ $DHTSchemaDFLTImplCopyWithImpl < _ $DHTSchemaDFLTImpl > ( 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-03-01 11:38:03 -05:00
return _ $ $DHTSchemaDFLTImplToJson (
2023-07-06 11:41:38 -04:00
this ,
) ;
}
}
abstract class DHTSchemaDFLT implements DHTSchema {
2024-03-01 11:38:03 -05:00
const factory DHTSchemaDFLT ( { required final int oCnt } ) = _ $DHTSchemaDFLTImpl ;
2023-07-06 11:41:38 -04:00
factory DHTSchemaDFLT . fromJson ( Map < String , dynamic > json ) =
2024-03-01 11:38:03 -05:00
_ $DHTSchemaDFLTImpl . fromJson ;
2023-07-06 11:41:38 -04:00
@ override
int get oCnt ;
@ override
@ JsonKey ( ignore: true )
2024-03-01 11:38:03 -05:00
_ $ $DHTSchemaDFLTImplCopyWith < _ $DHTSchemaDFLTImpl > get copyWith = >
2023-07-06 11:41:38 -04:00
throw _privateConstructorUsedError ;
}
/// @nodoc
2024-03-01 11:38:03 -05:00
abstract class _ $ $DHTSchemaSMPLImplCopyWith < $Res >
2023-07-06 11:41:38 -04:00
implements $DHTSchemaCopyWith < $Res > {
2024-03-01 11:38:03 -05:00
factory _ $ $DHTSchemaSMPLImplCopyWith (
_ $DHTSchemaSMPLImpl value , $Res Function ( _ $DHTSchemaSMPLImpl ) then ) =
__ $ $DHTSchemaSMPLImplCopyWithImpl < $Res > ;
2023-07-06 11:41:38 -04:00
@ override
@ useResult
$Res call ( { int oCnt , List < DHTSchemaMember > members } ) ;
}
/// @nodoc
2024-03-01 11:38:03 -05:00
class __ $ $DHTSchemaSMPLImplCopyWithImpl < $Res >
extends _ $DHTSchemaCopyWithImpl < $Res , _ $DHTSchemaSMPLImpl >
implements _ $ $DHTSchemaSMPLImplCopyWith < $Res > {
__ $ $DHTSchemaSMPLImplCopyWithImpl (
_ $DHTSchemaSMPLImpl _value , $Res Function ( _ $DHTSchemaSMPLImpl ) _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-03-01 11:38:03 -05:00
return _then ( _ $DHTSchemaSMPLImpl (
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-03-01 11:38:03 -05:00
class _ $DHTSchemaSMPLImpl implements DHTSchemaSMPL {
const _ $DHTSchemaSMPLImpl (
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-03-01 11:38:03 -05:00
factory _ $DHTSchemaSMPLImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $DHTSchemaSMPLImplFromJson ( 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-03-01 11:38:03 -05:00
bool operator = = ( Object other ) {
2023-07-06 11:41:38 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-03-01 11:38:03 -05:00
other is _ $DHTSchemaSMPLImpl & &
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-03-01 11:38:03 -05:00
_ $ $DHTSchemaSMPLImplCopyWith < _ $DHTSchemaSMPLImpl > get copyWith = >
__ $ $DHTSchemaSMPLImplCopyWithImpl < _ $DHTSchemaSMPLImpl > ( 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-03-01 11:38:03 -05:00
return _ $ $DHTSchemaSMPLImplToJson (
2023-07-06 11:41:38 -04:00
this ,
) ;
}
}
abstract class DHTSchemaSMPL implements DHTSchema {
const factory DHTSchemaSMPL (
{ required final int oCnt ,
2024-03-01 11:38:03 -05:00
required final List < DHTSchemaMember > members } ) = _ $DHTSchemaSMPLImpl ;
2023-07-06 11:41:38 -04:00
factory DHTSchemaSMPL . fromJson ( Map < String , dynamic > json ) =
2024-03-01 11:38:03 -05:00
_ $DHTSchemaSMPLImpl . fromJson ;
2023-07-06 11:41:38 -04:00
@ override
int get oCnt ;
List < DHTSchemaMember > get members ;
@ override
@ JsonKey ( ignore: true )
2024-03-01 11:38:03 -05:00
_ $ $DHTSchemaSMPLImplCopyWith < _ $DHTSchemaSMPLImpl > 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-03-01 11:38:03 -05:00
abstract class _ $ $DHTSchemaMemberImplCopyWith < $Res >
2023-07-05 23:53:08 -04:00
implements $DHTSchemaMemberCopyWith < $Res > {
2024-03-01 11:38:03 -05:00
factory _ $ $DHTSchemaMemberImplCopyWith ( _ $DHTSchemaMemberImpl value ,
$Res Function ( _ $DHTSchemaMemberImpl ) then ) =
__ $ $DHTSchemaMemberImplCopyWithImpl < $Res > ;
2023-07-05 23:53:08 -04:00
@ override
@ useResult
$Res call ( { FixedEncodedString43 mKey , int mCnt } ) ;
}
/// @nodoc
2024-03-01 11:38:03 -05:00
class __ $ $DHTSchemaMemberImplCopyWithImpl < $Res >
extends _ $DHTSchemaMemberCopyWithImpl < $Res , _ $DHTSchemaMemberImpl >
implements _ $ $DHTSchemaMemberImplCopyWith < $Res > {
__ $ $DHTSchemaMemberImplCopyWithImpl (
_ $DHTSchemaMemberImpl _value , $Res Function ( _ $DHTSchemaMemberImpl ) _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-03-01 11:38:03 -05:00
return _then ( _ $DHTSchemaMemberImpl (
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-03-01 11:38:03 -05:00
class _ $DHTSchemaMemberImpl implements _DHTSchemaMember {
const _ $DHTSchemaMemberImpl ( { 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-03-01 11:38:03 -05:00
factory _ $DHTSchemaMemberImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $DHTSchemaMemberImplFromJson ( 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-03-01 11:38:03 -05:00
bool operator = = ( Object other ) {
2023-07-05 23:53:08 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-03-01 11:38:03 -05:00
other is _ $DHTSchemaMemberImpl & &
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-03-01 11:38:03 -05:00
_ $ $DHTSchemaMemberImplCopyWith < _ $DHTSchemaMemberImpl > get copyWith = >
__ $ $DHTSchemaMemberImplCopyWithImpl < _ $DHTSchemaMemberImpl > (
this , _ $identity ) ;
2023-07-05 23:53:08 -04:00
@ override
Map < String , dynamic > toJson ( ) {
2024-03-01 11:38:03 -05:00
return _ $ $DHTSchemaMemberImplToJson (
2023-07-05 23:53:08 -04:00
this ,
) ;
}
}
abstract class _DHTSchemaMember implements DHTSchemaMember {
const factory _DHTSchemaMember (
{ required final FixedEncodedString43 mKey ,
2024-03-01 11:38:03 -05:00
required final int mCnt } ) = _ $DHTSchemaMemberImpl ;
2023-07-05 23:53:08 -04:00
factory _DHTSchemaMember . fromJson ( Map < String , dynamic > json ) =
2024-03-01 11:38:03 -05:00
_ $DHTSchemaMemberImpl . fromJson ;
2023-07-05 23:53:08 -04:00
@ override
FixedEncodedString43 get mKey ;
@ override
int get mCnt ;
@ override
@ JsonKey ( ignore: true )
2024-03-01 11:38:03 -05:00
_ $ $DHTSchemaMemberImplCopyWith < _ $DHTSchemaMemberImpl > 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-03-01 11:38:03 -05:00
abstract class _ $ $DHTRecordDescriptorImplCopyWith < $Res >
2023-07-06 11:41:38 -04:00
implements $DHTRecordDescriptorCopyWith < $Res > {
2024-03-01 11:38:03 -05:00
factory _ $ $DHTRecordDescriptorImplCopyWith ( _ $DHTRecordDescriptorImpl value ,
$Res Function ( _ $DHTRecordDescriptorImpl ) then ) =
__ $ $DHTRecordDescriptorImplCopyWithImpl < $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-03-01 11:38:03 -05:00
class __ $ $DHTRecordDescriptorImplCopyWithImpl < $Res >
extends _ $DHTRecordDescriptorCopyWithImpl < $Res , _ $DHTRecordDescriptorImpl >
implements _ $ $DHTRecordDescriptorImplCopyWith < $Res > {
__ $ $DHTRecordDescriptorImplCopyWithImpl ( _ $DHTRecordDescriptorImpl _value ,
$Res Function ( _ $DHTRecordDescriptorImpl ) _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-03-01 11:38:03 -05:00
return _then ( _ $DHTRecordDescriptorImpl (
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-03-01 11:38:03 -05:00
class _ $DHTRecordDescriptorImpl implements _DHTRecordDescriptor {
const _ $DHTRecordDescriptorImpl (
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-03-01 11:38:03 -05:00
factory _ $DHTRecordDescriptorImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $DHTRecordDescriptorImplFromJson ( 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-03-01 11:38:03 -05:00
bool operator = = ( Object other ) {
2023-07-06 11:41:38 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-03-01 11:38:03 -05:00
other is _ $DHTRecordDescriptorImpl & &
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-03-01 11:38:03 -05:00
_ $ $DHTRecordDescriptorImplCopyWith < _ $DHTRecordDescriptorImpl > get copyWith = >
__ $ $DHTRecordDescriptorImplCopyWithImpl < _ $DHTRecordDescriptorImpl > (
2023-07-06 11:41:38 -04:00
this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
2024-03-01 11:38:03 -05:00
return _ $ $DHTRecordDescriptorImplToJson (
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-03-01 11:38:03 -05:00
final FixedEncodedString43 ? ownerSecret } ) = _ $DHTRecordDescriptorImpl ;
2023-07-06 11:41:38 -04:00
factory _DHTRecordDescriptor . fromJson ( Map < String , dynamic > json ) =
2024-03-01 11:38:03 -05:00
_ $DHTRecordDescriptorImpl . 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-03-01 11:38:03 -05:00
_ $ $DHTRecordDescriptorImplCopyWith < _ $DHTRecordDescriptorImpl > 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-03-01 11:38:03 -05:00
abstract class _ $ $ValueDataImplCopyWith < $Res >
implements $ValueDataCopyWith < $Res > {
factory _ $ $ValueDataImplCopyWith (
_ $ValueDataImpl value , $Res Function ( _ $ValueDataImpl ) then ) =
__ $ $ValueDataImplCopyWithImpl < $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-03-01 11:38:03 -05:00
class __ $ $ValueDataImplCopyWithImpl < $Res >
extends _ $ValueDataCopyWithImpl < $Res , _ $ValueDataImpl >
implements _ $ $ValueDataImplCopyWith < $Res > {
__ $ $ValueDataImplCopyWithImpl (
_ $ValueDataImpl _value , $Res Function ( _ $ValueDataImpl ) _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-03-01 11:38:03 -05:00
return _then ( _ $ValueDataImpl (
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-03-01 11:38:03 -05:00
class _ $ValueDataImpl implements _ValueData {
const _ $ValueDataImpl (
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-03-01 11:38:03 -05:00
factory _ $ValueDataImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $ValueDataImplFromJson ( 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-03-01 11:38:03 -05:00
bool operator = = ( Object other ) {
2023-07-06 11:41:38 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-03-01 11:38:03 -05:00
other is _ $ValueDataImpl & &
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-03-01 11:38:03 -05:00
_ $ $ValueDataImplCopyWith < _ $ValueDataImpl > get copyWith = >
__ $ $ValueDataImplCopyWithImpl < _ $ValueDataImpl > ( this , _ $identity ) ;
2023-07-06 11:41:38 -04:00
@ override
Map < String , dynamic > toJson ( ) {
2024-03-01 11:38:03 -05:00
return _ $ $ValueDataImplToJson (
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-03-01 11:38:03 -05:00
required final FixedEncodedString43 writer } ) = _ $ValueDataImpl ;
2023-07-06 11:41:38 -04:00
factory _ValueData . fromJson ( Map < String , dynamic > json ) =
2024-03-01 11:38:03 -05:00
_ $ValueDataImpl . 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-03-01 11:38:03 -05:00
_ $ $ValueDataImplCopyWith < _ $ValueDataImpl > 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-03-01 11:38:03 -05:00
abstract class _ $ $SafetySpecImplCopyWith < $Res >
2023-07-06 11:41:38 -04:00
implements $SafetySpecCopyWith < $Res > {
2024-03-01 11:38:03 -05:00
factory _ $ $SafetySpecImplCopyWith (
_ $SafetySpecImpl value , $Res Function ( _ $SafetySpecImpl ) then ) =
__ $ $SafetySpecImplCopyWithImpl < $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-03-01 11:38:03 -05:00
class __ $ $SafetySpecImplCopyWithImpl < $Res >
extends _ $SafetySpecCopyWithImpl < $Res , _ $SafetySpecImpl >
implements _ $ $SafetySpecImplCopyWith < $Res > {
__ $ $SafetySpecImplCopyWithImpl (
_ $SafetySpecImpl _value , $Res Function ( _ $SafetySpecImpl ) _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-03-01 11:38:03 -05:00
return _then ( _ $SafetySpecImpl (
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-03-01 11:38:03 -05:00
class _ $SafetySpecImpl implements _SafetySpec {
const _ $SafetySpecImpl (
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-03-01 11:38:03 -05:00
factory _ $SafetySpecImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $SafetySpecImplFromJson ( 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-03-01 11:38:03 -05:00
bool operator = = ( Object other ) {
2023-07-06 11:41:38 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-03-01 11:38:03 -05:00
other is _ $SafetySpecImpl & &
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-03-01 11:38:03 -05:00
_ $ $SafetySpecImplCopyWith < _ $SafetySpecImpl > get copyWith = >
__ $ $SafetySpecImplCopyWithImpl < _ $SafetySpecImpl > ( this , _ $identity ) ;
2023-07-06 11:41:38 -04:00
@ override
Map < String , dynamic > toJson ( ) {
2024-03-01 11:38:03 -05:00
return _ $ $SafetySpecImplToJson (
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-03-01 11:38:03 -05:00
final String ? preferredRoute } ) = _ $SafetySpecImpl ;
2023-07-06 11:41:38 -04:00
factory _SafetySpec . fromJson ( Map < String , dynamic > json ) =
2024-03-01 11:38:03 -05:00
_ $SafetySpecImpl . 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-03-01 11:38:03 -05:00
_ $ $SafetySpecImplCopyWith < _ $SafetySpecImpl > 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-03-01 11:38:03 -05:00
abstract class _ $ $RouteBlobImplCopyWith < $Res >
implements $RouteBlobCopyWith < $Res > {
factory _ $ $RouteBlobImplCopyWith (
_ $RouteBlobImpl value , $Res Function ( _ $RouteBlobImpl ) then ) =
__ $ $RouteBlobImplCopyWithImpl < $Res > ;
2023-07-06 11:41:38 -04:00
@ override
@ useResult
$Res call ( { String routeId , @ Uint8ListJsonConverter ( ) Uint8List blob } ) ;
}
/// @nodoc
2024-03-01 11:38:03 -05:00
class __ $ $RouteBlobImplCopyWithImpl < $Res >
extends _ $RouteBlobCopyWithImpl < $Res , _ $RouteBlobImpl >
implements _ $ $RouteBlobImplCopyWith < $Res > {
__ $ $RouteBlobImplCopyWithImpl (
_ $RouteBlobImpl _value , $Res Function ( _ $RouteBlobImpl ) _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-03-01 11:38:03 -05:00
return _then ( _ $RouteBlobImpl (
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-03-01 11:38:03 -05:00
class _ $RouteBlobImpl implements _RouteBlob {
const _ $RouteBlobImpl (
2023-07-06 11:41:38 -04:00
{ required this . routeId , @ Uint8ListJsonConverter ( ) required this . blob } ) ;
2024-03-01 11:38:03 -05:00
factory _ $RouteBlobImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $RouteBlobImplFromJson ( 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-03-01 11:38:03 -05:00
bool operator = = ( Object other ) {
2023-07-06 11:41:38 -04:00
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
2024-03-01 11:38:03 -05:00
other is _ $RouteBlobImpl & &
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-03-01 11:38:03 -05:00
_ $ $RouteBlobImplCopyWith < _ $RouteBlobImpl > get copyWith = >
__ $ $RouteBlobImplCopyWithImpl < _ $RouteBlobImpl > ( this , _ $identity ) ;
2023-07-06 11:41:38 -04:00
@ override
Map < String , dynamic > toJson ( ) {
2024-03-01 11:38:03 -05:00
return _ $ $RouteBlobImplToJson (
2023-07-06 11:41:38 -04:00
this ,
) ;
}
}
abstract class _RouteBlob implements RouteBlob {
const factory _RouteBlob (
2024-03-01 11:38:03 -05:00
{ required final String routeId ,
@ Uint8ListJsonConverter ( ) required final Uint8List blob } ) =
_ $RouteBlobImpl ;
2023-07-06 11:41:38 -04:00
factory _RouteBlob . fromJson ( Map < String , dynamic > json ) =
2024-03-01 11:38:03 -05:00
_ $RouteBlobImpl . fromJson ;
2023-07-06 11:41:38 -04:00
@ override
String get routeId ;
@ override
@ Uint8ListJsonConverter ( )
Uint8List get blob ;
@ override
@ JsonKey ( ignore: true )
2024-03-01 11:38:03 -05:00
_ $ $RouteBlobImplCopyWith < _ $RouteBlobImpl > get copyWith = >
2023-07-06 11:41:38 -04:00
throw _privateConstructorUsedError ;
}
2024-03-16 23:57:46 -04:00
DHTRecordReport _ $DHTRecordReportFromJson ( Map < String , dynamic > json ) {
return _DHTRecordReport . fromJson ( json ) ;
}
/// @nodoc
mixin _ $DHTRecordReport {
List < ValueSubkeyRange > get subkeys = > throw _privateConstructorUsedError ;
2024-04-13 14:15:09 -04:00
List < ValueSubkeyRange > get offlineSubkeys = >
throw _privateConstructorUsedError ;
2024-03-16 23:57:46 -04:00
List < int > get localSeqs = > throw _privateConstructorUsedError ;
List < int > get networkSeqs = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$DHTRecordReportCopyWith < DHTRecordReport > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $DHTRecordReportCopyWith < $Res > {
factory $DHTRecordReportCopyWith (
DHTRecordReport value , $Res Function ( DHTRecordReport ) then ) =
_ $DHTRecordReportCopyWithImpl < $Res , DHTRecordReport > ;
@ useResult
$Res call (
{ List < ValueSubkeyRange > subkeys ,
2024-04-13 14:15:09 -04:00
List < ValueSubkeyRange > offlineSubkeys ,
2024-03-16 23:57:46 -04:00
List < int > localSeqs ,
List < int > networkSeqs } ) ;
}
/// @nodoc
class _ $DHTRecordReportCopyWithImpl < $Res , $Val extends DHTRecordReport >
implements $DHTRecordReportCopyWith < $Res > {
_ $DHTRecordReportCopyWithImpl ( 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 ? subkeys = null ,
2024-04-13 14:15:09 -04:00
Object ? offlineSubkeys = null ,
2024-03-16 23:57:46 -04:00
Object ? localSeqs = null ,
Object ? networkSeqs = null ,
} ) {
return _then ( _value . copyWith (
subkeys: null = = subkeys
? _value . subkeys
: subkeys // ignore: cast_nullable_to_non_nullable
as List < ValueSubkeyRange > ,
2024-04-13 14:15:09 -04:00
offlineSubkeys: null = = offlineSubkeys
? _value . offlineSubkeys
: offlineSubkeys // ignore: cast_nullable_to_non_nullable
as List < ValueSubkeyRange > ,
2024-03-16 23:57:46 -04:00
localSeqs: null = = localSeqs
? _value . localSeqs
: localSeqs // ignore: cast_nullable_to_non_nullable
as List < int > ,
networkSeqs: null = = networkSeqs
? _value . networkSeqs
: networkSeqs // ignore: cast_nullable_to_non_nullable
as List < int > ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $DHTRecordReportImplCopyWith < $Res >
implements $DHTRecordReportCopyWith < $Res > {
factory _ $ $DHTRecordReportImplCopyWith ( _ $DHTRecordReportImpl value ,
$Res Function ( _ $DHTRecordReportImpl ) then ) =
__ $ $DHTRecordReportImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ List < ValueSubkeyRange > subkeys ,
2024-04-13 14:15:09 -04:00
List < ValueSubkeyRange > offlineSubkeys ,
2024-03-16 23:57:46 -04:00
List < int > localSeqs ,
List < int > networkSeqs } ) ;
}
/// @nodoc
class __ $ $DHTRecordReportImplCopyWithImpl < $Res >
extends _ $DHTRecordReportCopyWithImpl < $Res , _ $DHTRecordReportImpl >
implements _ $ $DHTRecordReportImplCopyWith < $Res > {
__ $ $DHTRecordReportImplCopyWithImpl (
_ $DHTRecordReportImpl _value , $Res Function ( _ $DHTRecordReportImpl ) _then )
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? subkeys = null ,
2024-04-13 14:15:09 -04:00
Object ? offlineSubkeys = null ,
2024-03-16 23:57:46 -04:00
Object ? localSeqs = null ,
Object ? networkSeqs = null ,
} ) {
return _then ( _ $DHTRecordReportImpl (
subkeys: null = = subkeys
? _value . _subkeys
: subkeys // ignore: cast_nullable_to_non_nullable
as List < ValueSubkeyRange > ,
2024-04-13 14:15:09 -04:00
offlineSubkeys: null = = offlineSubkeys
? _value . _offlineSubkeys
: offlineSubkeys // ignore: cast_nullable_to_non_nullable
as List < ValueSubkeyRange > ,
2024-03-16 23:57:46 -04:00
localSeqs: null = = localSeqs
? _value . _localSeqs
: localSeqs // ignore: cast_nullable_to_non_nullable
as List < int > ,
networkSeqs: null = = networkSeqs
? _value . _networkSeqs
: networkSeqs // ignore: cast_nullable_to_non_nullable
as List < int > ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $DHTRecordReportImpl implements _DHTRecordReport {
const _ $DHTRecordReportImpl (
{ required final List < ValueSubkeyRange > subkeys ,
2024-04-13 14:15:09 -04:00
required final List < ValueSubkeyRange > offlineSubkeys ,
2024-03-16 23:57:46 -04:00
required final List < int > localSeqs ,
required final List < int > networkSeqs } )
: _subkeys = subkeys ,
2024-04-13 14:15:09 -04:00
_offlineSubkeys = offlineSubkeys ,
2024-03-16 23:57:46 -04:00
_localSeqs = localSeqs ,
_networkSeqs = networkSeqs ;
factory _ $DHTRecordReportImpl . fromJson ( Map < String , dynamic > json ) = >
_ $ $DHTRecordReportImplFromJson ( json ) ;
final List < ValueSubkeyRange > _subkeys ;
@ override
List < ValueSubkeyRange > get subkeys {
if ( _subkeys is EqualUnmodifiableListView ) return _subkeys ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _subkeys ) ;
}
2024-04-13 14:15:09 -04:00
final List < ValueSubkeyRange > _offlineSubkeys ;
@ override
List < ValueSubkeyRange > get offlineSubkeys {
if ( _offlineSubkeys is EqualUnmodifiableListView ) return _offlineSubkeys ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _offlineSubkeys ) ;
}
2024-03-16 23:57:46 -04:00
final List < int > _localSeqs ;
@ override
List < int > get localSeqs {
if ( _localSeqs is EqualUnmodifiableListView ) return _localSeqs ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _localSeqs ) ;
}
final List < int > _networkSeqs ;
@ override
List < int > get networkSeqs {
if ( _networkSeqs is EqualUnmodifiableListView ) return _networkSeqs ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _networkSeqs ) ;
}
@ override
String toString ( ) {
2024-04-13 14:15:09 -04:00
return ' DHTRecordReport(subkeys: $ subkeys , offlineSubkeys: $ offlineSubkeys , localSeqs: $ localSeqs , networkSeqs: $ networkSeqs ) ' ;
2024-03-16 23:57:46 -04:00
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $DHTRecordReportImpl & &
const DeepCollectionEquality ( ) . equals ( other . _subkeys , _subkeys ) & &
2024-04-13 14:15:09 -04:00
const DeepCollectionEquality ( )
. equals ( other . _offlineSubkeys , _offlineSubkeys ) & &
2024-03-16 23:57:46 -04:00
const DeepCollectionEquality ( )
. equals ( other . _localSeqs , _localSeqs ) & &
const DeepCollectionEquality ( )
. equals ( other . _networkSeqs , _networkSeqs ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > Object . hash (
runtimeType ,
const DeepCollectionEquality ( ) . hash ( _subkeys ) ,
2024-04-13 14:15:09 -04:00
const DeepCollectionEquality ( ) . hash ( _offlineSubkeys ) ,
2024-03-16 23:57:46 -04:00
const DeepCollectionEquality ( ) . hash ( _localSeqs ) ,
const DeepCollectionEquality ( ) . hash ( _networkSeqs ) ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $DHTRecordReportImplCopyWith < _ $DHTRecordReportImpl > get copyWith = >
__ $ $DHTRecordReportImplCopyWithImpl < _ $DHTRecordReportImpl > (
this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $DHTRecordReportImplToJson (
this ,
) ;
}
}
abstract class _DHTRecordReport implements DHTRecordReport {
const factory _DHTRecordReport (
{ required final List < ValueSubkeyRange > subkeys ,
2024-04-13 14:15:09 -04:00
required final List < ValueSubkeyRange > offlineSubkeys ,
2024-03-16 23:57:46 -04:00
required final List < int > localSeqs ,
required final List < int > networkSeqs } ) = _ $DHTRecordReportImpl ;
factory _DHTRecordReport . fromJson ( Map < String , dynamic > json ) =
_ $DHTRecordReportImpl . fromJson ;
@ override
List < ValueSubkeyRange > get subkeys ;
@ override
2024-04-13 14:15:09 -04:00
List < ValueSubkeyRange > get offlineSubkeys ;
@ override
2024-03-16 23:57:46 -04:00
List < int > get localSeqs ;
@ override
List < int > get networkSeqs ;
@ override
@ JsonKey ( ignore: true )
_ $ $DHTRecordReportImplCopyWith < _ $DHTRecordReportImpl > get copyWith = >
throw _privateConstructorUsedError ;
}