2023-07-05 23:53:08 -04:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'routing_context.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
2024-03-01 11:38:03 -05:00
|
|
|
_$DHTSchemaDFLTImpl _$$DHTSchemaDFLTImplFromJson(Map<String, dynamic> json) =>
|
|
|
|
_$DHTSchemaDFLTImpl(
|
2023-07-06 11:41:38 -04:00
|
|
|
oCnt: json['o_cnt'] as int,
|
|
|
|
$type: json['kind'] as String?,
|
|
|
|
);
|
|
|
|
|
2024-03-01 11:38:03 -05:00
|
|
|
Map<String, dynamic> _$$DHTSchemaDFLTImplToJson(_$DHTSchemaDFLTImpl instance) =>
|
2023-07-06 11:41:38 -04:00
|
|
|
<String, dynamic>{
|
|
|
|
'o_cnt': instance.oCnt,
|
|
|
|
'kind': instance.$type,
|
|
|
|
};
|
|
|
|
|
2024-03-01 11:38:03 -05:00
|
|
|
_$DHTSchemaSMPLImpl _$$DHTSchemaSMPLImplFromJson(Map<String, dynamic> json) =>
|
|
|
|
_$DHTSchemaSMPLImpl(
|
2023-07-06 11:41:38 -04:00
|
|
|
oCnt: json['o_cnt'] as int,
|
|
|
|
members: (json['members'] as List<dynamic>)
|
2023-08-02 21:09:47 -04:00
|
|
|
.map(DHTSchemaMember.fromJson)
|
2023-07-06 11:41:38 -04:00
|
|
|
.toList(),
|
|
|
|
$type: json['kind'] as String?,
|
|
|
|
);
|
|
|
|
|
2024-03-01 11:38:03 -05:00
|
|
|
Map<String, dynamic> _$$DHTSchemaSMPLImplToJson(_$DHTSchemaSMPLImpl instance) =>
|
2023-07-06 11:41:38 -04:00
|
|
|
<String, dynamic>{
|
|
|
|
'o_cnt': instance.oCnt,
|
|
|
|
'members': instance.members.map((e) => e.toJson()).toList(),
|
|
|
|
'kind': instance.$type,
|
|
|
|
};
|
|
|
|
|
2024-03-01 11:38:03 -05:00
|
|
|
_$DHTSchemaMemberImpl _$$DHTSchemaMemberImplFromJson(
|
|
|
|
Map<String, dynamic> json) =>
|
|
|
|
_$DHTSchemaMemberImpl(
|
2023-07-05 23:53:08 -04:00
|
|
|
mKey: FixedEncodedString43.fromJson(json['m_key']),
|
|
|
|
mCnt: json['m_cnt'] as int,
|
|
|
|
);
|
|
|
|
|
2024-03-01 11:38:03 -05:00
|
|
|
Map<String, dynamic> _$$DHTSchemaMemberImplToJson(
|
|
|
|
_$DHTSchemaMemberImpl instance) =>
|
2023-07-05 23:53:08 -04:00
|
|
|
<String, dynamic>{
|
|
|
|
'm_key': instance.mKey.toJson(),
|
|
|
|
'm_cnt': instance.mCnt,
|
|
|
|
};
|
2023-07-06 11:41:38 -04:00
|
|
|
|
2024-03-01 11:38:03 -05:00
|
|
|
_$DHTRecordDescriptorImpl _$$DHTRecordDescriptorImplFromJson(
|
2023-07-06 11:41:38 -04:00
|
|
|
Map<String, dynamic> json) =>
|
2024-03-01 11:38:03 -05:00
|
|
|
_$DHTRecordDescriptorImpl(
|
2023-07-06 11:41:38 -04:00
|
|
|
key: Typed<FixedEncodedString43>.fromJson(json['key']),
|
|
|
|
owner: FixedEncodedString43.fromJson(json['owner']),
|
2023-08-02 21:09:47 -04:00
|
|
|
schema: DHTSchema.fromJson(json['schema']),
|
2023-07-06 11:41:38 -04:00
|
|
|
ownerSecret: json['owner_secret'] == null
|
|
|
|
? null
|
|
|
|
: FixedEncodedString43.fromJson(json['owner_secret']),
|
|
|
|
);
|
|
|
|
|
2024-03-01 11:38:03 -05:00
|
|
|
Map<String, dynamic> _$$DHTRecordDescriptorImplToJson(
|
|
|
|
_$DHTRecordDescriptorImpl instance) =>
|
2023-07-06 11:41:38 -04:00
|
|
|
<String, dynamic>{
|
|
|
|
'key': instance.key.toJson(),
|
|
|
|
'owner': instance.owner.toJson(),
|
|
|
|
'schema': instance.schema.toJson(),
|
2023-08-02 21:09:47 -04:00
|
|
|
'owner_secret': instance.ownerSecret?.toJson(),
|
2023-07-06 11:41:38 -04:00
|
|
|
};
|
|
|
|
|
2024-03-01 11:38:03 -05:00
|
|
|
_$ValueDataImpl _$$ValueDataImplFromJson(Map<String, dynamic> json) =>
|
|
|
|
_$ValueDataImpl(
|
2023-07-06 11:41:38 -04:00
|
|
|
seq: json['seq'] as int,
|
2023-10-14 20:18:37 -04:00
|
|
|
data: const Uint8ListJsonConverter.jsIsArray().fromJson(json['data']),
|
2023-07-06 11:41:38 -04:00
|
|
|
writer: FixedEncodedString43.fromJson(json['writer']),
|
|
|
|
);
|
|
|
|
|
2024-03-01 11:38:03 -05:00
|
|
|
Map<String, dynamic> _$$ValueDataImplToJson(_$ValueDataImpl instance) =>
|
2023-07-06 11:41:38 -04:00
|
|
|
<String, dynamic>{
|
|
|
|
'seq': instance.seq,
|
2023-10-14 20:18:37 -04:00
|
|
|
'data': const Uint8ListJsonConverter.jsIsArray().toJson(instance.data),
|
2023-07-06 11:41:38 -04:00
|
|
|
'writer': instance.writer.toJson(),
|
|
|
|
};
|
|
|
|
|
2024-03-01 11:38:03 -05:00
|
|
|
_$SafetySpecImpl _$$SafetySpecImplFromJson(Map<String, dynamic> json) =>
|
|
|
|
_$SafetySpecImpl(
|
2023-07-06 11:41:38 -04:00
|
|
|
hopCount: json['hop_count'] as int,
|
2023-08-02 21:09:47 -04:00
|
|
|
stability: Stability.fromJson(json['stability']),
|
|
|
|
sequencing: Sequencing.fromJson(json['sequencing']),
|
|
|
|
preferredRoute: json['preferred_route'] as String?,
|
2023-07-06 11:41:38 -04:00
|
|
|
);
|
|
|
|
|
2024-03-01 11:38:03 -05:00
|
|
|
Map<String, dynamic> _$$SafetySpecImplToJson(_$SafetySpecImpl instance) =>
|
2023-07-06 11:41:38 -04:00
|
|
|
<String, dynamic>{
|
|
|
|
'hop_count': instance.hopCount,
|
|
|
|
'stability': instance.stability.toJson(),
|
|
|
|
'sequencing': instance.sequencing.toJson(),
|
2023-08-02 21:09:47 -04:00
|
|
|
'preferred_route': instance.preferredRoute,
|
2023-07-06 11:41:38 -04:00
|
|
|
};
|
|
|
|
|
2024-03-01 11:38:03 -05:00
|
|
|
_$RouteBlobImpl _$$RouteBlobImplFromJson(Map<String, dynamic> json) =>
|
|
|
|
_$RouteBlobImpl(
|
2023-07-06 11:41:38 -04:00
|
|
|
routeId: json['route_id'] as String,
|
2023-10-14 20:18:37 -04:00
|
|
|
blob: const Uint8ListJsonConverter().fromJson(json['blob']),
|
2023-07-06 11:41:38 -04:00
|
|
|
);
|
|
|
|
|
2024-03-01 11:38:03 -05:00
|
|
|
Map<String, dynamic> _$$RouteBlobImplToJson(_$RouteBlobImpl instance) =>
|
2023-07-06 11:41:38 -04:00
|
|
|
<String, dynamic>{
|
|
|
|
'route_id': instance.routeId,
|
|
|
|
'blob': const Uint8ListJsonConverter().toJson(instance.blob),
|
|
|
|
};
|
2024-03-16 23:57:46 -04:00
|
|
|
|
|
|
|
_$DHTRecordReportImpl _$$DHTRecordReportImplFromJson(
|
|
|
|
Map<String, dynamic> json) =>
|
|
|
|
_$DHTRecordReportImpl(
|
|
|
|
subkeys: (json['subkeys'] as List<dynamic>)
|
|
|
|
.map(ValueSubkeyRange.fromJson)
|
|
|
|
.toList(),
|
|
|
|
localSeqs:
|
|
|
|
(json['local_seqs'] as List<dynamic>).map((e) => e as int).toList(),
|
|
|
|
networkSeqs:
|
|
|
|
(json['network_seqs'] as List<dynamic>).map((e) => e as int).toList(),
|
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> _$$DHTRecordReportImplToJson(
|
|
|
|
_$DHTRecordReportImpl instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'subkeys': instance.subkeys.map((e) => e.toJson()).toList(),
|
|
|
|
'local_seqs': instance.localSeqs,
|
|
|
|
'network_seqs': instance.networkSeqs,
|
|
|
|
};
|