2023-07-05 22:48:06 +00:00
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
import 'package:flutter/foundation.dart';
|
2023-05-29 19:24:57 +00:00
|
|
|
import 'package:change_case/change_case.dart';
|
|
|
|
import 'veilid.dart';
|
2023-07-05 22:48:06 +00:00
|
|
|
import 'veilid_encoding.dart';
|
|
|
|
import 'veilid_crypto.dart';
|
|
|
|
|
|
|
|
part 'veilid_config.freezed.dart';
|
|
|
|
part 'veilid_config.g.dart';
|
2023-05-29 19:24:57 +00:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////
|
|
|
|
// FFI Platform-specific config
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidFFIConfigLoggingTerminal with _$VeilidFFIConfigLoggingTerminal {
|
|
|
|
const factory VeilidFFIConfigLoggingTerminal({
|
|
|
|
required bool enabled,
|
|
|
|
required VeilidConfigLogLevel level,
|
|
|
|
}) = _VeilidFFIConfigLoggingTerminal;
|
|
|
|
|
|
|
|
factory VeilidFFIConfigLoggingTerminal.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$VeilidFFIConfigLoggingTerminalFromJson(json);
|
|
|
|
}
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidFFIConfigLoggingOtlp with _$VeilidFFIConfigLoggingOtlp {
|
|
|
|
const factory VeilidFFIConfigLoggingOtlp({
|
|
|
|
required bool enabled,
|
|
|
|
required VeilidConfigLogLevel level,
|
|
|
|
required String grpcEndpoint,
|
|
|
|
required String serviceName,
|
|
|
|
}) = _VeilidFFIConfigLoggingOtlp;
|
|
|
|
|
|
|
|
factory VeilidFFIConfigLoggingOtlp.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidFFIConfigLoggingOtlpFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidFFIConfigLoggingApi with _$VeilidFFIConfigLoggingApi {
|
|
|
|
const factory VeilidFFIConfigLoggingApi({
|
|
|
|
required bool enabled,
|
|
|
|
required VeilidConfigLogLevel level,
|
|
|
|
}) = _VeilidFFIConfigLoggingApi;
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
factory VeilidFFIConfigLoggingApi.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidFFIConfigLoggingApiFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidFFIConfigLogging with _$VeilidFFIConfigLogging {
|
|
|
|
const factory VeilidFFIConfigLogging(
|
|
|
|
{required VeilidFFIConfigLoggingTerminal terminal,
|
|
|
|
required VeilidFFIConfigLoggingOtlp otlp,
|
|
|
|
required VeilidFFIConfigLoggingApi api}) = _VeilidFFIConfigLogging;
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
factory VeilidFFIConfigLogging.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidFFIConfigLoggingFromJson(json);
|
|
|
|
}
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidFFIConfig with _$VeilidFFIConfig {
|
|
|
|
const factory VeilidFFIConfig({
|
|
|
|
required VeilidFFIConfigLogging logging,
|
|
|
|
}) = _VeilidFFIConfig;
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
factory VeilidFFIConfig.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidFFIConfigFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
//////////////////////////////////////////////////////////
|
|
|
|
// WASM Platform-specific config
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidWASMConfigLoggingPerformance
|
|
|
|
with _$VeilidWASMConfigLoggingPerformance {
|
|
|
|
const factory VeilidWASMConfigLoggingPerformance({
|
|
|
|
required bool enabled,
|
|
|
|
required VeilidConfigLogLevel level,
|
|
|
|
required bool logsInTimings,
|
|
|
|
required bool logsInConsole,
|
|
|
|
}) = _VeilidWASMConfigLoggingPerformance;
|
|
|
|
|
|
|
|
factory VeilidWASMConfigLoggingPerformance.fromJson(
|
|
|
|
Map<String, Object?> json) =>
|
|
|
|
_$VeilidWASMConfigLoggingPerformanceFromJson(json);
|
|
|
|
}
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidWASMConfigLoggingApi with _$VeilidWASMConfigLoggingApi {
|
|
|
|
const factory VeilidWASMConfigLoggingApi({
|
|
|
|
required bool enabled,
|
|
|
|
required VeilidConfigLogLevel level,
|
|
|
|
}) = _VeilidWASMConfigLoggingApi;
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
factory VeilidWASMConfigLoggingApi.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidWASMConfigLoggingApiFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidWASMConfigLogging with _$VeilidWASMConfigLogging {
|
|
|
|
const factory VeilidWASMConfigLogging(
|
|
|
|
{required VeilidWASMConfigLoggingPerformance performance,
|
|
|
|
required VeilidWASMConfigLoggingApi api}) = _VeilidWASMConfigLogging;
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
factory VeilidWASMConfigLogging.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidWASMConfigLoggingFromJson(json);
|
|
|
|
}
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidWASMConfig with _$VeilidWASMConfig {
|
|
|
|
const factory VeilidWASMConfig({
|
|
|
|
required VeilidWASMConfigLogging logging,
|
|
|
|
}) = _VeilidWASMConfig;
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
factory VeilidWASMConfig.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidWASMConfigFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//////////////////////////////////////
|
|
|
|
/// VeilidConfigLogLevel
|
|
|
|
|
|
|
|
enum VeilidConfigLogLevel {
|
|
|
|
off,
|
|
|
|
error,
|
|
|
|
warn,
|
|
|
|
info,
|
|
|
|
debug,
|
|
|
|
trace;
|
|
|
|
|
|
|
|
String toJson() {
|
|
|
|
return name.toPascalCase();
|
|
|
|
}
|
|
|
|
|
|
|
|
factory VeilidConfigLogLevel.fromJson(dynamic j) {
|
|
|
|
return VeilidConfigLogLevel.values.byName((j as String).toCamelCase());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//////////////////////////////////////
|
|
|
|
/// VeilidConfig
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigHTTPS with _$VeilidConfigHTTPS {
|
|
|
|
const factory VeilidConfigHTTPS({
|
|
|
|
required bool enabled,
|
|
|
|
required String listenAddress,
|
|
|
|
required String path,
|
|
|
|
String? url,
|
|
|
|
}) = _VeilidConfigHTTPS;
|
|
|
|
|
|
|
|
factory VeilidConfigHTTPS.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigHTTPSFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigHTTP with _$VeilidConfigHTTP {
|
|
|
|
const factory VeilidConfigHTTP({
|
|
|
|
required bool enabled,
|
|
|
|
required String listenAddress,
|
|
|
|
required String path,
|
|
|
|
String? url,
|
|
|
|
}) = _VeilidConfigHTTP;
|
|
|
|
|
|
|
|
factory VeilidConfigHTTP.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigHTTPFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigApplication with _$VeilidConfigApplication {
|
|
|
|
const factory VeilidConfigApplication({
|
|
|
|
required VeilidConfigHTTPS https,
|
|
|
|
required VeilidConfigHTTP http,
|
|
|
|
}) = _VeilidConfigApplication;
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
factory VeilidConfigApplication.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigApplicationFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigUDP with _$VeilidConfigUDP {
|
|
|
|
const factory VeilidConfigUDP(
|
|
|
|
{required bool enabled,
|
|
|
|
required int socketPoolSize,
|
|
|
|
required String listenAddress,
|
|
|
|
String? publicAddress}) = _VeilidConfigUDP;
|
|
|
|
|
|
|
|
factory VeilidConfigUDP.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigUDPFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigTCP with _$VeilidConfigTCP {
|
|
|
|
const factory VeilidConfigTCP(
|
|
|
|
{required bool connect,
|
|
|
|
required bool listen,
|
|
|
|
required int maxConnections,
|
|
|
|
required String listenAddress,
|
|
|
|
String? publicAddress}) = _VeilidConfigTCP;
|
|
|
|
|
|
|
|
factory VeilidConfigTCP.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigTCPFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigWS with _$VeilidConfigWS {
|
|
|
|
const factory VeilidConfigWS(
|
|
|
|
{required bool connect,
|
|
|
|
required bool listen,
|
|
|
|
required int maxConnections,
|
|
|
|
required String listenAddress,
|
|
|
|
required String path,
|
|
|
|
String? url}) = _VeilidConfigWS;
|
|
|
|
|
|
|
|
factory VeilidConfigWS.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigWSFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigWSS with _$VeilidConfigWSS {
|
|
|
|
const factory VeilidConfigWSS(
|
|
|
|
{required bool connect,
|
|
|
|
required bool listen,
|
|
|
|
required int maxConnections,
|
|
|
|
required String listenAddress,
|
|
|
|
required String path,
|
|
|
|
String? url}) = _VeilidConfigWSS;
|
|
|
|
|
|
|
|
factory VeilidConfigWSS.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigWSSFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigProtocol with _$VeilidConfigProtocol {
|
|
|
|
const factory VeilidConfigProtocol({
|
|
|
|
required VeilidConfigUDP udp,
|
|
|
|
required VeilidConfigTCP tcp,
|
|
|
|
required VeilidConfigWS ws,
|
|
|
|
required VeilidConfigWSS wss,
|
|
|
|
}) = _VeilidConfigProtocol;
|
|
|
|
|
|
|
|
factory VeilidConfigProtocol.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigProtocolFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigTLS with _$VeilidConfigTLS {
|
|
|
|
const factory VeilidConfigTLS({
|
|
|
|
required String certificatePath,
|
|
|
|
required String privateKeyPath,
|
|
|
|
required int connectionInitialTimeoutMs,
|
|
|
|
}) = _VeilidConfigTLS;
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
factory VeilidConfigTLS.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigTLSFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigDHT with _$VeilidConfigDHT {
|
|
|
|
const factory VeilidConfigDHT(
|
|
|
|
{required int resolveNodeTimeoutMs,
|
|
|
|
required int resolveNodeCount,
|
|
|
|
required int resolveNodeFanout,
|
|
|
|
required int maxFindNodeCount,
|
|
|
|
required int getValueTimeoutMs,
|
|
|
|
required int getValueCount,
|
|
|
|
required int getValueFanout,
|
|
|
|
required int setValueTimeoutMs,
|
|
|
|
required int setValueCount,
|
|
|
|
required int setValueFanout,
|
|
|
|
required int minPeerCount,
|
|
|
|
required int minPeerRefreshTimeMs,
|
|
|
|
required int validateDialInfoReceiptTimeMs,
|
|
|
|
required int localSubkeyCacheSize,
|
|
|
|
required int localMaxSubkeyCacheMemoryMb,
|
|
|
|
required int remoteSubkeyCacheSize,
|
|
|
|
required int remoteMaxRecords,
|
|
|
|
required int remoteMaxSubkeyCacheMemoryMb,
|
|
|
|
required int remoteMaxStorageSpaceMb}) = _VeilidConfigDHT;
|
|
|
|
|
|
|
|
factory VeilidConfigDHT.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigDHTFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigRPC with _$VeilidConfigRPC {
|
|
|
|
const factory VeilidConfigRPC(
|
|
|
|
{required int concurrency,
|
|
|
|
required int queueSize,
|
|
|
|
int? maxTimestampBehindMs,
|
|
|
|
int? maxTimestampAheadMs,
|
|
|
|
required int timeoutMs,
|
|
|
|
required int maxRouteHopCount,
|
|
|
|
required int defaultRouteHopCount}) = _VeilidConfigRPC;
|
|
|
|
|
|
|
|
factory VeilidConfigRPC.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigRPCFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigRoutingTable with _$VeilidConfigRoutingTable {
|
|
|
|
const factory VeilidConfigRoutingTable({
|
|
|
|
required List<TypedKey> nodeId,
|
|
|
|
required List<TypedSecret> nodeIdSecret,
|
|
|
|
required List<String> bootstrap,
|
|
|
|
required int limitOverAttached,
|
|
|
|
required int limitFullyAttached,
|
|
|
|
required int limitAttachedStrong,
|
|
|
|
required int limitAttachedGood,
|
|
|
|
required int limitAttachedWeak,
|
|
|
|
}) = _VeilidConfigRoutingTable;
|
|
|
|
|
|
|
|
factory VeilidConfigRoutingTable.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigRoutingTableFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigNetwork with _$VeilidConfigNetwork {
|
|
|
|
const factory VeilidConfigNetwork({
|
|
|
|
required int connectionInitialTimeoutMs,
|
|
|
|
required int connectionInactivityTimeoutMs,
|
|
|
|
required int maxConnectionsPerIp4,
|
|
|
|
required int maxConnectionsPerIp6Prefix,
|
|
|
|
required int maxConnectionsPerIp6PrefixSize,
|
|
|
|
required int maxConnectionFrequencyPerMin,
|
|
|
|
required int clientWhitelistTimeoutMs,
|
|
|
|
required int reverseConnectionReceiptTimeMs,
|
|
|
|
required int holePunchReceiptTimeMs,
|
|
|
|
String? networkKeyPassword,
|
|
|
|
required VeilidConfigRoutingTable routingTable,
|
|
|
|
required VeilidConfigRPC rpc,
|
|
|
|
required VeilidConfigDHT dht,
|
|
|
|
required bool upnp,
|
|
|
|
required bool detectAddressChanges,
|
|
|
|
required int restrictedNatRetries,
|
|
|
|
required VeilidConfigTLS tls,
|
|
|
|
required VeilidConfigApplication application,
|
|
|
|
required VeilidConfigProtocol protocol,
|
|
|
|
}) = _VeilidConfigNetwork;
|
|
|
|
|
|
|
|
factory VeilidConfigNetwork.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigNetworkFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigTableStore with _$VeilidConfigTableStore {
|
|
|
|
const factory VeilidConfigTableStore({
|
|
|
|
required String directory,
|
|
|
|
required bool delete,
|
|
|
|
}) = _VeilidConfigTableStore;
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
factory VeilidConfigTableStore.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigTableStoreFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigBlockStore with _$VeilidConfigBlockStore {
|
|
|
|
const factory VeilidConfigBlockStore({
|
|
|
|
required String directory,
|
|
|
|
required bool delete,
|
|
|
|
}) = _VeilidConfigBlockStore;
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
factory VeilidConfigBlockStore.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigBlockStoreFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigProtectedStore with _$VeilidConfigProtectedStore {
|
|
|
|
const factory VeilidConfigProtectedStore(
|
|
|
|
{required bool allowInsecureFallback,
|
|
|
|
required bool alwaysUseInsecureStorage,
|
|
|
|
required String directory,
|
|
|
|
required bool delete,
|
|
|
|
required String deviceEncryptionKeyPassword,
|
|
|
|
String? newDeviceEncryptionKeyPassword}) = _VeilidConfigProtectedStore;
|
|
|
|
|
|
|
|
factory VeilidConfigProtectedStore.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigProtectedStoreFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfigCapabilities with _$VeilidConfigCapabilities {
|
|
|
|
const factory VeilidConfigCapabilities({
|
|
|
|
required List<String> disable,
|
|
|
|
}) = _VeilidConfigCapabilities;
|
2023-05-29 19:24:57 +00:00
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
factory VeilidConfigCapabilities.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigCapabilitiesFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
////////////
|
|
|
|
|
2023-07-05 22:48:06 +00:00
|
|
|
@freezed
|
|
|
|
class VeilidConfig with _$VeilidConfig {
|
|
|
|
const factory VeilidConfig({
|
|
|
|
required String programName,
|
|
|
|
required String namespace,
|
|
|
|
required VeilidConfigCapabilities capabilities,
|
|
|
|
required VeilidConfigProtectedStore protectedStore,
|
|
|
|
required VeilidConfigTableStore tableStore,
|
|
|
|
required VeilidConfigBlockStore blockStore,
|
|
|
|
required VeilidConfigNetwork network,
|
|
|
|
}) = _VeilidConfig;
|
|
|
|
|
|
|
|
factory VeilidConfig.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$VeilidConfigFromJson(json);
|
2023-05-29 19:24:57 +00:00
|
|
|
}
|