2023-07-05 23:53:08 -04:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'routing_context.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
2024-02-21 18:17:07 -05:00
|
|
|
_$DHTSchemaDFLT _$$DHTSchemaDFLTFromJson(Map<String, dynamic> json) =>
|
|
|
|
_$DHTSchemaDFLT(
|
2023-07-06 11:41:38 -04:00
|
|
|
oCnt: json['o_cnt'] as int,
|
|
|
|
$type: json['kind'] as String?,
|
|
|
|
);
|
|
|
|
|
2024-02-21 18:17:07 -05:00
|
|
|
Map<String, dynamic> _$$DHTSchemaDFLTToJson(_$DHTSchemaDFLT instance) =>
|
2023-07-06 11:41:38 -04:00
|
|
|
<String, dynamic>{
|
|
|
|
'o_cnt': instance.oCnt,
|
|
|
|
'kind': instance.$type,
|
|
|
|
};
|
|
|
|
|
2024-02-21 18:17:07 -05:00
|
|
|
_$DHTSchemaSMPL _$$DHTSchemaSMPLFromJson(Map<String, dynamic> json) =>
|
|
|
|
_$DHTSchemaSMPL(
|
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-02-21 18:17:07 -05:00
|
|
|
Map<String, dynamic> _$$DHTSchemaSMPLToJson(_$DHTSchemaSMPL 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-02-21 18:17:07 -05:00
|
|
|
_$_DHTSchemaMember _$$_DHTSchemaMemberFromJson(Map<String, dynamic> json) =>
|
|
|
|
_$_DHTSchemaMember(
|
2023-07-05 23:53:08 -04:00
|
|
|
mKey: FixedEncodedString43.fromJson(json['m_key']),
|
|
|
|
mCnt: json['m_cnt'] as int,
|
|
|
|
);
|
|
|
|
|
2024-02-21 18:17:07 -05:00
|
|
|
Map<String, dynamic> _$$_DHTSchemaMemberToJson(_$_DHTSchemaMember 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-02-21 18:17:07 -05:00
|
|
|
_$_DHTRecordDescriptor _$$_DHTRecordDescriptorFromJson(
|
2023-07-06 11:41:38 -04:00
|
|
|
Map<String, dynamic> json) =>
|
2024-02-21 18:17:07 -05:00
|
|
|
_$_DHTRecordDescriptor(
|
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-02-21 18:17:07 -05:00
|
|
|
Map<String, dynamic> _$$_DHTRecordDescriptorToJson(
|
|
|
|
_$_DHTRecordDescriptor 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-02-21 18:17:07 -05:00
|
|
|
_$_ValueData _$$_ValueDataFromJson(Map<String, dynamic> json) => _$_ValueData(
|
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-02-21 18:17:07 -05:00
|
|
|
Map<String, dynamic> _$$_ValueDataToJson(_$_ValueData 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-02-21 18:17:07 -05:00
|
|
|
_$_SafetySpec _$$_SafetySpecFromJson(Map<String, dynamic> json) =>
|
|
|
|
_$_SafetySpec(
|
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-02-21 18:17:07 -05:00
|
|
|
Map<String, dynamic> _$$_SafetySpecToJson(_$_SafetySpec 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-02-21 18:17:07 -05:00
|
|
|
_$_RouteBlob _$$_RouteBlobFromJson(Map<String, dynamic> json) => _$_RouteBlob(
|
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-02-21 18:17:07 -05:00
|
|
|
Map<String, dynamic> _$$_RouteBlobToJson(_$_RouteBlob instance) =>
|
2023-07-06 11:41:38 -04:00
|
|
|
<String, dynamic>{
|
|
|
|
'route_id': instance.routeId,
|
|
|
|
'blob': const Uint8ListJsonConverter().toJson(instance.blob),
|
|
|
|
};
|