veilid/veilid-flutter/lib/routing_context.freezed.dart

1509 lines
42 KiB
Dart
Raw Normal View History

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.\nPlease 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
2023-11-25 18:59:43 -05:00
abstract class _$$DHTSchemaDFLTCopyWith<$Res>
2023-07-06 11:41:38 -04:00
implements $DHTSchemaCopyWith<$Res> {
2023-11-25 18:59:43 -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
2023-11-25 18:59:43 -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,
}) {
2023-11-25 18:59:43 -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()
2023-11-25 18:59:43 -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';
2023-11-25 18:59:43 -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
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-25 18:59:43 -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')
2023-11-25 18:59:43 -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() {
2023-11-25 18:59:43 -05:00
return _$$DHTSchemaDFLTToJson(
2023-07-06 11:41:38 -04:00
this,
);
}
}
abstract class DHTSchemaDFLT implements DHTSchema {
2023-11-25 18:59:43 -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) =
2023-11-25 18:59:43 -05:00
_$DHTSchemaDFLT.fromJson;
2023-07-06 11:41:38 -04:00
@override
int get oCnt;
@override
@JsonKey(ignore: true)
2023-11-25 18:59:43 -05:00
_$$DHTSchemaDFLTCopyWith<_$DHTSchemaDFLT> get copyWith =>
2023-07-06 11:41:38 -04:00
throw _privateConstructorUsedError;
}
/// @nodoc
2023-11-25 18:59:43 -05:00
abstract class _$$DHTSchemaSMPLCopyWith<$Res>
2023-07-06 11:41:38 -04:00
implements $DHTSchemaCopyWith<$Res> {
2023-11-25 18:59:43 -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
2023-11-25 18:59:43 -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,
}) {
2023-11-25 18:59:43 -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()
2023-11-25 18:59:43 -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';
2023-11-25 18:59:43 -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
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-25 18:59:43 -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')
2023-11-25 18:59:43 -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() {
2023-11-25 18:59:43 -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,
2023-11-25 18:59:43 -05:00
required final List<DHTSchemaMember> members}) = _$DHTSchemaSMPL;
2023-07-06 11:41:38 -04:00
factory DHTSchemaSMPL.fromJson(Map<String, dynamic> json) =
2023-11-25 18:59:43 -05:00
_$DHTSchemaSMPL.fromJson;
2023-07-06 11:41:38 -04:00
@override
int get oCnt;
List<DHTSchemaMember> get members;
@override
@JsonKey(ignore: true)
2023-11-25 18:59:43 -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
2023-11-25 18:59:43 -05:00
abstract class _$$_DHTSchemaMemberCopyWith<$Res>
2023-07-05 23:53:08 -04:00
implements $DHTSchemaMemberCopyWith<$Res> {
2023-11-25 18:59:43 -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
2023-11-25 18:59:43 -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,
}) {
2023-11-25 18:59:43 -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()
2023-11-25 18:59:43 -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
2023-11-25 18:59:43 -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
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-25 18:59:43 -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')
2023-11-25 18:59:43 -05:00
_$$_DHTSchemaMemberCopyWith<_$_DHTSchemaMember> get copyWith =>
__$$_DHTSchemaMemberCopyWithImpl<_$_DHTSchemaMember>(this, _$identity);
2023-07-05 23:53:08 -04:00
@override
Map<String, dynamic> toJson() {
2023-11-25 18:59:43 -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,
2023-11-25 18:59:43 -05:00
required final int mCnt}) = _$_DHTSchemaMember;
2023-07-05 23:53:08 -04:00
factory _DHTSchemaMember.fromJson(Map<String, dynamic> json) =
2023-11-25 18:59:43 -05:00
_$_DHTSchemaMember.fromJson;
2023-07-05 23:53:08 -04:00
@override
FixedEncodedString43 get mKey;
@override
int get mCnt;
@override
@JsonKey(ignore: true)
2023-11-25 18:59:43 -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
2023-11-25 18:59:43 -05:00
abstract class _$$_DHTRecordDescriptorCopyWith<$Res>
2023-07-06 11:41:38 -04:00
implements $DHTRecordDescriptorCopyWith<$Res> {
2023-11-25 18:59:43 -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
2023-11-25 18:59:43 -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
}) {
2023-11-25 18:59:43 -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()
2023-11-25 18:59:43 -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
2023-11-25 18:59:43 -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
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-25 18:59:43 -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')
2023-11-25 18:59:43 -05:00
_$$_DHTRecordDescriptorCopyWith<_$_DHTRecordDescriptor> get copyWith =>
__$$_DHTRecordDescriptorCopyWithImpl<_$_DHTRecordDescriptor>(
2023-07-06 11:41:38 -04:00
this, _$identity);
@override
Map<String, dynamic> toJson() {
2023-11-25 18:59:43 -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,
2023-11-25 18:59:43 -05:00
final FixedEncodedString43? ownerSecret}) = _$_DHTRecordDescriptor;
2023-07-06 11:41:38 -04:00
factory _DHTRecordDescriptor.fromJson(Map<String, dynamic> json) =
2023-11-25 18:59:43 -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)
2023-11-25 18:59:43 -05:00
_$$_DHTRecordDescriptorCopyWith<_$_DHTRecordDescriptor> get copyWith =>
2023-07-06 11:41:38 -04:00
throw _privateConstructorUsedError;
}
ValueSubkeyRange _$ValueSubkeyRangeFromJson(Map<String, dynamic> json) {
return _ValueSubkeyRange.fromJson(json);
}
/// @nodoc
mixin _$ValueSubkeyRange {
int get low => throw _privateConstructorUsedError;
int get high => throw _privateConstructorUsedError;
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$ValueSubkeyRangeCopyWith<ValueSubkeyRange> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $ValueSubkeyRangeCopyWith<$Res> {
factory $ValueSubkeyRangeCopyWith(
ValueSubkeyRange value, $Res Function(ValueSubkeyRange) then) =
_$ValueSubkeyRangeCopyWithImpl<$Res, ValueSubkeyRange>;
@useResult
$Res call({int low, int high});
}
/// @nodoc
class _$ValueSubkeyRangeCopyWithImpl<$Res, $Val extends ValueSubkeyRange>
implements $ValueSubkeyRangeCopyWith<$Res> {
_$ValueSubkeyRangeCopyWithImpl(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? low = null,
Object? high = null,
}) {
return _then(_value.copyWith(
low: null == low
? _value.low
: low // ignore: cast_nullable_to_non_nullable
as int,
high: null == high
? _value.high
: high // ignore: cast_nullable_to_non_nullable
as int,
) as $Val);
}
}
/// @nodoc
2023-11-25 18:59:43 -05:00
abstract class _$$_ValueSubkeyRangeCopyWith<$Res>
2023-07-06 11:41:38 -04:00
implements $ValueSubkeyRangeCopyWith<$Res> {
2023-11-25 18:59:43 -05:00
factory _$$_ValueSubkeyRangeCopyWith(
_$_ValueSubkeyRange value, $Res Function(_$_ValueSubkeyRange) then) =
__$$_ValueSubkeyRangeCopyWithImpl<$Res>;
2023-07-06 11:41:38 -04:00
@override
@useResult
$Res call({int low, int high});
}
/// @nodoc
2023-11-25 18:59:43 -05:00
class __$$_ValueSubkeyRangeCopyWithImpl<$Res>
extends _$ValueSubkeyRangeCopyWithImpl<$Res, _$_ValueSubkeyRange>
implements _$$_ValueSubkeyRangeCopyWith<$Res> {
__$$_ValueSubkeyRangeCopyWithImpl(
_$_ValueSubkeyRange _value, $Res Function(_$_ValueSubkeyRange) _then)
2023-07-06 11:41:38 -04:00
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? low = null,
Object? high = null,
}) {
2023-11-25 18:59:43 -05:00
return _then(_$_ValueSubkeyRange(
2023-07-06 11:41:38 -04:00
low: null == low
? _value.low
: low // ignore: cast_nullable_to_non_nullable
as int,
high: null == high
? _value.high
: high // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
@JsonSerializable()
2023-11-25 18:59:43 -05:00
class _$_ValueSubkeyRange implements _ValueSubkeyRange {
const _$_ValueSubkeyRange({required this.low, required this.high})
2023-07-06 11:41:38 -04:00
: assert(low < 0 || low > high, 'low out of range'),
assert(high < 0, 'high out of range');
2023-11-25 18:59:43 -05:00
factory _$_ValueSubkeyRange.fromJson(Map<String, dynamic> json) =>
_$$_ValueSubkeyRangeFromJson(json);
2023-07-06 11:41:38 -04:00
@override
final int low;
@override
final int high;
@override
String toString() {
return 'ValueSubkeyRange(low: $low, high: $high)';
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-25 18:59:43 -05:00
other is _$_ValueSubkeyRange &&
2023-07-06 11:41:38 -04:00
(identical(other.low, low) || other.low == low) &&
(identical(other.high, high) || other.high == high));
}
@JsonKey(ignore: true)
@override
int get hashCode => Object.hash(runtimeType, low, high);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
2023-11-25 18:59:43 -05:00
_$$_ValueSubkeyRangeCopyWith<_$_ValueSubkeyRange> get copyWith =>
__$$_ValueSubkeyRangeCopyWithImpl<_$_ValueSubkeyRange>(this, _$identity);
2023-07-06 11:41:38 -04:00
@override
Map<String, dynamic> toJson() {
2023-11-25 18:59:43 -05:00
return _$$_ValueSubkeyRangeToJson(
2023-07-06 11:41:38 -04:00
this,
);
}
}
abstract class _ValueSubkeyRange implements ValueSubkeyRange {
const factory _ValueSubkeyRange(
2023-11-25 18:59:43 -05:00
{required final int low, required final int high}) = _$_ValueSubkeyRange;
2023-07-06 11:41:38 -04:00
factory _ValueSubkeyRange.fromJson(Map<String, dynamic> json) =
2023-11-25 18:59:43 -05:00
_$_ValueSubkeyRange.fromJson;
2023-07-06 11:41:38 -04:00
@override
int get low;
@override
int get high;
@override
@JsonKey(ignore: true)
2023-11-25 18:59:43 -05:00
_$$_ValueSubkeyRangeCopyWith<_$_ValueSubkeyRange> 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
2023-11-25 18:59:43 -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
2023-11-25 18:59:43 -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,
}) {
2023-11-25 18:59:43 -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()
2023-11-25 18:59:43 -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');
2023-11-25 18:59:43 -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
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-25 18:59:43 -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')
2023-11-25 18:59:43 -05:00
_$$_ValueDataCopyWith<_$_ValueData> get copyWith =>
__$$_ValueDataCopyWithImpl<_$_ValueData>(this, _$identity);
2023-07-06 11:41:38 -04:00
@override
Map<String, dynamic> toJson() {
2023-11-25 18:59:43 -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,
2023-11-25 18:59:43 -05:00
required final FixedEncodedString43 writer}) = _$_ValueData;
2023-07-06 11:41:38 -04:00
factory _ValueData.fromJson(Map<String, dynamic> json) =
2023-11-25 18:59:43 -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)
2023-11-25 18:59:43 -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
2023-11-25 18:59:43 -05:00
abstract class _$$_SafetySpecCopyWith<$Res>
2023-07-06 11:41:38 -04:00
implements $SafetySpecCopyWith<$Res> {
2023-11-25 18:59:43 -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
2023-11-25 18:59:43 -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
}) {
2023-11-25 18:59:43 -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()
2023-11-25 18:59:43 -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
2023-11-25 18:59:43 -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
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-25 18:59:43 -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')
2023-11-25 18:59:43 -05:00
_$$_SafetySpecCopyWith<_$_SafetySpec> get copyWith =>
__$$_SafetySpecCopyWithImpl<_$_SafetySpec>(this, _$identity);
2023-07-06 11:41:38 -04:00
@override
Map<String, dynamic> toJson() {
2023-11-25 18:59:43 -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,
2023-11-25 18:59:43 -05:00
final String? preferredRoute}) = _$_SafetySpec;
2023-07-06 11:41:38 -04:00
factory _SafetySpec.fromJson(Map<String, dynamic> json) =
2023-11-25 18:59:43 -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)
2023-11-25 18:59:43 -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
2023-11-25 18:59:43 -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
2023-11-25 18:59:43 -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,
}) {
2023-11-25 18:59:43 -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()
2023-11-25 18:59:43 -05:00
class _$_RouteBlob implements _RouteBlob {
const _$_RouteBlob(
2023-07-06 11:41:38 -04:00
{required this.routeId, @Uint8ListJsonConverter() required this.blob});
2023-11-25 18:59:43 -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
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
2023-11-25 18:59:43 -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')
2023-11-25 18:59:43 -05:00
_$$_RouteBlobCopyWith<_$_RouteBlob> get copyWith =>
__$$_RouteBlobCopyWithImpl<_$_RouteBlob>(this, _$identity);
2023-07-06 11:41:38 -04:00
@override
Map<String, dynamic> toJson() {
2023-11-25 18:59:43 -05:00
return _$$_RouteBlobToJson(
2023-07-06 11:41:38 -04:00
this,
);
}
}
abstract class _RouteBlob implements RouteBlob {
const factory _RouteBlob(
2023-11-25 18:59:43 -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) =
2023-11-25 18:59:43 -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)
2023-11-25 18:59:43 -05:00
_$$_RouteBlobCopyWith<_$_RouteBlob> get copyWith =>
2023-07-06 11:41:38 -04:00
throw _privateConstructorUsedError;
}