2023-07-06 03:53:08 +00:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'routing_context.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
2023-07-06 15:41:38 +00:00
|
|
|
_$DHTSchemaDFLT _$$DHTSchemaDFLTFromJson(Map<String, dynamic> json) =>
|
|
|
|
_$DHTSchemaDFLT(
|
|
|
|
oCnt: json['o_cnt'] as int,
|
|
|
|
$type: json['kind'] as String?,
|
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$$DHTSchemaDFLTToJson(_$DHTSchemaDFLT instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'o_cnt': instance.oCnt,
|
|
|
|
'kind': instance.$type,
|
|
|
|
};
|
|
|
|
|
|
|
|
_$DHTSchemaSMPL _$$DHTSchemaSMPLFromJson(Map<String, dynamic> json) =>
|
|
|
|
_$DHTSchemaSMPL(
|
|
|
|
oCnt: json['o_cnt'] as int,
|
|
|
|
members: (json['members'] as List<dynamic>)
|
2023-08-03 01:09:47 +00:00
|
|
|
.map(DHTSchemaMember.fromJson)
|
2023-07-06 15:41:38 +00:00
|
|
|
.toList(),
|
|
|
|
$type: json['kind'] as String?,
|
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$$DHTSchemaSMPLToJson(_$DHTSchemaSMPL instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'o_cnt': instance.oCnt,
|
|
|
|
'members': instance.members.map((e) => e.toJson()).toList(),
|
|
|
|
'kind': instance.$type,
|
|
|
|
};
|
|
|
|
|
2023-07-06 03:53:08 +00:00
|
|
|
_$_DHTSchemaMember _$$_DHTSchemaMemberFromJson(Map<String, dynamic> json) =>
|
|
|
|
_$_DHTSchemaMember(
|
|
|
|
mKey: FixedEncodedString43.fromJson(json['m_key']),
|
|
|
|
mCnt: json['m_cnt'] as int,
|
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$$_DHTSchemaMemberToJson(_$_DHTSchemaMember instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'm_key': instance.mKey.toJson(),
|
|
|
|
'm_cnt': instance.mCnt,
|
|
|
|
};
|
2023-07-06 15:41:38 +00:00
|
|
|
|
|
|
|
_$_DHTRecordDescriptor _$$_DHTRecordDescriptorFromJson(
|
|
|
|
Map<String, dynamic> json) =>
|
|
|
|
_$_DHTRecordDescriptor(
|
|
|
|
key: Typed<FixedEncodedString43>.fromJson(json['key']),
|
|
|
|
owner: FixedEncodedString43.fromJson(json['owner']),
|
2023-08-03 01:09:47 +00:00
|
|
|
schema: DHTSchema.fromJson(json['schema']),
|
2023-07-06 15:41:38 +00:00
|
|
|
ownerSecret: json['owner_secret'] == null
|
|
|
|
? null
|
|
|
|
: FixedEncodedString43.fromJson(json['owner_secret']),
|
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$$_DHTRecordDescriptorToJson(
|
|
|
|
_$_DHTRecordDescriptor instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'key': instance.key.toJson(),
|
|
|
|
'owner': instance.owner.toJson(),
|
|
|
|
'schema': instance.schema.toJson(),
|
2023-08-03 01:09:47 +00:00
|
|
|
'owner_secret': instance.ownerSecret?.toJson(),
|
2023-07-06 15:41:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
_$_ValueSubkeyRange _$$_ValueSubkeyRangeFromJson(Map<String, dynamic> json) =>
|
|
|
|
_$_ValueSubkeyRange(
|
|
|
|
low: json['low'] as int,
|
|
|
|
high: json['high'] as int,
|
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$$_ValueSubkeyRangeToJson(_$_ValueSubkeyRange instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'low': instance.low,
|
|
|
|
'high': instance.high,
|
|
|
|
};
|
|
|
|
|
|
|
|
_$_ValueData _$$_ValueDataFromJson(Map<String, dynamic> json) => _$_ValueData(
|
|
|
|
seq: json['seq'] as int,
|
|
|
|
data: const Uint8ListJsonConverter().fromJson(json['data'] as String),
|
|
|
|
writer: FixedEncodedString43.fromJson(json['writer']),
|
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$$_ValueDataToJson(_$_ValueData instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'seq': instance.seq,
|
|
|
|
'data': const Uint8ListJsonConverter().toJson(instance.data),
|
|
|
|
'writer': instance.writer.toJson(),
|
|
|
|
};
|
|
|
|
|
|
|
|
_$_SafetySpec _$$_SafetySpecFromJson(Map<String, dynamic> json) =>
|
|
|
|
_$_SafetySpec(
|
|
|
|
hopCount: json['hop_count'] as int,
|
2023-08-03 01:09:47 +00:00
|
|
|
stability: Stability.fromJson(json['stability']),
|
|
|
|
sequencing: Sequencing.fromJson(json['sequencing']),
|
|
|
|
preferredRoute: json['preferred_route'] as String?,
|
2023-07-06 15:41:38 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$$_SafetySpecToJson(_$_SafetySpec instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'hop_count': instance.hopCount,
|
|
|
|
'stability': instance.stability.toJson(),
|
|
|
|
'sequencing': instance.sequencing.toJson(),
|
2023-08-03 01:09:47 +00:00
|
|
|
'preferred_route': instance.preferredRoute,
|
2023-07-06 15:41:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
_$_RouteBlob _$$_RouteBlobFromJson(Map<String, dynamic> json) => _$_RouteBlob(
|
|
|
|
routeId: json['route_id'] as String,
|
|
|
|
blob: const Uint8ListJsonConverter().fromJson(json['blob'] as String),
|
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$$_RouteBlobToJson(_$_RouteBlob instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'route_id': instance.routeId,
|
|
|
|
'blob': const Uint8ListJsonConverter().toJson(instance.blob),
|
|
|
|
};
|