diff --git a/veilid-core/src/api_tracing_layer.rs b/veilid-core/src/api_tracing_layer.rs index 44b9b67a..a774748c 100644 --- a/veilid-core/src/api_tracing_layer.rs +++ b/veilid-core/src/api_tracing_layer.rs @@ -47,6 +47,19 @@ impl ApiTracingLayer { } } +fn simplify_file(file: &str) -> String { + let path = std::path::Path::new(file); + let path_component_count = path.iter().count(); + if path.ends_with("mod.rs") && path_component_count >= 2 { + let outpath: std::path::PathBuf = path.iter().skip(path_component_count - 2).collect(); + outpath.to_string_lossy().to_string() + } else if let Some(filename) = path.file_name() { + filename.to_string_lossy().to_string() + } else { + file.to_string() + } +} + impl registry::LookupSpan<'a>> Layer for ApiTracingLayer { fn on_new_span( &self, @@ -86,15 +99,39 @@ impl registry::LookupSpan<'a>> Layer for ApiTracingLa let mut recorder = StringRecorder::new(); event.record(&mut recorder); let meta = event.metadata(); - let level = meta.level(); - let log_level = VeilidLogLevel::from_tracing_level(*level); + let level = *meta.level(); + let target = meta.target(); + let log_level = VeilidLogLevel::from_tracing_level(level); - let origin = meta - .file() - .and_then(|file| meta.line().map(|ln| format!("{}:{}", file, ln))) - .unwrap_or_default(); + let origin = match level { + Level::ERROR | Level::WARN => meta + .file() + .and_then(|file| { + meta.line() + .map(|ln| format!("{}:{}", simplify_file(file), ln)) + }) + .unwrap_or_default(), + Level::INFO => "".to_owned(), + Level::DEBUG | Level::TRACE => meta + .file() + .and_then(|file| { + meta.line().map(|ln| { + format!( + "{}{}:{}", + if target.is_empty() { + "".to_owned() + } else { + format!("[{}]", target) + }, + simplify_file(file), + ln + ) + }) + }) + .unwrap_or_default(), + }; - let message = format!("{} {}", origin, recorder); + let message = format!("{}{}", origin, recorder).trim().to_owned(); let backtrace = if log_level <= VeilidLogLevel::Error { let bt = backtrace::Backtrace::new(); diff --git a/veilid-core/src/rpc_processor/mod.rs b/veilid-core/src/rpc_processor/mod.rs index 6994f2d1..6a0093f2 100644 --- a/veilid-core/src/rpc_processor/mod.rs +++ b/veilid-core/src/rpc_processor/mod.rs @@ -373,7 +373,7 @@ impl RPCProcessor { #[instrument(level = "debug", skip_all, err)] pub async fn startup(&self) -> EyreResult<()> { - debug!("startup rpc processor"); + log_rpc!(debug "startup rpc processor"); { let mut inner = self.inner.lock(); @@ -382,7 +382,7 @@ impl RPCProcessor { inner.stop_source = Some(StopSource::new()); // spin up N workers - trace!( + log_rpc!( "Spinning up {} RPC workers", self.unlocked_inner.concurrency ); @@ -408,7 +408,7 @@ impl RPCProcessor { #[instrument(level = "debug", skip_all)] pub async fn shutdown(&self) { - debug!("starting rpc processor shutdown"); + log_rpc!(debug "starting rpc processor shutdown"); // Stop storage manager from using us self.storage_manager.set_rpc_processor(None).await; @@ -424,17 +424,17 @@ impl RPCProcessor { // drop the stop drop(inner.stop_source.take()); } - debug!("stopping {} rpc worker tasks", unord.len()); + log_rpc!(debug "stopping {} rpc worker tasks", unord.len()); // Wait for them to complete while unord.next().await.is_some() {} - debug!("resetting rpc processor state"); + log_rpc!(debug "resetting rpc processor state"); // Release the rpc processor *self.inner.lock() = Self::new_inner(); - debug!("finished rpc processor shutdown"); + log_rpc!(debug "finished rpc processor shutdown"); } ////////////////////////////////////////////////////////////////////// diff --git a/veilid-core/src/veilid_api/api.rs b/veilid-core/src/veilid_api/api.rs index 2b0ff7fe..2c55cf80 100644 --- a/veilid-core/src/veilid_api/api.rs +++ b/veilid-core/src/veilid_api/api.rs @@ -41,6 +41,8 @@ pub struct VeilidAPI { impl VeilidAPI { #[instrument(target = "veilid_api", level = "debug", skip_all)] pub(crate) fn new(context: VeilidCoreContext) -> Self { + event!(target: "veilid_api", Level::DEBUG, + "VeilidAPI::new()"); Self { inner: Arc::new(Mutex::new(VeilidAPIInner { context: Some(context), @@ -51,6 +53,8 @@ impl VeilidAPI { /// Shut down Veilid and terminate the API #[instrument(target = "veilid_api", level = "debug", skip_all)] pub async fn shutdown(self) { + event!(target: "veilid_api", Level::DEBUG, + "VeilidAPI::shutdown()"); let context = { self.inner.lock().context.take() }; if let Some(context) = context { api_shutdown(context).await; @@ -168,8 +172,11 @@ impl VeilidAPI { } /// Connect to the network - #[instrument(target = "veilid_api", level = "debug", skip_all)] + #[instrument(target = "veilid_api", level = "debug", skip_all, ret, err)] pub async fn attach(&self) -> VeilidAPIResult<()> { + event!(target: "veilid_api", Level::DEBUG, + "VeilidAPI::attach()"); + let attachment_manager = self.attachment_manager()?; if !attachment_manager.attach().await { apibail_generic!("Already attached"); @@ -178,8 +185,11 @@ impl VeilidAPI { } /// Disconnect from the network - #[instrument(target = "veilid_api", level = "debug", skip_all)] + #[instrument(target = "veilid_api", level = "debug", skip_all, ret, err)] pub async fn detach(&self) -> VeilidAPIResult<()> { + event!(target: "veilid_api", Level::DEBUG, + "VeilidAPI::detach()"); + let attachment_manager = self.attachment_manager()?; if !attachment_manager.detach().await { apibail_generic!("Already detached"); @@ -193,6 +203,9 @@ impl VeilidAPI { /// Get a new `RoutingContext` object to use to send messages over the Veilid network. #[instrument(target = "veilid_api", level = "debug", skip_all, err, ret)] pub fn routing_context(&self) -> VeilidAPIResult { + event!(target: "veilid_api", Level::DEBUG, + "VeilidAPI::routing_context()"); + RoutingContext::try_new(self.clone()) } @@ -207,6 +220,9 @@ impl VeilidAPI { pub async fn parse_as_target(&self, s: S) -> VeilidAPIResult { let s = s.to_string(); + event!(target: "veilid_api", Level::DEBUG, + "VeilidAPI::parse_as_target(s: {:?})", s); + // Is this a route id? if let Ok(rrid) = RouteId::from_str(&s) { let routing_table = self.routing_table()?; @@ -258,6 +274,12 @@ impl VeilidAPI { stability: Stability, sequencing: Sequencing, ) -> VeilidAPIResult<(RouteId, Vec)> { + event!(target: "veilid_api", Level::DEBUG, + "VeilidAPI::new_custom_private_route(crypto_kinds: {:?}, stability: {:?}, sequencing: {:?})", + crypto_kinds, + stability, + sequencing); + for kind in crypto_kinds { Crypto::validate_crypto_kind(*kind)?; } @@ -301,6 +323,8 @@ impl VeilidAPI { /// Returns a route id that can be used to send private messages to the node creating this route. #[instrument(target = "veilid_api", level = "debug", skip(self), ret, err)] pub fn import_remote_private_route(&self, blob: Vec) -> VeilidAPIResult { + event!(target: "veilid_api", Level::DEBUG, + "VeilidAPI::import_remote_private_route(blob: {:?})", blob); let rss = self.routing_table()?.route_spec_store(); rss.import_remote_private_route_blob(blob) } @@ -311,6 +335,8 @@ impl VeilidAPI { /// or received from. #[instrument(target = "veilid_api", level = "debug", skip(self), ret, err)] pub fn release_private_route(&self, route_id: RouteId) -> VeilidAPIResult<()> { + event!(target: "veilid_api", Level::DEBUG, + "VeilidAPI::release_private_route(route_id: {:?})", route_id); let rss = self.routing_table()?.route_spec_store(); if !rss.release_route(route_id) { apibail_invalid_argument!("release_private_route", "key", route_id); @@ -331,6 +357,9 @@ impl VeilidAPI { call_id: OperationId, message: Vec, ) -> VeilidAPIResult<()> { + event!(target: "veilid_api", Level::DEBUG, + "VeilidAPI::app_call_reply(call_id: {:?}, message: {:?})", call_id, message); + let rpc_processor = self.rpc_processor()?; rpc_processor .app_call_reply(call_id, message) diff --git a/veilid-core/src/veilid_api/routing_context.rs b/veilid-core/src/veilid_api/routing_context.rs index 3c1eff90..15f94c0f 100644 --- a/veilid-core/src/veilid_api/routing_context.rs +++ b/veilid-core/src/veilid_api/routing_context.rs @@ -74,6 +74,9 @@ impl RoutingContext { /// To customize the safety selection in use, use [RoutingContext::with_safety()]. #[instrument(target = "veilid_api", level = "debug", ret, err)] pub fn with_default_safety(self) -> VeilidAPIResult { + event!(target: "veilid_api", Level::DEBUG, + "RoutingContext::with_default_safety(self: {:?})", self); + let config = self.api.config()?; let c = config.get(); @@ -88,6 +91,9 @@ impl RoutingContext { /// Use a custom [SafetySelection]. Can be used to disable safety via [SafetySelection::Unsafe] #[instrument(target = "veilid_api", level = "debug", ret, err)] pub fn with_safety(self, safety_selection: SafetySelection) -> VeilidAPIResult { + event!(target: "veilid_api", Level::DEBUG, + "RoutingContext::with_safety(self: {:?}, safety_selection: {:?})", self, safety_selection); + Ok(Self { api: self.api.clone(), inner: Arc::new(Mutex::new(RoutingContextInner {})), @@ -98,6 +104,9 @@ impl RoutingContext { /// Use a specified [Sequencing] preference, with or without privacy #[instrument(target = "veilid_api", level = "debug", ret)] pub fn with_sequencing(self, sequencing: Sequencing) -> Self { + event!(target: "veilid_api", Level::DEBUG, + "RoutingContext::with_sequencing(self: {:?}, sequencing: {:?})", self, sequencing); + Self { api: self.api.clone(), inner: Arc::new(Mutex::new(RoutingContextInner {})), @@ -134,6 +143,9 @@ impl RoutingContext { #[instrument(target = "veilid_api", level = "debug", ret, err)] async fn get_destination(&self, target: Target) -> VeilidAPIResult { + event!(target: "veilid_api", Level::DEBUG, + "RoutingContext::get_destination(self: {:?}, target: {:?})", self, target); + let rpc_processor = self.api.rpc_processor()?; rpc_processor .resolve_target_to_destination(target, self.unlocked_inner.safety_selection) @@ -154,6 +166,9 @@ impl RoutingContext { /// Returns an answer blob of up to 32768 bytes #[instrument(target = "veilid_api", level = "debug", ret, err)] pub async fn app_call(&self, target: Target, message: Vec) -> VeilidAPIResult> { + event!(target: "veilid_api", Level::DEBUG, + "RoutingContext::app_call(self: {:?}, target: {:?}, message: {:?})", self, target, message); + let rpc_processor = self.api.rpc_processor()?; // Get destination @@ -185,6 +200,9 @@ impl RoutingContext { /// * `message` - an arbitrary message blob of up to 32768 bytes #[instrument(target = "veilid_api", level = "debug", ret, err)] pub async fn app_message(&self, target: Target, message: Vec) -> VeilidAPIResult<()> { + event!(target: "veilid_api", Level::DEBUG, + "RoutingContext::app_message(self: {:?}, target: {:?}, message: {:?})", self, target, message); + let rpc_processor = self.api.rpc_processor()?; // Get destination @@ -221,6 +239,9 @@ impl RoutingContext { schema: DHTSchema, kind: Option, ) -> VeilidAPIResult { + event!(target: "veilid_api", Level::DEBUG, + "RoutingContext::create_dht_record(self: {:?}, schema: {:?}, kind: {:?})", self, schema, kind); + let kind = kind.unwrap_or(best_crypto_kind()); Crypto::validate_crypto_kind(kind)?; let storage_manager = self.api.storage_manager()?; @@ -246,6 +267,9 @@ impl RoutingContext { key: TypedKey, default_writer: Option, ) -> VeilidAPIResult { + event!(target: "veilid_api", Level::DEBUG, + "RoutingContext::open_dht_record(self: {:?}, key: {:?}, default_writer: {:?})", self, key, default_writer); + Crypto::validate_crypto_kind(key.kind)?; let storage_manager = self.api.storage_manager()?; storage_manager @@ -258,6 +282,9 @@ impl RoutingContext { /// Closing a record allows you to re-open it with a different routing context #[instrument(target = "veilid_api", level = "debug", ret, err)] pub async fn close_dht_record(&self, key: TypedKey) -> VeilidAPIResult<()> { + event!(target: "veilid_api", Level::DEBUG, + "RoutingContext::close_dht_record(self: {:?}, key: {:?})", self, key); + Crypto::validate_crypto_kind(key.kind)?; let storage_manager = self.api.storage_manager()?; storage_manager.close_record(key).await @@ -270,6 +297,9 @@ impl RoutingContext { /// locally, and will prevent its value from being refreshed on the network by this node. #[instrument(target = "veilid_api", level = "debug", ret, err)] pub async fn delete_dht_record(&self, key: TypedKey) -> VeilidAPIResult<()> { + event!(target: "veilid_api", Level::DEBUG, + "RoutingContext::delete_dht_record(self: {:?}, key: {:?})", self, key); + Crypto::validate_crypto_kind(key.kind)?; let storage_manager = self.api.storage_manager()?; storage_manager.delete_record(key).await @@ -288,6 +318,9 @@ impl RoutingContext { subkey: ValueSubkey, force_refresh: bool, ) -> VeilidAPIResult> { + event!(target: "veilid_api", Level::DEBUG, + "RoutingContext::get_dht_value(self: {:?}, key: {:?}, subkey: {:?}, force_refresh: {:?})", self, key, subkey, force_refresh); + Crypto::validate_crypto_kind(key.kind)?; let storage_manager = self.api.storage_manager()?; storage_manager.get_value(key, subkey, force_refresh).await @@ -308,6 +341,9 @@ impl RoutingContext { data: Vec, writer: Option, ) -> VeilidAPIResult> { + event!(target: "veilid_api", Level::DEBUG, + "RoutingContext::set_dht_value(self: {:?}, key: {:?}, subkey: {:?}, data: {:?}, writer: {:?})", self, key, subkey, data, writer); + Crypto::validate_crypto_kind(key.kind)?; let storage_manager = self.api.storage_manager()?; storage_manager.set_value(key, subkey, data, writer).await @@ -340,6 +376,9 @@ impl RoutingContext { expiration: Timestamp, count: u32, ) -> VeilidAPIResult { + event!(target: "veilid_api", Level::DEBUG, + "RoutingContext::watch_dht_values(self: {:?}, key: {:?}, subkeys: {:?}, expiration: {:?}, count: {:?})", self, key, subkeys, expiration, count); + Crypto::validate_crypto_kind(key.kind)?; let storage_manager = self.api.storage_manager()?; storage_manager @@ -358,6 +397,9 @@ impl RoutingContext { key: TypedKey, subkeys: ValueSubkeyRangeSet, ) -> VeilidAPIResult { + event!(target: "veilid_api", Level::DEBUG, + "RoutingContext::cancel_dht_watch(self: {:?}, key: {:?}, subkeys: {:?}", self, key, subkeys); + Crypto::validate_crypto_kind(key.kind)?; let storage_manager = self.api.storage_manager()?; storage_manager.cancel_watch_values(key, subkeys).await diff --git a/veilid-core/src/veilid_layer_filter.rs b/veilid-core/src/veilid_layer_filter.rs index 73e02a85..27305e68 100644 --- a/veilid-core/src/veilid_layer_filter.rs +++ b/veilid-core/src/veilid_layer_filter.rs @@ -16,13 +16,25 @@ pub struct VeilidLayerFilter { impl VeilidLayerFilter { pub fn new( max_level: VeilidConfigLogLevel, - ignore_list: Option>, + ignore_log_targets: &[String], ) -> VeilidLayerFilter { + let mut ignore_list = DEFAULT_LOG_IGNORE_LIST.map(|x| x.to_owned()).to_vec(); + for igedit in ignore_log_targets { + if let Some(rest) = igedit.strip_prefix('-') { + for i in 0..ignore_list.len() { + if ignore_list[i] == rest { + ignore_list.remove(i); + break; + } + } + } else { + ignore_list.push(igedit.clone()); + } + } Self { inner: Arc::new(RwLock::new(VeilidLayerFilterInner { max_level: max_level.to_tracing_level_filter(), - ignore_list: ignore_list - .unwrap_or_else(|| DEFAULT_LOG_IGNORE_LIST.map(|x| x.to_owned()).to_vec()), + ignore_list, })), } } diff --git a/veilid-flutter/example/lib/veilid_init.dart b/veilid-flutter/example/lib/veilid_init.dart index 316b77aa..70b78fbb 100644 --- a/veilid-flutter/example/lib/veilid_init.dart +++ b/veilid-flutter/example/lib/veilid_init.dart @@ -11,24 +11,30 @@ void veilidInit() { enabled: true, level: VeilidConfigLogLevel.debug, logsInTimings: true, - logsInConsole: false), + logsInConsole: false, + ignoreLogTargets: []), api: VeilidWASMConfigLoggingApi( - enabled: true, level: VeilidConfigLogLevel.info))); + enabled: true, + level: VeilidConfigLogLevel.info, + ignoreLogTargets: []))); Veilid.instance.initializeVeilidCore(platformConfig.toJson()); } else { var platformConfig = const VeilidFFIConfig( logging: VeilidFFIConfigLogging( terminal: VeilidFFIConfigLoggingTerminal( - enabled: false, - level: VeilidConfigLogLevel.debug, - ), + enabled: false, + level: VeilidConfigLogLevel.debug, + ignoreLogTargets: []), otlp: VeilidFFIConfigLoggingOtlp( enabled: false, level: VeilidConfigLogLevel.trace, grpcEndpoint: "localhost:4317", - serviceName: "VeilidExample"), + serviceName: "VeilidExample", + ignoreLogTargets: []), api: VeilidFFIConfigLoggingApi( - enabled: true, level: VeilidConfigLogLevel.info))); + enabled: true, + level: VeilidConfigLogLevel.info, + ignoreLogTargets: []))); Veilid.instance.initializeVeilidCore(platformConfig.toJson()); } } diff --git a/veilid-flutter/lib/routing_context.freezed.dart b/veilid-flutter/lib/routing_context.freezed.dart index ff438784..11ef53fd 100644 --- a/veilid-flutter/lib/routing_context.freezed.dart +++ b/veilid-flutter/lib/routing_context.freezed.dart @@ -12,7 +12,7 @@ part of 'routing_context.dart'; T _$identity(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'); + '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#adding-getters-and-methods-to-our-models'); DHTSchema _$DHTSchemaFromJson(Map json) { switch (json['kind']) { @@ -107,22 +107,22 @@ class _$DHTSchemaCopyWithImpl<$Res, $Val extends DHTSchema> } /// @nodoc -abstract class _$$DHTSchemaDFLTCopyWith<$Res> +abstract class _$$DHTSchemaDFLTImplCopyWith<$Res> implements $DHTSchemaCopyWith<$Res> { - factory _$$DHTSchemaDFLTCopyWith( - _$DHTSchemaDFLT value, $Res Function(_$DHTSchemaDFLT) then) = - __$$DHTSchemaDFLTCopyWithImpl<$Res>; + factory _$$DHTSchemaDFLTImplCopyWith( + _$DHTSchemaDFLTImpl value, $Res Function(_$DHTSchemaDFLTImpl) then) = + __$$DHTSchemaDFLTImplCopyWithImpl<$Res>; @override @useResult $Res call({int oCnt}); } /// @nodoc -class __$$DHTSchemaDFLTCopyWithImpl<$Res> - extends _$DHTSchemaCopyWithImpl<$Res, _$DHTSchemaDFLT> - implements _$$DHTSchemaDFLTCopyWith<$Res> { - __$$DHTSchemaDFLTCopyWithImpl( - _$DHTSchemaDFLT _value, $Res Function(_$DHTSchemaDFLT) _then) +class __$$DHTSchemaDFLTImplCopyWithImpl<$Res> + extends _$DHTSchemaCopyWithImpl<$Res, _$DHTSchemaDFLTImpl> + implements _$$DHTSchemaDFLTImplCopyWith<$Res> { + __$$DHTSchemaDFLTImplCopyWithImpl( + _$DHTSchemaDFLTImpl _value, $Res Function(_$DHTSchemaDFLTImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -130,7 +130,7 @@ class __$$DHTSchemaDFLTCopyWithImpl<$Res> $Res call({ Object? oCnt = null, }) { - return _then(_$DHTSchemaDFLT( + return _then(_$DHTSchemaDFLTImpl( oCnt: null == oCnt ? _value.oCnt : oCnt // ignore: cast_nullable_to_non_nullable @@ -141,12 +141,12 @@ class __$$DHTSchemaDFLTCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$DHTSchemaDFLT implements DHTSchemaDFLT { - const _$DHTSchemaDFLT({required this.oCnt, final String? $type}) +class _$DHTSchemaDFLTImpl implements DHTSchemaDFLT { + const _$DHTSchemaDFLTImpl({required this.oCnt, final String? $type}) : $type = $type ?? 'DFLT'; - factory _$DHTSchemaDFLT.fromJson(Map json) => - _$$DHTSchemaDFLTFromJson(json); + factory _$DHTSchemaDFLTImpl.fromJson(Map json) => + _$$DHTSchemaDFLTImplFromJson(json); @override final int oCnt; @@ -160,10 +160,10 @@ class _$DHTSchemaDFLT implements DHTSchemaDFLT { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$DHTSchemaDFLT && + other is _$DHTSchemaDFLTImpl && (identical(other.oCnt, oCnt) || other.oCnt == oCnt)); } @@ -174,8 +174,8 @@ class _$DHTSchemaDFLT implements DHTSchemaDFLT { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$DHTSchemaDFLTCopyWith<_$DHTSchemaDFLT> get copyWith => - __$$DHTSchemaDFLTCopyWithImpl<_$DHTSchemaDFLT>(this, _$identity); + _$$DHTSchemaDFLTImplCopyWith<_$DHTSchemaDFLTImpl> get copyWith => + __$$DHTSchemaDFLTImplCopyWithImpl<_$DHTSchemaDFLTImpl>(this, _$identity); @override @optionalTypeArgs @@ -241,43 +241,43 @@ class _$DHTSchemaDFLT implements DHTSchemaDFLT { @override Map toJson() { - return _$$DHTSchemaDFLTToJson( + return _$$DHTSchemaDFLTImplToJson( this, ); } } abstract class DHTSchemaDFLT implements DHTSchema { - const factory DHTSchemaDFLT({required final int oCnt}) = _$DHTSchemaDFLT; + const factory DHTSchemaDFLT({required final int oCnt}) = _$DHTSchemaDFLTImpl; factory DHTSchemaDFLT.fromJson(Map json) = - _$DHTSchemaDFLT.fromJson; + _$DHTSchemaDFLTImpl.fromJson; @override int get oCnt; @override @JsonKey(ignore: true) - _$$DHTSchemaDFLTCopyWith<_$DHTSchemaDFLT> get copyWith => + _$$DHTSchemaDFLTImplCopyWith<_$DHTSchemaDFLTImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$DHTSchemaSMPLCopyWith<$Res> +abstract class _$$DHTSchemaSMPLImplCopyWith<$Res> implements $DHTSchemaCopyWith<$Res> { - factory _$$DHTSchemaSMPLCopyWith( - _$DHTSchemaSMPL value, $Res Function(_$DHTSchemaSMPL) then) = - __$$DHTSchemaSMPLCopyWithImpl<$Res>; + factory _$$DHTSchemaSMPLImplCopyWith( + _$DHTSchemaSMPLImpl value, $Res Function(_$DHTSchemaSMPLImpl) then) = + __$$DHTSchemaSMPLImplCopyWithImpl<$Res>; @override @useResult $Res call({int oCnt, List members}); } /// @nodoc -class __$$DHTSchemaSMPLCopyWithImpl<$Res> - extends _$DHTSchemaCopyWithImpl<$Res, _$DHTSchemaSMPL> - implements _$$DHTSchemaSMPLCopyWith<$Res> { - __$$DHTSchemaSMPLCopyWithImpl( - _$DHTSchemaSMPL _value, $Res Function(_$DHTSchemaSMPL) _then) +class __$$DHTSchemaSMPLImplCopyWithImpl<$Res> + extends _$DHTSchemaCopyWithImpl<$Res, _$DHTSchemaSMPLImpl> + implements _$$DHTSchemaSMPLImplCopyWith<$Res> { + __$$DHTSchemaSMPLImplCopyWithImpl( + _$DHTSchemaSMPLImpl _value, $Res Function(_$DHTSchemaSMPLImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -286,7 +286,7 @@ class __$$DHTSchemaSMPLCopyWithImpl<$Res> Object? oCnt = null, Object? members = null, }) { - return _then(_$DHTSchemaSMPL( + return _then(_$DHTSchemaSMPLImpl( oCnt: null == oCnt ? _value.oCnt : oCnt // ignore: cast_nullable_to_non_nullable @@ -301,16 +301,16 @@ class __$$DHTSchemaSMPLCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$DHTSchemaSMPL implements DHTSchemaSMPL { - const _$DHTSchemaSMPL( +class _$DHTSchemaSMPLImpl implements DHTSchemaSMPL { + const _$DHTSchemaSMPLImpl( {required this.oCnt, required final List members, final String? $type}) : _members = members, $type = $type ?? 'SMPL'; - factory _$DHTSchemaSMPL.fromJson(Map json) => - _$$DHTSchemaSMPLFromJson(json); + factory _$DHTSchemaSMPLImpl.fromJson(Map json) => + _$$DHTSchemaSMPLImplFromJson(json); @override final int oCnt; @@ -331,10 +331,10 @@ class _$DHTSchemaSMPL implements DHTSchemaSMPL { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$DHTSchemaSMPL && + other is _$DHTSchemaSMPLImpl && (identical(other.oCnt, oCnt) || other.oCnt == oCnt) && const DeepCollectionEquality().equals(other._members, _members)); } @@ -347,8 +347,8 @@ class _$DHTSchemaSMPL implements DHTSchemaSMPL { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$DHTSchemaSMPLCopyWith<_$DHTSchemaSMPL> get copyWith => - __$$DHTSchemaSMPLCopyWithImpl<_$DHTSchemaSMPL>(this, _$identity); + _$$DHTSchemaSMPLImplCopyWith<_$DHTSchemaSMPLImpl> get copyWith => + __$$DHTSchemaSMPLImplCopyWithImpl<_$DHTSchemaSMPLImpl>(this, _$identity); @override @optionalTypeArgs @@ -414,7 +414,7 @@ class _$DHTSchemaSMPL implements DHTSchemaSMPL { @override Map toJson() { - return _$$DHTSchemaSMPLToJson( + return _$$DHTSchemaSMPLImplToJson( this, ); } @@ -423,17 +423,17 @@ class _$DHTSchemaSMPL implements DHTSchemaSMPL { abstract class DHTSchemaSMPL implements DHTSchema { const factory DHTSchemaSMPL( {required final int oCnt, - required final List members}) = _$DHTSchemaSMPL; + required final List members}) = _$DHTSchemaSMPLImpl; factory DHTSchemaSMPL.fromJson(Map json) = - _$DHTSchemaSMPL.fromJson; + _$DHTSchemaSMPLImpl.fromJson; @override int get oCnt; List get members; @override @JsonKey(ignore: true) - _$$DHTSchemaSMPLCopyWith<_$DHTSchemaSMPL> get copyWith => + _$$DHTSchemaSMPLImplCopyWith<_$DHTSchemaSMPLImpl> get copyWith => throw _privateConstructorUsedError; } @@ -491,22 +491,22 @@ class _$DHTSchemaMemberCopyWithImpl<$Res, $Val extends DHTSchemaMember> } /// @nodoc -abstract class _$$_DHTSchemaMemberCopyWith<$Res> +abstract class _$$DHTSchemaMemberImplCopyWith<$Res> implements $DHTSchemaMemberCopyWith<$Res> { - factory _$$_DHTSchemaMemberCopyWith( - _$_DHTSchemaMember value, $Res Function(_$_DHTSchemaMember) then) = - __$$_DHTSchemaMemberCopyWithImpl<$Res>; + factory _$$DHTSchemaMemberImplCopyWith(_$DHTSchemaMemberImpl value, + $Res Function(_$DHTSchemaMemberImpl) then) = + __$$DHTSchemaMemberImplCopyWithImpl<$Res>; @override @useResult $Res call({FixedEncodedString43 mKey, int mCnt}); } /// @nodoc -class __$$_DHTSchemaMemberCopyWithImpl<$Res> - extends _$DHTSchemaMemberCopyWithImpl<$Res, _$_DHTSchemaMember> - implements _$$_DHTSchemaMemberCopyWith<$Res> { - __$$_DHTSchemaMemberCopyWithImpl( - _$_DHTSchemaMember _value, $Res Function(_$_DHTSchemaMember) _then) +class __$$DHTSchemaMemberImplCopyWithImpl<$Res> + extends _$DHTSchemaMemberCopyWithImpl<$Res, _$DHTSchemaMemberImpl> + implements _$$DHTSchemaMemberImplCopyWith<$Res> { + __$$DHTSchemaMemberImplCopyWithImpl( + _$DHTSchemaMemberImpl _value, $Res Function(_$DHTSchemaMemberImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -515,7 +515,7 @@ class __$$_DHTSchemaMemberCopyWithImpl<$Res> Object? mKey = null, Object? mCnt = null, }) { - return _then(_$_DHTSchemaMember( + return _then(_$DHTSchemaMemberImpl( mKey: null == mKey ? _value.mKey : mKey // ignore: cast_nullable_to_non_nullable @@ -530,12 +530,12 @@ class __$$_DHTSchemaMemberCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_DHTSchemaMember implements _DHTSchemaMember { - const _$_DHTSchemaMember({required this.mKey, required this.mCnt}) +class _$DHTSchemaMemberImpl implements _DHTSchemaMember { + const _$DHTSchemaMemberImpl({required this.mKey, required this.mCnt}) : assert(mCnt > 0 && mCnt <= 65535, 'value out of range'); - factory _$_DHTSchemaMember.fromJson(Map json) => - _$$_DHTSchemaMemberFromJson(json); + factory _$DHTSchemaMemberImpl.fromJson(Map json) => + _$$DHTSchemaMemberImplFromJson(json); @override final FixedEncodedString43 mKey; @@ -548,10 +548,10 @@ class _$_DHTSchemaMember implements _DHTSchemaMember { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_DHTSchemaMember && + other is _$DHTSchemaMemberImpl && (identical(other.mKey, mKey) || other.mKey == mKey) && (identical(other.mCnt, mCnt) || other.mCnt == mCnt)); } @@ -563,12 +563,13 @@ class _$_DHTSchemaMember implements _DHTSchemaMember { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_DHTSchemaMemberCopyWith<_$_DHTSchemaMember> get copyWith => - __$$_DHTSchemaMemberCopyWithImpl<_$_DHTSchemaMember>(this, _$identity); + _$$DHTSchemaMemberImplCopyWith<_$DHTSchemaMemberImpl> get copyWith => + __$$DHTSchemaMemberImplCopyWithImpl<_$DHTSchemaMemberImpl>( + this, _$identity); @override Map toJson() { - return _$$_DHTSchemaMemberToJson( + return _$$DHTSchemaMemberImplToJson( this, ); } @@ -577,10 +578,10 @@ class _$_DHTSchemaMember implements _DHTSchemaMember { abstract class _DHTSchemaMember implements DHTSchemaMember { const factory _DHTSchemaMember( {required final FixedEncodedString43 mKey, - required final int mCnt}) = _$_DHTSchemaMember; + required final int mCnt}) = _$DHTSchemaMemberImpl; factory _DHTSchemaMember.fromJson(Map json) = - _$_DHTSchemaMember.fromJson; + _$DHTSchemaMemberImpl.fromJson; @override FixedEncodedString43 get mKey; @@ -588,7 +589,7 @@ abstract class _DHTSchemaMember implements DHTSchemaMember { int get mCnt; @override @JsonKey(ignore: true) - _$$_DHTSchemaMemberCopyWith<_$_DHTSchemaMember> get copyWith => + _$$DHTSchemaMemberImplCopyWith<_$DHTSchemaMemberImpl> get copyWith => throw _privateConstructorUsedError; } @@ -672,11 +673,11 @@ class _$DHTRecordDescriptorCopyWithImpl<$Res, $Val extends DHTRecordDescriptor> } /// @nodoc -abstract class _$$_DHTRecordDescriptorCopyWith<$Res> +abstract class _$$DHTRecordDescriptorImplCopyWith<$Res> implements $DHTRecordDescriptorCopyWith<$Res> { - factory _$$_DHTRecordDescriptorCopyWith(_$_DHTRecordDescriptor value, - $Res Function(_$_DHTRecordDescriptor) then) = - __$$_DHTRecordDescriptorCopyWithImpl<$Res>; + factory _$$DHTRecordDescriptorImplCopyWith(_$DHTRecordDescriptorImpl value, + $Res Function(_$DHTRecordDescriptorImpl) then) = + __$$DHTRecordDescriptorImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -690,11 +691,11 @@ abstract class _$$_DHTRecordDescriptorCopyWith<$Res> } /// @nodoc -class __$$_DHTRecordDescriptorCopyWithImpl<$Res> - extends _$DHTRecordDescriptorCopyWithImpl<$Res, _$_DHTRecordDescriptor> - implements _$$_DHTRecordDescriptorCopyWith<$Res> { - __$$_DHTRecordDescriptorCopyWithImpl(_$_DHTRecordDescriptor _value, - $Res Function(_$_DHTRecordDescriptor) _then) +class __$$DHTRecordDescriptorImplCopyWithImpl<$Res> + extends _$DHTRecordDescriptorCopyWithImpl<$Res, _$DHTRecordDescriptorImpl> + implements _$$DHTRecordDescriptorImplCopyWith<$Res> { + __$$DHTRecordDescriptorImplCopyWithImpl(_$DHTRecordDescriptorImpl _value, + $Res Function(_$DHTRecordDescriptorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -705,7 +706,7 @@ class __$$_DHTRecordDescriptorCopyWithImpl<$Res> Object? schema = null, Object? ownerSecret = freezed, }) { - return _then(_$_DHTRecordDescriptor( + return _then(_$DHTRecordDescriptorImpl( key: null == key ? _value.key : key // ignore: cast_nullable_to_non_nullable @@ -728,15 +729,15 @@ class __$$_DHTRecordDescriptorCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_DHTRecordDescriptor implements _DHTRecordDescriptor { - const _$_DHTRecordDescriptor( +class _$DHTRecordDescriptorImpl implements _DHTRecordDescriptor { + const _$DHTRecordDescriptorImpl( {required this.key, required this.owner, required this.schema, this.ownerSecret}); - factory _$_DHTRecordDescriptor.fromJson(Map json) => - _$$_DHTRecordDescriptorFromJson(json); + factory _$DHTRecordDescriptorImpl.fromJson(Map json) => + _$$DHTRecordDescriptorImplFromJson(json); @override final Typed key; @@ -753,10 +754,10 @@ class _$_DHTRecordDescriptor implements _DHTRecordDescriptor { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_DHTRecordDescriptor && + other is _$DHTRecordDescriptorImpl && (identical(other.key, key) || other.key == key) && (identical(other.owner, owner) || other.owner == owner) && (identical(other.schema, schema) || other.schema == schema) && @@ -771,13 +772,13 @@ class _$_DHTRecordDescriptor implements _DHTRecordDescriptor { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_DHTRecordDescriptorCopyWith<_$_DHTRecordDescriptor> get copyWith => - __$$_DHTRecordDescriptorCopyWithImpl<_$_DHTRecordDescriptor>( + _$$DHTRecordDescriptorImplCopyWith<_$DHTRecordDescriptorImpl> get copyWith => + __$$DHTRecordDescriptorImplCopyWithImpl<_$DHTRecordDescriptorImpl>( this, _$identity); @override Map toJson() { - return _$$_DHTRecordDescriptorToJson( + return _$$DHTRecordDescriptorImplToJson( this, ); } @@ -788,10 +789,10 @@ abstract class _DHTRecordDescriptor implements DHTRecordDescriptor { {required final Typed key, required final FixedEncodedString43 owner, required final DHTSchema schema, - final FixedEncodedString43? ownerSecret}) = _$_DHTRecordDescriptor; + final FixedEncodedString43? ownerSecret}) = _$DHTRecordDescriptorImpl; factory _DHTRecordDescriptor.fromJson(Map json) = - _$_DHTRecordDescriptor.fromJson; + _$DHTRecordDescriptorImpl.fromJson; @override Typed get key; @@ -803,7 +804,7 @@ abstract class _DHTRecordDescriptor implements DHTRecordDescriptor { FixedEncodedString43? get ownerSecret; @override @JsonKey(ignore: true) - _$$_DHTRecordDescriptorCopyWith<_$_DHTRecordDescriptor> get copyWith => + _$$DHTRecordDescriptorImplCopyWith<_$DHTRecordDescriptorImpl> get copyWith => throw _privateConstructorUsedError; } @@ -870,10 +871,11 @@ class _$ValueDataCopyWithImpl<$Res, $Val extends ValueData> } /// @nodoc -abstract class _$$_ValueDataCopyWith<$Res> implements $ValueDataCopyWith<$Res> { - factory _$$_ValueDataCopyWith( - _$_ValueData value, $Res Function(_$_ValueData) then) = - __$$_ValueDataCopyWithImpl<$Res>; +abstract class _$$ValueDataImplCopyWith<$Res> + implements $ValueDataCopyWith<$Res> { + factory _$$ValueDataImplCopyWith( + _$ValueDataImpl value, $Res Function(_$ValueDataImpl) then) = + __$$ValueDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -883,11 +885,11 @@ abstract class _$$_ValueDataCopyWith<$Res> implements $ValueDataCopyWith<$Res> { } /// @nodoc -class __$$_ValueDataCopyWithImpl<$Res> - extends _$ValueDataCopyWithImpl<$Res, _$_ValueData> - implements _$$_ValueDataCopyWith<$Res> { - __$$_ValueDataCopyWithImpl( - _$_ValueData _value, $Res Function(_$_ValueData) _then) +class __$$ValueDataImplCopyWithImpl<$Res> + extends _$ValueDataCopyWithImpl<$Res, _$ValueDataImpl> + implements _$$ValueDataImplCopyWith<$Res> { + __$$ValueDataImplCopyWithImpl( + _$ValueDataImpl _value, $Res Function(_$ValueDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -897,7 +899,7 @@ class __$$_ValueDataCopyWithImpl<$Res> Object? data = null, Object? writer = null, }) { - return _then(_$_ValueData( + return _then(_$ValueDataImpl( seq: null == seq ? _value.seq : seq // ignore: cast_nullable_to_non_nullable @@ -916,15 +918,15 @@ class __$$_ValueDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ValueData implements _ValueData { - const _$_ValueData( +class _$ValueDataImpl implements _ValueData { + const _$ValueDataImpl( {required this.seq, @Uint8ListJsonConverter.jsIsArray() required this.data, required this.writer}) : assert(seq >= 0, 'seq out of range'); - factory _$_ValueData.fromJson(Map json) => - _$$_ValueDataFromJson(json); + factory _$ValueDataImpl.fromJson(Map json) => + _$$ValueDataImplFromJson(json); @override final int seq; @@ -940,10 +942,10 @@ class _$_ValueData implements _ValueData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ValueData && + other is _$ValueDataImpl && (identical(other.seq, seq) || other.seq == seq) && const DeepCollectionEquality().equals(other.data, data) && (identical(other.writer, writer) || other.writer == writer)); @@ -957,12 +959,12 @@ class _$_ValueData implements _ValueData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ValueDataCopyWith<_$_ValueData> get copyWith => - __$$_ValueDataCopyWithImpl<_$_ValueData>(this, _$identity); + _$$ValueDataImplCopyWith<_$ValueDataImpl> get copyWith => + __$$ValueDataImplCopyWithImpl<_$ValueDataImpl>(this, _$identity); @override Map toJson() { - return _$$_ValueDataToJson( + return _$$ValueDataImplToJson( this, ); } @@ -972,10 +974,10 @@ abstract class _ValueData implements ValueData { const factory _ValueData( {required final int seq, @Uint8ListJsonConverter.jsIsArray() required final Uint8List data, - required final FixedEncodedString43 writer}) = _$_ValueData; + required final FixedEncodedString43 writer}) = _$ValueDataImpl; factory _ValueData.fromJson(Map json) = - _$_ValueData.fromJson; + _$ValueDataImpl.fromJson; @override int get seq; @@ -986,7 +988,7 @@ abstract class _ValueData implements ValueData { FixedEncodedString43 get writer; @override @JsonKey(ignore: true) - _$$_ValueDataCopyWith<_$_ValueData> get copyWith => + _$$ValueDataImplCopyWith<_$ValueDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1060,11 +1062,11 @@ class _$SafetySpecCopyWithImpl<$Res, $Val extends SafetySpec> } /// @nodoc -abstract class _$$_SafetySpecCopyWith<$Res> +abstract class _$$SafetySpecImplCopyWith<$Res> implements $SafetySpecCopyWith<$Res> { - factory _$$_SafetySpecCopyWith( - _$_SafetySpec value, $Res Function(_$_SafetySpec) then) = - __$$_SafetySpecCopyWithImpl<$Res>; + factory _$$SafetySpecImplCopyWith( + _$SafetySpecImpl value, $Res Function(_$SafetySpecImpl) then) = + __$$SafetySpecImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1075,11 +1077,11 @@ abstract class _$$_SafetySpecCopyWith<$Res> } /// @nodoc -class __$$_SafetySpecCopyWithImpl<$Res> - extends _$SafetySpecCopyWithImpl<$Res, _$_SafetySpec> - implements _$$_SafetySpecCopyWith<$Res> { - __$$_SafetySpecCopyWithImpl( - _$_SafetySpec _value, $Res Function(_$_SafetySpec) _then) +class __$$SafetySpecImplCopyWithImpl<$Res> + extends _$SafetySpecCopyWithImpl<$Res, _$SafetySpecImpl> + implements _$$SafetySpecImplCopyWith<$Res> { + __$$SafetySpecImplCopyWithImpl( + _$SafetySpecImpl _value, $Res Function(_$SafetySpecImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1090,7 +1092,7 @@ class __$$_SafetySpecCopyWithImpl<$Res> Object? sequencing = null, Object? preferredRoute = freezed, }) { - return _then(_$_SafetySpec( + return _then(_$SafetySpecImpl( hopCount: null == hopCount ? _value.hopCount : hopCount // ignore: cast_nullable_to_non_nullable @@ -1113,15 +1115,15 @@ class __$$_SafetySpecCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SafetySpec implements _SafetySpec { - const _$_SafetySpec( +class _$SafetySpecImpl implements _SafetySpec { + const _$SafetySpecImpl( {required this.hopCount, required this.stability, required this.sequencing, this.preferredRoute}); - factory _$_SafetySpec.fromJson(Map json) => - _$$_SafetySpecFromJson(json); + factory _$SafetySpecImpl.fromJson(Map json) => + _$$SafetySpecImplFromJson(json); @override final int hopCount; @@ -1138,10 +1140,10 @@ class _$_SafetySpec implements _SafetySpec { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SafetySpec && + other is _$SafetySpecImpl && (identical(other.hopCount, hopCount) || other.hopCount == hopCount) && (identical(other.stability, stability) || @@ -1160,12 +1162,12 @@ class _$_SafetySpec implements _SafetySpec { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SafetySpecCopyWith<_$_SafetySpec> get copyWith => - __$$_SafetySpecCopyWithImpl<_$_SafetySpec>(this, _$identity); + _$$SafetySpecImplCopyWith<_$SafetySpecImpl> get copyWith => + __$$SafetySpecImplCopyWithImpl<_$SafetySpecImpl>(this, _$identity); @override Map toJson() { - return _$$_SafetySpecToJson( + return _$$SafetySpecImplToJson( this, ); } @@ -1176,10 +1178,10 @@ abstract class _SafetySpec implements SafetySpec { {required final int hopCount, required final Stability stability, required final Sequencing sequencing, - final String? preferredRoute}) = _$_SafetySpec; + final String? preferredRoute}) = _$SafetySpecImpl; factory _SafetySpec.fromJson(Map json) = - _$_SafetySpec.fromJson; + _$SafetySpecImpl.fromJson; @override int get hopCount; @@ -1191,7 +1193,7 @@ abstract class _SafetySpec implements SafetySpec { String? get preferredRoute; @override @JsonKey(ignore: true) - _$$_SafetySpecCopyWith<_$_SafetySpec> get copyWith => + _$$SafetySpecImplCopyWith<_$SafetySpecImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1249,21 +1251,22 @@ class _$RouteBlobCopyWithImpl<$Res, $Val extends RouteBlob> } /// @nodoc -abstract class _$$_RouteBlobCopyWith<$Res> implements $RouteBlobCopyWith<$Res> { - factory _$$_RouteBlobCopyWith( - _$_RouteBlob value, $Res Function(_$_RouteBlob) then) = - __$$_RouteBlobCopyWithImpl<$Res>; +abstract class _$$RouteBlobImplCopyWith<$Res> + implements $RouteBlobCopyWith<$Res> { + factory _$$RouteBlobImplCopyWith( + _$RouteBlobImpl value, $Res Function(_$RouteBlobImpl) then) = + __$$RouteBlobImplCopyWithImpl<$Res>; @override @useResult $Res call({String routeId, @Uint8ListJsonConverter() Uint8List blob}); } /// @nodoc -class __$$_RouteBlobCopyWithImpl<$Res> - extends _$RouteBlobCopyWithImpl<$Res, _$_RouteBlob> - implements _$$_RouteBlobCopyWith<$Res> { - __$$_RouteBlobCopyWithImpl( - _$_RouteBlob _value, $Res Function(_$_RouteBlob) _then) +class __$$RouteBlobImplCopyWithImpl<$Res> + extends _$RouteBlobCopyWithImpl<$Res, _$RouteBlobImpl> + implements _$$RouteBlobImplCopyWith<$Res> { + __$$RouteBlobImplCopyWithImpl( + _$RouteBlobImpl _value, $Res Function(_$RouteBlobImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1272,7 +1275,7 @@ class __$$_RouteBlobCopyWithImpl<$Res> Object? routeId = null, Object? blob = null, }) { - return _then(_$_RouteBlob( + return _then(_$RouteBlobImpl( routeId: null == routeId ? _value.routeId : routeId // ignore: cast_nullable_to_non_nullable @@ -1287,12 +1290,12 @@ class __$$_RouteBlobCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_RouteBlob implements _RouteBlob { - const _$_RouteBlob( +class _$RouteBlobImpl implements _RouteBlob { + const _$RouteBlobImpl( {required this.routeId, @Uint8ListJsonConverter() required this.blob}); - factory _$_RouteBlob.fromJson(Map json) => - _$$_RouteBlobFromJson(json); + factory _$RouteBlobImpl.fromJson(Map json) => + _$$RouteBlobImplFromJson(json); @override final String routeId; @@ -1306,10 +1309,10 @@ class _$_RouteBlob implements _RouteBlob { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_RouteBlob && + other is _$RouteBlobImpl && (identical(other.routeId, routeId) || other.routeId == routeId) && const DeepCollectionEquality().equals(other.blob, blob)); } @@ -1322,12 +1325,12 @@ class _$_RouteBlob implements _RouteBlob { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_RouteBlobCopyWith<_$_RouteBlob> get copyWith => - __$$_RouteBlobCopyWithImpl<_$_RouteBlob>(this, _$identity); + _$$RouteBlobImplCopyWith<_$RouteBlobImpl> get copyWith => + __$$RouteBlobImplCopyWithImpl<_$RouteBlobImpl>(this, _$identity); @override Map toJson() { - return _$$_RouteBlobToJson( + return _$$RouteBlobImplToJson( this, ); } @@ -1335,11 +1338,12 @@ class _$_RouteBlob implements _RouteBlob { abstract class _RouteBlob implements RouteBlob { const factory _RouteBlob( - {required final String routeId, - @Uint8ListJsonConverter() required final Uint8List blob}) = _$_RouteBlob; + {required final String routeId, + @Uint8ListJsonConverter() required final Uint8List blob}) = + _$RouteBlobImpl; factory _RouteBlob.fromJson(Map json) = - _$_RouteBlob.fromJson; + _$RouteBlobImpl.fromJson; @override String get routeId; @@ -1348,6 +1352,6 @@ abstract class _RouteBlob implements RouteBlob { Uint8List get blob; @override @JsonKey(ignore: true) - _$$_RouteBlobCopyWith<_$_RouteBlob> get copyWith => + _$$RouteBlobImplCopyWith<_$RouteBlobImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/veilid-flutter/lib/routing_context.g.dart b/veilid-flutter/lib/routing_context.g.dart index 2b540a4c..eb42a636 100644 --- a/veilid-flutter/lib/routing_context.g.dart +++ b/veilid-flutter/lib/routing_context.g.dart @@ -6,20 +6,20 @@ part of 'routing_context.dart'; // JsonSerializableGenerator // ************************************************************************** -_$DHTSchemaDFLT _$$DHTSchemaDFLTFromJson(Map json) => - _$DHTSchemaDFLT( +_$DHTSchemaDFLTImpl _$$DHTSchemaDFLTImplFromJson(Map json) => + _$DHTSchemaDFLTImpl( oCnt: json['o_cnt'] as int, $type: json['kind'] as String?, ); -Map _$$DHTSchemaDFLTToJson(_$DHTSchemaDFLT instance) => +Map _$$DHTSchemaDFLTImplToJson(_$DHTSchemaDFLTImpl instance) => { 'o_cnt': instance.oCnt, 'kind': instance.$type, }; -_$DHTSchemaSMPL _$$DHTSchemaSMPLFromJson(Map json) => - _$DHTSchemaSMPL( +_$DHTSchemaSMPLImpl _$$DHTSchemaSMPLImplFromJson(Map json) => + _$DHTSchemaSMPLImpl( oCnt: json['o_cnt'] as int, members: (json['members'] as List) .map(DHTSchemaMember.fromJson) @@ -27,28 +27,30 @@ _$DHTSchemaSMPL _$$DHTSchemaSMPLFromJson(Map json) => $type: json['kind'] as String?, ); -Map _$$DHTSchemaSMPLToJson(_$DHTSchemaSMPL instance) => +Map _$$DHTSchemaSMPLImplToJson(_$DHTSchemaSMPLImpl instance) => { 'o_cnt': instance.oCnt, 'members': instance.members.map((e) => e.toJson()).toList(), 'kind': instance.$type, }; -_$_DHTSchemaMember _$$_DHTSchemaMemberFromJson(Map json) => - _$_DHTSchemaMember( +_$DHTSchemaMemberImpl _$$DHTSchemaMemberImplFromJson( + Map json) => + _$DHTSchemaMemberImpl( mKey: FixedEncodedString43.fromJson(json['m_key']), mCnt: json['m_cnt'] as int, ); -Map _$$_DHTSchemaMemberToJson(_$_DHTSchemaMember instance) => +Map _$$DHTSchemaMemberImplToJson( + _$DHTSchemaMemberImpl instance) => { 'm_key': instance.mKey.toJson(), 'm_cnt': instance.mCnt, }; -_$_DHTRecordDescriptor _$$_DHTRecordDescriptorFromJson( +_$DHTRecordDescriptorImpl _$$DHTRecordDescriptorImplFromJson( Map json) => - _$_DHTRecordDescriptor( + _$DHTRecordDescriptorImpl( key: Typed.fromJson(json['key']), owner: FixedEncodedString43.fromJson(json['owner']), schema: DHTSchema.fromJson(json['schema']), @@ -57,8 +59,8 @@ _$_DHTRecordDescriptor _$$_DHTRecordDescriptorFromJson( : FixedEncodedString43.fromJson(json['owner_secret']), ); -Map _$$_DHTRecordDescriptorToJson( - _$_DHTRecordDescriptor instance) => +Map _$$DHTRecordDescriptorImplToJson( + _$DHTRecordDescriptorImpl instance) => { 'key': instance.key.toJson(), 'owner': instance.owner.toJson(), @@ -66,28 +68,29 @@ Map _$$_DHTRecordDescriptorToJson( 'owner_secret': instance.ownerSecret?.toJson(), }; -_$_ValueData _$$_ValueDataFromJson(Map json) => _$_ValueData( +_$ValueDataImpl _$$ValueDataImplFromJson(Map json) => + _$ValueDataImpl( seq: json['seq'] as int, data: const Uint8ListJsonConverter.jsIsArray().fromJson(json['data']), writer: FixedEncodedString43.fromJson(json['writer']), ); -Map _$$_ValueDataToJson(_$_ValueData instance) => +Map _$$ValueDataImplToJson(_$ValueDataImpl instance) => { 'seq': instance.seq, 'data': const Uint8ListJsonConverter.jsIsArray().toJson(instance.data), 'writer': instance.writer.toJson(), }; -_$_SafetySpec _$$_SafetySpecFromJson(Map json) => - _$_SafetySpec( +_$SafetySpecImpl _$$SafetySpecImplFromJson(Map json) => + _$SafetySpecImpl( hopCount: json['hop_count'] as int, stability: Stability.fromJson(json['stability']), sequencing: Sequencing.fromJson(json['sequencing']), preferredRoute: json['preferred_route'] as String?, ); -Map _$$_SafetySpecToJson(_$_SafetySpec instance) => +Map _$$SafetySpecImplToJson(_$SafetySpecImpl instance) => { 'hop_count': instance.hopCount, 'stability': instance.stability.toJson(), @@ -95,12 +98,13 @@ Map _$$_SafetySpecToJson(_$_SafetySpec instance) => 'preferred_route': instance.preferredRoute, }; -_$_RouteBlob _$$_RouteBlobFromJson(Map json) => _$_RouteBlob( +_$RouteBlobImpl _$$RouteBlobImplFromJson(Map json) => + _$RouteBlobImpl( routeId: json['route_id'] as String, blob: const Uint8ListJsonConverter().fromJson(json['blob']), ); -Map _$$_RouteBlobToJson(_$_RouteBlob instance) => +Map _$$RouteBlobImplToJson(_$RouteBlobImpl instance) => { 'route_id': instance.routeId, 'blob': const Uint8ListJsonConverter().toJson(instance.blob), diff --git a/veilid-flutter/lib/veilid_config.dart b/veilid-flutter/lib/veilid_config.dart index cc34e6b5..8a0d6871 100644 --- a/veilid-flutter/lib/veilid_config.dart +++ b/veilid-flutter/lib/veilid_config.dart @@ -14,6 +14,7 @@ class VeilidFFIConfigLoggingTerminal with _$VeilidFFIConfigLoggingTerminal { const factory VeilidFFIConfigLoggingTerminal({ required bool enabled, required VeilidConfigLogLevel level, + @Default([]) List ignoreLogTargets, }) = _VeilidFFIConfigLoggingTerminal; factory VeilidFFIConfigLoggingTerminal.fromJson(dynamic json) => @@ -27,6 +28,7 @@ class VeilidFFIConfigLoggingOtlp with _$VeilidFFIConfigLoggingOtlp { required VeilidConfigLogLevel level, required String grpcEndpoint, required String serviceName, + @Default([]) List ignoreLogTargets, }) = _VeilidFFIConfigLoggingOtlp; factory VeilidFFIConfigLoggingOtlp.fromJson(dynamic json) => @@ -38,6 +40,7 @@ class VeilidFFIConfigLoggingApi with _$VeilidFFIConfigLoggingApi { const factory VeilidFFIConfigLoggingApi({ required bool enabled, required VeilidConfigLogLevel level, + @Default([]) List ignoreLogTargets, }) = _VeilidFFIConfigLoggingApi; factory VeilidFFIConfigLoggingApi.fromJson(dynamic json) => @@ -76,6 +79,7 @@ class VeilidWASMConfigLoggingPerformance required VeilidConfigLogLevel level, required bool logsInTimings, required bool logsInConsole, + @Default([]) List ignoreLogTargets, }) = _VeilidWASMConfigLoggingPerformance; factory VeilidWASMConfigLoggingPerformance.fromJson(dynamic json) => @@ -88,6 +92,7 @@ class VeilidWASMConfigLoggingApi with _$VeilidWASMConfigLoggingApi { const factory VeilidWASMConfigLoggingApi({ required bool enabled, required VeilidConfigLogLevel level, + @Default([]) List ignoreLogTargets, }) = _VeilidWASMConfigLoggingApi; factory VeilidWASMConfigLoggingApi.fromJson(dynamic json) => diff --git a/veilid-flutter/lib/veilid_config.freezed.dart b/veilid-flutter/lib/veilid_config.freezed.dart index 0f74d2d4..f7a00931 100644 --- a/veilid-flutter/lib/veilid_config.freezed.dart +++ b/veilid-flutter/lib/veilid_config.freezed.dart @@ -12,7 +12,7 @@ part of 'veilid_config.dart'; T _$identity(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'); + '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#adding-getters-and-methods-to-our-models'); VeilidFFIConfigLoggingTerminal _$VeilidFFIConfigLoggingTerminalFromJson( Map json) { @@ -23,6 +23,7 @@ VeilidFFIConfigLoggingTerminal _$VeilidFFIConfigLoggingTerminalFromJson( mixin _$VeilidFFIConfigLoggingTerminal { bool get enabled => throw _privateConstructorUsedError; VeilidConfigLogLevel get level => throw _privateConstructorUsedError; + List get ignoreLogTargets => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) @@ -38,7 +39,10 @@ abstract class $VeilidFFIConfigLoggingTerminalCopyWith<$Res> { _$VeilidFFIConfigLoggingTerminalCopyWithImpl<$Res, VeilidFFIConfigLoggingTerminal>; @useResult - $Res call({bool enabled, VeilidConfigLogLevel level}); + $Res call( + {bool enabled, + VeilidConfigLogLevel level, + List ignoreLogTargets}); } /// @nodoc @@ -57,6 +61,7 @@ class _$VeilidFFIConfigLoggingTerminalCopyWithImpl<$Res, $Res call({ Object? enabled = null, Object? level = null, + Object? ignoreLogTargets = null, }) { return _then(_value.copyWith( enabled: null == enabled @@ -67,30 +72,37 @@ class _$VeilidFFIConfigLoggingTerminalCopyWithImpl<$Res, ? _value.level : level // ignore: cast_nullable_to_non_nullable as VeilidConfigLogLevel, + ignoreLogTargets: null == ignoreLogTargets + ? _value.ignoreLogTargets + : ignoreLogTargets // ignore: cast_nullable_to_non_nullable + as List, ) as $Val); } } /// @nodoc -abstract class _$$_VeilidFFIConfigLoggingTerminalCopyWith<$Res> +abstract class _$$VeilidFFIConfigLoggingTerminalImplCopyWith<$Res> implements $VeilidFFIConfigLoggingTerminalCopyWith<$Res> { - factory _$$_VeilidFFIConfigLoggingTerminalCopyWith( - _$_VeilidFFIConfigLoggingTerminal value, - $Res Function(_$_VeilidFFIConfigLoggingTerminal) then) = - __$$_VeilidFFIConfigLoggingTerminalCopyWithImpl<$Res>; + factory _$$VeilidFFIConfigLoggingTerminalImplCopyWith( + _$VeilidFFIConfigLoggingTerminalImpl value, + $Res Function(_$VeilidFFIConfigLoggingTerminalImpl) then) = + __$$VeilidFFIConfigLoggingTerminalImplCopyWithImpl<$Res>; @override @useResult - $Res call({bool enabled, VeilidConfigLogLevel level}); + $Res call( + {bool enabled, + VeilidConfigLogLevel level, + List ignoreLogTargets}); } /// @nodoc -class __$$_VeilidFFIConfigLoggingTerminalCopyWithImpl<$Res> +class __$$VeilidFFIConfigLoggingTerminalImplCopyWithImpl<$Res> extends _$VeilidFFIConfigLoggingTerminalCopyWithImpl<$Res, - _$_VeilidFFIConfigLoggingTerminal> - implements _$$_VeilidFFIConfigLoggingTerminalCopyWith<$Res> { - __$$_VeilidFFIConfigLoggingTerminalCopyWithImpl( - _$_VeilidFFIConfigLoggingTerminal _value, - $Res Function(_$_VeilidFFIConfigLoggingTerminal) _then) + _$VeilidFFIConfigLoggingTerminalImpl> + implements _$$VeilidFFIConfigLoggingTerminalImplCopyWith<$Res> { + __$$VeilidFFIConfigLoggingTerminalImplCopyWithImpl( + _$VeilidFFIConfigLoggingTerminalImpl _value, + $Res Function(_$VeilidFFIConfigLoggingTerminalImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -98,8 +110,9 @@ class __$$_VeilidFFIConfigLoggingTerminalCopyWithImpl<$Res> $Res call({ Object? enabled = null, Object? level = null, + Object? ignoreLogTargets = null, }) { - return _then(_$_VeilidFFIConfigLoggingTerminal( + return _then(_$VeilidFFIConfigLoggingTerminalImpl( enabled: null == enabled ? _value.enabled : enabled // ignore: cast_nullable_to_non_nullable @@ -108,30 +121,46 @@ class __$$_VeilidFFIConfigLoggingTerminalCopyWithImpl<$Res> ? _value.level : level // ignore: cast_nullable_to_non_nullable as VeilidConfigLogLevel, + ignoreLogTargets: null == ignoreLogTargets + ? _value._ignoreLogTargets + : ignoreLogTargets // ignore: cast_nullable_to_non_nullable + as List, )); } } /// @nodoc @JsonSerializable() -class _$_VeilidFFIConfigLoggingTerminal +class _$VeilidFFIConfigLoggingTerminalImpl with DiagnosticableTreeMixin implements _VeilidFFIConfigLoggingTerminal { - const _$_VeilidFFIConfigLoggingTerminal( - {required this.enabled, required this.level}); + const _$VeilidFFIConfigLoggingTerminalImpl( + {required this.enabled, + required this.level, + final List ignoreLogTargets = const []}) + : _ignoreLogTargets = ignoreLogTargets; - factory _$_VeilidFFIConfigLoggingTerminal.fromJson( + factory _$VeilidFFIConfigLoggingTerminalImpl.fromJson( Map json) => - _$$_VeilidFFIConfigLoggingTerminalFromJson(json); + _$$VeilidFFIConfigLoggingTerminalImplFromJson(json); @override final bool enabled; @override final VeilidConfigLogLevel level; + final List _ignoreLogTargets; + @override + @JsonKey() + List get ignoreLogTargets { + if (_ignoreLogTargets is EqualUnmodifiableListView) + return _ignoreLogTargets; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(_ignoreLogTargets); + } @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { - return 'VeilidFFIConfigLoggingTerminal(enabled: $enabled, level: $level)'; + return 'VeilidFFIConfigLoggingTerminal(enabled: $enabled, level: $level, ignoreLogTargets: $ignoreLogTargets)'; } @override @@ -140,32 +169,37 @@ class _$_VeilidFFIConfigLoggingTerminal properties ..add(DiagnosticsProperty('type', 'VeilidFFIConfigLoggingTerminal')) ..add(DiagnosticsProperty('enabled', enabled)) - ..add(DiagnosticsProperty('level', level)); + ..add(DiagnosticsProperty('level', level)) + ..add(DiagnosticsProperty('ignoreLogTargets', ignoreLogTargets)); } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidFFIConfigLoggingTerminal && + other is _$VeilidFFIConfigLoggingTerminalImpl && (identical(other.enabled, enabled) || other.enabled == enabled) && - (identical(other.level, level) || other.level == level)); + (identical(other.level, level) || other.level == level) && + const DeepCollectionEquality() + .equals(other._ignoreLogTargets, _ignoreLogTargets)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, enabled, level); + int get hashCode => Object.hash(runtimeType, enabled, level, + const DeepCollectionEquality().hash(_ignoreLogTargets)); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidFFIConfigLoggingTerminalCopyWith<_$_VeilidFFIConfigLoggingTerminal> - get copyWith => __$$_VeilidFFIConfigLoggingTerminalCopyWithImpl< - _$_VeilidFFIConfigLoggingTerminal>(this, _$identity); + _$$VeilidFFIConfigLoggingTerminalImplCopyWith< + _$VeilidFFIConfigLoggingTerminalImpl> + get copyWith => __$$VeilidFFIConfigLoggingTerminalImplCopyWithImpl< + _$VeilidFFIConfigLoggingTerminalImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidFFIConfigLoggingTerminalToJson( + return _$$VeilidFFIConfigLoggingTerminalImplToJson( this, ); } @@ -175,19 +209,23 @@ abstract class _VeilidFFIConfigLoggingTerminal implements VeilidFFIConfigLoggingTerminal { const factory _VeilidFFIConfigLoggingTerminal( {required final bool enabled, - required final VeilidConfigLogLevel level}) = - _$_VeilidFFIConfigLoggingTerminal; + required final VeilidConfigLogLevel level, + final List ignoreLogTargets}) = + _$VeilidFFIConfigLoggingTerminalImpl; factory _VeilidFFIConfigLoggingTerminal.fromJson(Map json) = - _$_VeilidFFIConfigLoggingTerminal.fromJson; + _$VeilidFFIConfigLoggingTerminalImpl.fromJson; @override bool get enabled; @override VeilidConfigLogLevel get level; @override + List get ignoreLogTargets; + @override @JsonKey(ignore: true) - _$$_VeilidFFIConfigLoggingTerminalCopyWith<_$_VeilidFFIConfigLoggingTerminal> + _$$VeilidFFIConfigLoggingTerminalImplCopyWith< + _$VeilidFFIConfigLoggingTerminalImpl> get copyWith => throw _privateConstructorUsedError; } @@ -202,6 +240,7 @@ mixin _$VeilidFFIConfigLoggingOtlp { VeilidConfigLogLevel get level => throw _privateConstructorUsedError; String get grpcEndpoint => throw _privateConstructorUsedError; String get serviceName => throw _privateConstructorUsedError; + List get ignoreLogTargets => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) @@ -220,7 +259,8 @@ abstract class $VeilidFFIConfigLoggingOtlpCopyWith<$Res> { {bool enabled, VeilidConfigLogLevel level, String grpcEndpoint, - String serviceName}); + String serviceName, + List ignoreLogTargets}); } /// @nodoc @@ -241,6 +281,7 @@ class _$VeilidFFIConfigLoggingOtlpCopyWithImpl<$Res, Object? level = null, Object? grpcEndpoint = null, Object? serviceName = null, + Object? ignoreLogTargets = null, }) { return _then(_value.copyWith( enabled: null == enabled @@ -259,34 +300,39 @@ class _$VeilidFFIConfigLoggingOtlpCopyWithImpl<$Res, ? _value.serviceName : serviceName // ignore: cast_nullable_to_non_nullable as String, + ignoreLogTargets: null == ignoreLogTargets + ? _value.ignoreLogTargets + : ignoreLogTargets // ignore: cast_nullable_to_non_nullable + as List, ) as $Val); } } /// @nodoc -abstract class _$$_VeilidFFIConfigLoggingOtlpCopyWith<$Res> +abstract class _$$VeilidFFIConfigLoggingOtlpImplCopyWith<$Res> implements $VeilidFFIConfigLoggingOtlpCopyWith<$Res> { - factory _$$_VeilidFFIConfigLoggingOtlpCopyWith( - _$_VeilidFFIConfigLoggingOtlp value, - $Res Function(_$_VeilidFFIConfigLoggingOtlp) then) = - __$$_VeilidFFIConfigLoggingOtlpCopyWithImpl<$Res>; + factory _$$VeilidFFIConfigLoggingOtlpImplCopyWith( + _$VeilidFFIConfigLoggingOtlpImpl value, + $Res Function(_$VeilidFFIConfigLoggingOtlpImpl) then) = + __$$VeilidFFIConfigLoggingOtlpImplCopyWithImpl<$Res>; @override @useResult $Res call( {bool enabled, VeilidConfigLogLevel level, String grpcEndpoint, - String serviceName}); + String serviceName, + List ignoreLogTargets}); } /// @nodoc -class __$$_VeilidFFIConfigLoggingOtlpCopyWithImpl<$Res> +class __$$VeilidFFIConfigLoggingOtlpImplCopyWithImpl<$Res> extends _$VeilidFFIConfigLoggingOtlpCopyWithImpl<$Res, - _$_VeilidFFIConfigLoggingOtlp> - implements _$$_VeilidFFIConfigLoggingOtlpCopyWith<$Res> { - __$$_VeilidFFIConfigLoggingOtlpCopyWithImpl( - _$_VeilidFFIConfigLoggingOtlp _value, - $Res Function(_$_VeilidFFIConfigLoggingOtlp) _then) + _$VeilidFFIConfigLoggingOtlpImpl> + implements _$$VeilidFFIConfigLoggingOtlpImplCopyWith<$Res> { + __$$VeilidFFIConfigLoggingOtlpImplCopyWithImpl( + _$VeilidFFIConfigLoggingOtlpImpl _value, + $Res Function(_$VeilidFFIConfigLoggingOtlpImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -296,8 +342,9 @@ class __$$_VeilidFFIConfigLoggingOtlpCopyWithImpl<$Res> Object? level = null, Object? grpcEndpoint = null, Object? serviceName = null, + Object? ignoreLogTargets = null, }) { - return _then(_$_VeilidFFIConfigLoggingOtlp( + return _then(_$VeilidFFIConfigLoggingOtlpImpl( enabled: null == enabled ? _value.enabled : enabled // ignore: cast_nullable_to_non_nullable @@ -314,23 +361,30 @@ class __$$_VeilidFFIConfigLoggingOtlpCopyWithImpl<$Res> ? _value.serviceName : serviceName // ignore: cast_nullable_to_non_nullable as String, + ignoreLogTargets: null == ignoreLogTargets + ? _value._ignoreLogTargets + : ignoreLogTargets // ignore: cast_nullable_to_non_nullable + as List, )); } } /// @nodoc @JsonSerializable() -class _$_VeilidFFIConfigLoggingOtlp +class _$VeilidFFIConfigLoggingOtlpImpl with DiagnosticableTreeMixin implements _VeilidFFIConfigLoggingOtlp { - const _$_VeilidFFIConfigLoggingOtlp( + const _$VeilidFFIConfigLoggingOtlpImpl( {required this.enabled, required this.level, required this.grpcEndpoint, - required this.serviceName}); + required this.serviceName, + final List ignoreLogTargets = const []}) + : _ignoreLogTargets = ignoreLogTargets; - factory _$_VeilidFFIConfigLoggingOtlp.fromJson(Map json) => - _$$_VeilidFFIConfigLoggingOtlpFromJson(json); + factory _$VeilidFFIConfigLoggingOtlpImpl.fromJson( + Map json) => + _$$VeilidFFIConfigLoggingOtlpImplFromJson(json); @override final bool enabled; @@ -340,10 +394,19 @@ class _$_VeilidFFIConfigLoggingOtlp final String grpcEndpoint; @override final String serviceName; + final List _ignoreLogTargets; + @override + @JsonKey() + List get ignoreLogTargets { + if (_ignoreLogTargets is EqualUnmodifiableListView) + return _ignoreLogTargets; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(_ignoreLogTargets); + } @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { - return 'VeilidFFIConfigLoggingOtlp(enabled: $enabled, level: $level, grpcEndpoint: $grpcEndpoint, serviceName: $serviceName)'; + return 'VeilidFFIConfigLoggingOtlp(enabled: $enabled, level: $level, grpcEndpoint: $grpcEndpoint, serviceName: $serviceName, ignoreLogTargets: $ignoreLogTargets)'; } @override @@ -354,37 +417,40 @@ class _$_VeilidFFIConfigLoggingOtlp ..add(DiagnosticsProperty('enabled', enabled)) ..add(DiagnosticsProperty('level', level)) ..add(DiagnosticsProperty('grpcEndpoint', grpcEndpoint)) - ..add(DiagnosticsProperty('serviceName', serviceName)); + ..add(DiagnosticsProperty('serviceName', serviceName)) + ..add(DiagnosticsProperty('ignoreLogTargets', ignoreLogTargets)); } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidFFIConfigLoggingOtlp && + other is _$VeilidFFIConfigLoggingOtlpImpl && (identical(other.enabled, enabled) || other.enabled == enabled) && (identical(other.level, level) || other.level == level) && (identical(other.grpcEndpoint, grpcEndpoint) || other.grpcEndpoint == grpcEndpoint) && (identical(other.serviceName, serviceName) || - other.serviceName == serviceName)); + other.serviceName == serviceName) && + const DeepCollectionEquality() + .equals(other._ignoreLogTargets, _ignoreLogTargets)); } @JsonKey(ignore: true) @override - int get hashCode => - Object.hash(runtimeType, enabled, level, grpcEndpoint, serviceName); + int get hashCode => Object.hash(runtimeType, enabled, level, grpcEndpoint, + serviceName, const DeepCollectionEquality().hash(_ignoreLogTargets)); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidFFIConfigLoggingOtlpCopyWith<_$_VeilidFFIConfigLoggingOtlp> - get copyWith => __$$_VeilidFFIConfigLoggingOtlpCopyWithImpl< - _$_VeilidFFIConfigLoggingOtlp>(this, _$identity); + _$$VeilidFFIConfigLoggingOtlpImplCopyWith<_$VeilidFFIConfigLoggingOtlpImpl> + get copyWith => __$$VeilidFFIConfigLoggingOtlpImplCopyWithImpl< + _$VeilidFFIConfigLoggingOtlpImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidFFIConfigLoggingOtlpToJson( + return _$$VeilidFFIConfigLoggingOtlpImplToJson( this, ); } @@ -396,10 +462,11 @@ abstract class _VeilidFFIConfigLoggingOtlp {required final bool enabled, required final VeilidConfigLogLevel level, required final String grpcEndpoint, - required final String serviceName}) = _$_VeilidFFIConfigLoggingOtlp; + required final String serviceName, + final List ignoreLogTargets}) = _$VeilidFFIConfigLoggingOtlpImpl; factory _VeilidFFIConfigLoggingOtlp.fromJson(Map json) = - _$_VeilidFFIConfigLoggingOtlp.fromJson; + _$VeilidFFIConfigLoggingOtlpImpl.fromJson; @override bool get enabled; @@ -410,8 +477,10 @@ abstract class _VeilidFFIConfigLoggingOtlp @override String get serviceName; @override + List get ignoreLogTargets; + @override @JsonKey(ignore: true) - _$$_VeilidFFIConfigLoggingOtlpCopyWith<_$_VeilidFFIConfigLoggingOtlp> + _$$VeilidFFIConfigLoggingOtlpImplCopyWith<_$VeilidFFIConfigLoggingOtlpImpl> get copyWith => throw _privateConstructorUsedError; } @@ -424,6 +493,7 @@ VeilidFFIConfigLoggingApi _$VeilidFFIConfigLoggingApiFromJson( mixin _$VeilidFFIConfigLoggingApi { bool get enabled => throw _privateConstructorUsedError; VeilidConfigLogLevel get level => throw _privateConstructorUsedError; + List get ignoreLogTargets => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) @@ -437,7 +507,10 @@ abstract class $VeilidFFIConfigLoggingApiCopyWith<$Res> { $Res Function(VeilidFFIConfigLoggingApi) then) = _$VeilidFFIConfigLoggingApiCopyWithImpl<$Res, VeilidFFIConfigLoggingApi>; @useResult - $Res call({bool enabled, VeilidConfigLogLevel level}); + $Res call( + {bool enabled, + VeilidConfigLogLevel level, + List ignoreLogTargets}); } /// @nodoc @@ -456,6 +529,7 @@ class _$VeilidFFIConfigLoggingApiCopyWithImpl<$Res, $Res call({ Object? enabled = null, Object? level = null, + Object? ignoreLogTargets = null, }) { return _then(_value.copyWith( enabled: null == enabled @@ -466,30 +540,37 @@ class _$VeilidFFIConfigLoggingApiCopyWithImpl<$Res, ? _value.level : level // ignore: cast_nullable_to_non_nullable as VeilidConfigLogLevel, + ignoreLogTargets: null == ignoreLogTargets + ? _value.ignoreLogTargets + : ignoreLogTargets // ignore: cast_nullable_to_non_nullable + as List, ) as $Val); } } /// @nodoc -abstract class _$$_VeilidFFIConfigLoggingApiCopyWith<$Res> +abstract class _$$VeilidFFIConfigLoggingApiImplCopyWith<$Res> implements $VeilidFFIConfigLoggingApiCopyWith<$Res> { - factory _$$_VeilidFFIConfigLoggingApiCopyWith( - _$_VeilidFFIConfigLoggingApi value, - $Res Function(_$_VeilidFFIConfigLoggingApi) then) = - __$$_VeilidFFIConfigLoggingApiCopyWithImpl<$Res>; + factory _$$VeilidFFIConfigLoggingApiImplCopyWith( + _$VeilidFFIConfigLoggingApiImpl value, + $Res Function(_$VeilidFFIConfigLoggingApiImpl) then) = + __$$VeilidFFIConfigLoggingApiImplCopyWithImpl<$Res>; @override @useResult - $Res call({bool enabled, VeilidConfigLogLevel level}); + $Res call( + {bool enabled, + VeilidConfigLogLevel level, + List ignoreLogTargets}); } /// @nodoc -class __$$_VeilidFFIConfigLoggingApiCopyWithImpl<$Res> +class __$$VeilidFFIConfigLoggingApiImplCopyWithImpl<$Res> extends _$VeilidFFIConfigLoggingApiCopyWithImpl<$Res, - _$_VeilidFFIConfigLoggingApi> - implements _$$_VeilidFFIConfigLoggingApiCopyWith<$Res> { - __$$_VeilidFFIConfigLoggingApiCopyWithImpl( - _$_VeilidFFIConfigLoggingApi _value, - $Res Function(_$_VeilidFFIConfigLoggingApi) _then) + _$VeilidFFIConfigLoggingApiImpl> + implements _$$VeilidFFIConfigLoggingApiImplCopyWith<$Res> { + __$$VeilidFFIConfigLoggingApiImplCopyWithImpl( + _$VeilidFFIConfigLoggingApiImpl _value, + $Res Function(_$VeilidFFIConfigLoggingApiImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -497,8 +578,9 @@ class __$$_VeilidFFIConfigLoggingApiCopyWithImpl<$Res> $Res call({ Object? enabled = null, Object? level = null, + Object? ignoreLogTargets = null, }) { - return _then(_$_VeilidFFIConfigLoggingApi( + return _then(_$VeilidFFIConfigLoggingApiImpl( enabled: null == enabled ? _value.enabled : enabled // ignore: cast_nullable_to_non_nullable @@ -507,29 +589,45 @@ class __$$_VeilidFFIConfigLoggingApiCopyWithImpl<$Res> ? _value.level : level // ignore: cast_nullable_to_non_nullable as VeilidConfigLogLevel, + ignoreLogTargets: null == ignoreLogTargets + ? _value._ignoreLogTargets + : ignoreLogTargets // ignore: cast_nullable_to_non_nullable + as List, )); } } /// @nodoc @JsonSerializable() -class _$_VeilidFFIConfigLoggingApi +class _$VeilidFFIConfigLoggingApiImpl with DiagnosticableTreeMixin implements _VeilidFFIConfigLoggingApi { - const _$_VeilidFFIConfigLoggingApi( - {required this.enabled, required this.level}); + const _$VeilidFFIConfigLoggingApiImpl( + {required this.enabled, + required this.level, + final List ignoreLogTargets = const []}) + : _ignoreLogTargets = ignoreLogTargets; - factory _$_VeilidFFIConfigLoggingApi.fromJson(Map json) => - _$$_VeilidFFIConfigLoggingApiFromJson(json); + factory _$VeilidFFIConfigLoggingApiImpl.fromJson(Map json) => + _$$VeilidFFIConfigLoggingApiImplFromJson(json); @override final bool enabled; @override final VeilidConfigLogLevel level; + final List _ignoreLogTargets; + @override + @JsonKey() + List get ignoreLogTargets { + if (_ignoreLogTargets is EqualUnmodifiableListView) + return _ignoreLogTargets; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(_ignoreLogTargets); + } @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { - return 'VeilidFFIConfigLoggingApi(enabled: $enabled, level: $level)'; + return 'VeilidFFIConfigLoggingApi(enabled: $enabled, level: $level, ignoreLogTargets: $ignoreLogTargets)'; } @override @@ -538,32 +636,36 @@ class _$_VeilidFFIConfigLoggingApi properties ..add(DiagnosticsProperty('type', 'VeilidFFIConfigLoggingApi')) ..add(DiagnosticsProperty('enabled', enabled)) - ..add(DiagnosticsProperty('level', level)); + ..add(DiagnosticsProperty('level', level)) + ..add(DiagnosticsProperty('ignoreLogTargets', ignoreLogTargets)); } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidFFIConfigLoggingApi && + other is _$VeilidFFIConfigLoggingApiImpl && (identical(other.enabled, enabled) || other.enabled == enabled) && - (identical(other.level, level) || other.level == level)); + (identical(other.level, level) || other.level == level) && + const DeepCollectionEquality() + .equals(other._ignoreLogTargets, _ignoreLogTargets)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, enabled, level); + int get hashCode => Object.hash(runtimeType, enabled, level, + const DeepCollectionEquality().hash(_ignoreLogTargets)); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidFFIConfigLoggingApiCopyWith<_$_VeilidFFIConfigLoggingApi> - get copyWith => __$$_VeilidFFIConfigLoggingApiCopyWithImpl< - _$_VeilidFFIConfigLoggingApi>(this, _$identity); + _$$VeilidFFIConfigLoggingApiImplCopyWith<_$VeilidFFIConfigLoggingApiImpl> + get copyWith => __$$VeilidFFIConfigLoggingApiImplCopyWithImpl< + _$VeilidFFIConfigLoggingApiImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidFFIConfigLoggingApiToJson( + return _$$VeilidFFIConfigLoggingApiImplToJson( this, ); } @@ -571,20 +673,22 @@ class _$_VeilidFFIConfigLoggingApi abstract class _VeilidFFIConfigLoggingApi implements VeilidFFIConfigLoggingApi { const factory _VeilidFFIConfigLoggingApi( - {required final bool enabled, - required final VeilidConfigLogLevel level}) = - _$_VeilidFFIConfigLoggingApi; + {required final bool enabled, + required final VeilidConfigLogLevel level, + final List ignoreLogTargets}) = _$VeilidFFIConfigLoggingApiImpl; factory _VeilidFFIConfigLoggingApi.fromJson(Map json) = - _$_VeilidFFIConfigLoggingApi.fromJson; + _$VeilidFFIConfigLoggingApiImpl.fromJson; @override bool get enabled; @override VeilidConfigLogLevel get level; @override + List get ignoreLogTargets; + @override @JsonKey(ignore: true) - _$$_VeilidFFIConfigLoggingApiCopyWith<_$_VeilidFFIConfigLoggingApi> + _$$VeilidFFIConfigLoggingApiImplCopyWith<_$VeilidFFIConfigLoggingApiImpl> get copyWith => throw _privateConstructorUsedError; } @@ -683,11 +787,12 @@ class _$VeilidFFIConfigLoggingCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_VeilidFFIConfigLoggingCopyWith<$Res> +abstract class _$$VeilidFFIConfigLoggingImplCopyWith<$Res> implements $VeilidFFIConfigLoggingCopyWith<$Res> { - factory _$$_VeilidFFIConfigLoggingCopyWith(_$_VeilidFFIConfigLogging value, - $Res Function(_$_VeilidFFIConfigLogging) then) = - __$$_VeilidFFIConfigLoggingCopyWithImpl<$Res>; + factory _$$VeilidFFIConfigLoggingImplCopyWith( + _$VeilidFFIConfigLoggingImpl value, + $Res Function(_$VeilidFFIConfigLoggingImpl) then) = + __$$VeilidFFIConfigLoggingImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -704,12 +809,13 @@ abstract class _$$_VeilidFFIConfigLoggingCopyWith<$Res> } /// @nodoc -class __$$_VeilidFFIConfigLoggingCopyWithImpl<$Res> +class __$$VeilidFFIConfigLoggingImplCopyWithImpl<$Res> extends _$VeilidFFIConfigLoggingCopyWithImpl<$Res, - _$_VeilidFFIConfigLogging> - implements _$$_VeilidFFIConfigLoggingCopyWith<$Res> { - __$$_VeilidFFIConfigLoggingCopyWithImpl(_$_VeilidFFIConfigLogging _value, - $Res Function(_$_VeilidFFIConfigLogging) _then) + _$VeilidFFIConfigLoggingImpl> + implements _$$VeilidFFIConfigLoggingImplCopyWith<$Res> { + __$$VeilidFFIConfigLoggingImplCopyWithImpl( + _$VeilidFFIConfigLoggingImpl _value, + $Res Function(_$VeilidFFIConfigLoggingImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -719,7 +825,7 @@ class __$$_VeilidFFIConfigLoggingCopyWithImpl<$Res> Object? otlp = null, Object? api = null, }) { - return _then(_$_VeilidFFIConfigLogging( + return _then(_$VeilidFFIConfigLoggingImpl( terminal: null == terminal ? _value.terminal : terminal // ignore: cast_nullable_to_non_nullable @@ -738,14 +844,14 @@ class __$$_VeilidFFIConfigLoggingCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidFFIConfigLogging +class _$VeilidFFIConfigLoggingImpl with DiagnosticableTreeMixin implements _VeilidFFIConfigLogging { - const _$_VeilidFFIConfigLogging( + const _$VeilidFFIConfigLoggingImpl( {required this.terminal, required this.otlp, required this.api}); - factory _$_VeilidFFIConfigLogging.fromJson(Map json) => - _$$_VeilidFFIConfigLoggingFromJson(json); + factory _$VeilidFFIConfigLoggingImpl.fromJson(Map json) => + _$$VeilidFFIConfigLoggingImplFromJson(json); @override final VeilidFFIConfigLoggingTerminal terminal; @@ -770,10 +876,10 @@ class _$_VeilidFFIConfigLogging } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidFFIConfigLogging && + other is _$VeilidFFIConfigLoggingImpl && (identical(other.terminal, terminal) || other.terminal == terminal) && (identical(other.otlp, otlp) || other.otlp == otlp) && @@ -787,13 +893,13 @@ class _$_VeilidFFIConfigLogging @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidFFIConfigLoggingCopyWith<_$_VeilidFFIConfigLogging> get copyWith => - __$$_VeilidFFIConfigLoggingCopyWithImpl<_$_VeilidFFIConfigLogging>( - this, _$identity); + _$$VeilidFFIConfigLoggingImplCopyWith<_$VeilidFFIConfigLoggingImpl> + get copyWith => __$$VeilidFFIConfigLoggingImplCopyWithImpl< + _$VeilidFFIConfigLoggingImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidFFIConfigLoggingToJson( + return _$$VeilidFFIConfigLoggingImplToJson( this, ); } @@ -804,10 +910,10 @@ abstract class _VeilidFFIConfigLogging implements VeilidFFIConfigLogging { {required final VeilidFFIConfigLoggingTerminal terminal, required final VeilidFFIConfigLoggingOtlp otlp, required final VeilidFFIConfigLoggingApi api}) = - _$_VeilidFFIConfigLogging; + _$VeilidFFIConfigLoggingImpl; factory _VeilidFFIConfigLogging.fromJson(Map json) = - _$_VeilidFFIConfigLogging.fromJson; + _$VeilidFFIConfigLoggingImpl.fromJson; @override VeilidFFIConfigLoggingTerminal get terminal; @@ -817,8 +923,8 @@ abstract class _VeilidFFIConfigLogging implements VeilidFFIConfigLogging { VeilidFFIConfigLoggingApi get api; @override @JsonKey(ignore: true) - _$$_VeilidFFIConfigLoggingCopyWith<_$_VeilidFFIConfigLogging> get copyWith => - throw _privateConstructorUsedError; + _$$VeilidFFIConfigLoggingImplCopyWith<_$VeilidFFIConfigLoggingImpl> + get copyWith => throw _privateConstructorUsedError; } VeilidFFIConfig _$VeilidFFIConfigFromJson(Map json) { @@ -879,11 +985,11 @@ class _$VeilidFFIConfigCopyWithImpl<$Res, $Val extends VeilidFFIConfig> } /// @nodoc -abstract class _$$_VeilidFFIConfigCopyWith<$Res> +abstract class _$$VeilidFFIConfigImplCopyWith<$Res> implements $VeilidFFIConfigCopyWith<$Res> { - factory _$$_VeilidFFIConfigCopyWith( - _$_VeilidFFIConfig value, $Res Function(_$_VeilidFFIConfig) then) = - __$$_VeilidFFIConfigCopyWithImpl<$Res>; + factory _$$VeilidFFIConfigImplCopyWith(_$VeilidFFIConfigImpl value, + $Res Function(_$VeilidFFIConfigImpl) then) = + __$$VeilidFFIConfigImplCopyWithImpl<$Res>; @override @useResult $Res call({VeilidFFIConfigLogging logging}); @@ -893,11 +999,11 @@ abstract class _$$_VeilidFFIConfigCopyWith<$Res> } /// @nodoc -class __$$_VeilidFFIConfigCopyWithImpl<$Res> - extends _$VeilidFFIConfigCopyWithImpl<$Res, _$_VeilidFFIConfig> - implements _$$_VeilidFFIConfigCopyWith<$Res> { - __$$_VeilidFFIConfigCopyWithImpl( - _$_VeilidFFIConfig _value, $Res Function(_$_VeilidFFIConfig) _then) +class __$$VeilidFFIConfigImplCopyWithImpl<$Res> + extends _$VeilidFFIConfigCopyWithImpl<$Res, _$VeilidFFIConfigImpl> + implements _$$VeilidFFIConfigImplCopyWith<$Res> { + __$$VeilidFFIConfigImplCopyWithImpl( + _$VeilidFFIConfigImpl _value, $Res Function(_$VeilidFFIConfigImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -905,7 +1011,7 @@ class __$$_VeilidFFIConfigCopyWithImpl<$Res> $Res call({ Object? logging = null, }) { - return _then(_$_VeilidFFIConfig( + return _then(_$VeilidFFIConfigImpl( logging: null == logging ? _value.logging : logging // ignore: cast_nullable_to_non_nullable @@ -916,13 +1022,13 @@ class __$$_VeilidFFIConfigCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidFFIConfig +class _$VeilidFFIConfigImpl with DiagnosticableTreeMixin implements _VeilidFFIConfig { - const _$_VeilidFFIConfig({required this.logging}); + const _$VeilidFFIConfigImpl({required this.logging}); - factory _$_VeilidFFIConfig.fromJson(Map json) => - _$$_VeilidFFIConfigFromJson(json); + factory _$VeilidFFIConfigImpl.fromJson(Map json) => + _$$VeilidFFIConfigImplFromJson(json); @override final VeilidFFIConfigLogging logging; @@ -941,10 +1047,10 @@ class _$_VeilidFFIConfig } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidFFIConfig && + other is _$VeilidFFIConfigImpl && (identical(other.logging, logging) || other.logging == logging)); } @@ -955,12 +1061,13 @@ class _$_VeilidFFIConfig @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidFFIConfigCopyWith<_$_VeilidFFIConfig> get copyWith => - __$$_VeilidFFIConfigCopyWithImpl<_$_VeilidFFIConfig>(this, _$identity); + _$$VeilidFFIConfigImplCopyWith<_$VeilidFFIConfigImpl> get copyWith => + __$$VeilidFFIConfigImplCopyWithImpl<_$VeilidFFIConfigImpl>( + this, _$identity); @override Map toJson() { - return _$$_VeilidFFIConfigToJson( + return _$$VeilidFFIConfigImplToJson( this, ); } @@ -968,16 +1075,16 @@ class _$_VeilidFFIConfig abstract class _VeilidFFIConfig implements VeilidFFIConfig { const factory _VeilidFFIConfig( - {required final VeilidFFIConfigLogging logging}) = _$_VeilidFFIConfig; + {required final VeilidFFIConfigLogging logging}) = _$VeilidFFIConfigImpl; factory _VeilidFFIConfig.fromJson(Map json) = - _$_VeilidFFIConfig.fromJson; + _$VeilidFFIConfigImpl.fromJson; @override VeilidFFIConfigLogging get logging; @override @JsonKey(ignore: true) - _$$_VeilidFFIConfigCopyWith<_$_VeilidFFIConfig> get copyWith => + _$$VeilidFFIConfigImplCopyWith<_$VeilidFFIConfigImpl> get copyWith => throw _privateConstructorUsedError; } @@ -992,6 +1099,7 @@ mixin _$VeilidWASMConfigLoggingPerformance { VeilidConfigLogLevel get level => throw _privateConstructorUsedError; bool get logsInTimings => throw _privateConstructorUsedError; bool get logsInConsole => throw _privateConstructorUsedError; + List get ignoreLogTargets => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) @@ -1012,7 +1120,8 @@ abstract class $VeilidWASMConfigLoggingPerformanceCopyWith<$Res> { {bool enabled, VeilidConfigLogLevel level, bool logsInTimings, - bool logsInConsole}); + bool logsInConsole, + List ignoreLogTargets}); } /// @nodoc @@ -1033,6 +1142,7 @@ class _$VeilidWASMConfigLoggingPerformanceCopyWithImpl<$Res, Object? level = null, Object? logsInTimings = null, Object? logsInConsole = null, + Object? ignoreLogTargets = null, }) { return _then(_value.copyWith( enabled: null == enabled @@ -1051,34 +1161,39 @@ class _$VeilidWASMConfigLoggingPerformanceCopyWithImpl<$Res, ? _value.logsInConsole : logsInConsole // ignore: cast_nullable_to_non_nullable as bool, + ignoreLogTargets: null == ignoreLogTargets + ? _value.ignoreLogTargets + : ignoreLogTargets // ignore: cast_nullable_to_non_nullable + as List, ) as $Val); } } /// @nodoc -abstract class _$$_VeilidWASMConfigLoggingPerformanceCopyWith<$Res> +abstract class _$$VeilidWASMConfigLoggingPerformanceImplCopyWith<$Res> implements $VeilidWASMConfigLoggingPerformanceCopyWith<$Res> { - factory _$$_VeilidWASMConfigLoggingPerformanceCopyWith( - _$_VeilidWASMConfigLoggingPerformance value, - $Res Function(_$_VeilidWASMConfigLoggingPerformance) then) = - __$$_VeilidWASMConfigLoggingPerformanceCopyWithImpl<$Res>; + factory _$$VeilidWASMConfigLoggingPerformanceImplCopyWith( + _$VeilidWASMConfigLoggingPerformanceImpl value, + $Res Function(_$VeilidWASMConfigLoggingPerformanceImpl) then) = + __$$VeilidWASMConfigLoggingPerformanceImplCopyWithImpl<$Res>; @override @useResult $Res call( {bool enabled, VeilidConfigLogLevel level, bool logsInTimings, - bool logsInConsole}); + bool logsInConsole, + List ignoreLogTargets}); } /// @nodoc -class __$$_VeilidWASMConfigLoggingPerformanceCopyWithImpl<$Res> +class __$$VeilidWASMConfigLoggingPerformanceImplCopyWithImpl<$Res> extends _$VeilidWASMConfigLoggingPerformanceCopyWithImpl<$Res, - _$_VeilidWASMConfigLoggingPerformance> - implements _$$_VeilidWASMConfigLoggingPerformanceCopyWith<$Res> { - __$$_VeilidWASMConfigLoggingPerformanceCopyWithImpl( - _$_VeilidWASMConfigLoggingPerformance _value, - $Res Function(_$_VeilidWASMConfigLoggingPerformance) _then) + _$VeilidWASMConfigLoggingPerformanceImpl> + implements _$$VeilidWASMConfigLoggingPerformanceImplCopyWith<$Res> { + __$$VeilidWASMConfigLoggingPerformanceImplCopyWithImpl( + _$VeilidWASMConfigLoggingPerformanceImpl _value, + $Res Function(_$VeilidWASMConfigLoggingPerformanceImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1088,8 +1203,9 @@ class __$$_VeilidWASMConfigLoggingPerformanceCopyWithImpl<$Res> Object? level = null, Object? logsInTimings = null, Object? logsInConsole = null, + Object? ignoreLogTargets = null, }) { - return _then(_$_VeilidWASMConfigLoggingPerformance( + return _then(_$VeilidWASMConfigLoggingPerformanceImpl( enabled: null == enabled ? _value.enabled : enabled // ignore: cast_nullable_to_non_nullable @@ -1106,24 +1222,30 @@ class __$$_VeilidWASMConfigLoggingPerformanceCopyWithImpl<$Res> ? _value.logsInConsole : logsInConsole // ignore: cast_nullable_to_non_nullable as bool, + ignoreLogTargets: null == ignoreLogTargets + ? _value._ignoreLogTargets + : ignoreLogTargets // ignore: cast_nullable_to_non_nullable + as List, )); } } /// @nodoc @JsonSerializable() -class _$_VeilidWASMConfigLoggingPerformance +class _$VeilidWASMConfigLoggingPerformanceImpl with DiagnosticableTreeMixin implements _VeilidWASMConfigLoggingPerformance { - const _$_VeilidWASMConfigLoggingPerformance( + const _$VeilidWASMConfigLoggingPerformanceImpl( {required this.enabled, required this.level, required this.logsInTimings, - required this.logsInConsole}); + required this.logsInConsole, + final List ignoreLogTargets = const []}) + : _ignoreLogTargets = ignoreLogTargets; - factory _$_VeilidWASMConfigLoggingPerformance.fromJson( + factory _$VeilidWASMConfigLoggingPerformanceImpl.fromJson( Map json) => - _$$_VeilidWASMConfigLoggingPerformanceFromJson(json); + _$$VeilidWASMConfigLoggingPerformanceImplFromJson(json); @override final bool enabled; @@ -1133,10 +1255,19 @@ class _$_VeilidWASMConfigLoggingPerformance final bool logsInTimings; @override final bool logsInConsole; + final List _ignoreLogTargets; + @override + @JsonKey() + List get ignoreLogTargets { + if (_ignoreLogTargets is EqualUnmodifiableListView) + return _ignoreLogTargets; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(_ignoreLogTargets); + } @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { - return 'VeilidWASMConfigLoggingPerformance(enabled: $enabled, level: $level, logsInTimings: $logsInTimings, logsInConsole: $logsInConsole)'; + return 'VeilidWASMConfigLoggingPerformance(enabled: $enabled, level: $level, logsInTimings: $logsInTimings, logsInConsole: $logsInConsole, ignoreLogTargets: $ignoreLogTargets)'; } @override @@ -1147,38 +1278,41 @@ class _$_VeilidWASMConfigLoggingPerformance ..add(DiagnosticsProperty('enabled', enabled)) ..add(DiagnosticsProperty('level', level)) ..add(DiagnosticsProperty('logsInTimings', logsInTimings)) - ..add(DiagnosticsProperty('logsInConsole', logsInConsole)); + ..add(DiagnosticsProperty('logsInConsole', logsInConsole)) + ..add(DiagnosticsProperty('ignoreLogTargets', ignoreLogTargets)); } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidWASMConfigLoggingPerformance && + other is _$VeilidWASMConfigLoggingPerformanceImpl && (identical(other.enabled, enabled) || other.enabled == enabled) && (identical(other.level, level) || other.level == level) && (identical(other.logsInTimings, logsInTimings) || other.logsInTimings == logsInTimings) && (identical(other.logsInConsole, logsInConsole) || - other.logsInConsole == logsInConsole)); + other.logsInConsole == logsInConsole) && + const DeepCollectionEquality() + .equals(other._ignoreLogTargets, _ignoreLogTargets)); } @JsonKey(ignore: true) @override - int get hashCode => - Object.hash(runtimeType, enabled, level, logsInTimings, logsInConsole); + int get hashCode => Object.hash(runtimeType, enabled, level, logsInTimings, + logsInConsole, const DeepCollectionEquality().hash(_ignoreLogTargets)); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidWASMConfigLoggingPerformanceCopyWith< - _$_VeilidWASMConfigLoggingPerformance> - get copyWith => __$$_VeilidWASMConfigLoggingPerformanceCopyWithImpl< - _$_VeilidWASMConfigLoggingPerformance>(this, _$identity); + _$$VeilidWASMConfigLoggingPerformanceImplCopyWith< + _$VeilidWASMConfigLoggingPerformanceImpl> + get copyWith => __$$VeilidWASMConfigLoggingPerformanceImplCopyWithImpl< + _$VeilidWASMConfigLoggingPerformanceImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidWASMConfigLoggingPerformanceToJson( + return _$$VeilidWASMConfigLoggingPerformanceImplToJson( this, ); } @@ -1190,12 +1324,13 @@ abstract class _VeilidWASMConfigLoggingPerformance {required final bool enabled, required final VeilidConfigLogLevel level, required final bool logsInTimings, - required final bool logsInConsole}) = - _$_VeilidWASMConfigLoggingPerformance; + required final bool logsInConsole, + final List ignoreLogTargets}) = + _$VeilidWASMConfigLoggingPerformanceImpl; factory _VeilidWASMConfigLoggingPerformance.fromJson( Map json) = - _$_VeilidWASMConfigLoggingPerformance.fromJson; + _$VeilidWASMConfigLoggingPerformanceImpl.fromJson; @override bool get enabled; @@ -1206,9 +1341,11 @@ abstract class _VeilidWASMConfigLoggingPerformance @override bool get logsInConsole; @override + List get ignoreLogTargets; + @override @JsonKey(ignore: true) - _$$_VeilidWASMConfigLoggingPerformanceCopyWith< - _$_VeilidWASMConfigLoggingPerformance> + _$$VeilidWASMConfigLoggingPerformanceImplCopyWith< + _$VeilidWASMConfigLoggingPerformanceImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1221,6 +1358,7 @@ VeilidWASMConfigLoggingApi _$VeilidWASMConfigLoggingApiFromJson( mixin _$VeilidWASMConfigLoggingApi { bool get enabled => throw _privateConstructorUsedError; VeilidConfigLogLevel get level => throw _privateConstructorUsedError; + List get ignoreLogTargets => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) @@ -1235,7 +1373,10 @@ abstract class $VeilidWASMConfigLoggingApiCopyWith<$Res> { _$VeilidWASMConfigLoggingApiCopyWithImpl<$Res, VeilidWASMConfigLoggingApi>; @useResult - $Res call({bool enabled, VeilidConfigLogLevel level}); + $Res call( + {bool enabled, + VeilidConfigLogLevel level, + List ignoreLogTargets}); } /// @nodoc @@ -1254,6 +1395,7 @@ class _$VeilidWASMConfigLoggingApiCopyWithImpl<$Res, $Res call({ Object? enabled = null, Object? level = null, + Object? ignoreLogTargets = null, }) { return _then(_value.copyWith( enabled: null == enabled @@ -1264,30 +1406,37 @@ class _$VeilidWASMConfigLoggingApiCopyWithImpl<$Res, ? _value.level : level // ignore: cast_nullable_to_non_nullable as VeilidConfigLogLevel, + ignoreLogTargets: null == ignoreLogTargets + ? _value.ignoreLogTargets + : ignoreLogTargets // ignore: cast_nullable_to_non_nullable + as List, ) as $Val); } } /// @nodoc -abstract class _$$_VeilidWASMConfigLoggingApiCopyWith<$Res> +abstract class _$$VeilidWASMConfigLoggingApiImplCopyWith<$Res> implements $VeilidWASMConfigLoggingApiCopyWith<$Res> { - factory _$$_VeilidWASMConfigLoggingApiCopyWith( - _$_VeilidWASMConfigLoggingApi value, - $Res Function(_$_VeilidWASMConfigLoggingApi) then) = - __$$_VeilidWASMConfigLoggingApiCopyWithImpl<$Res>; + factory _$$VeilidWASMConfigLoggingApiImplCopyWith( + _$VeilidWASMConfigLoggingApiImpl value, + $Res Function(_$VeilidWASMConfigLoggingApiImpl) then) = + __$$VeilidWASMConfigLoggingApiImplCopyWithImpl<$Res>; @override @useResult - $Res call({bool enabled, VeilidConfigLogLevel level}); + $Res call( + {bool enabled, + VeilidConfigLogLevel level, + List ignoreLogTargets}); } /// @nodoc -class __$$_VeilidWASMConfigLoggingApiCopyWithImpl<$Res> +class __$$VeilidWASMConfigLoggingApiImplCopyWithImpl<$Res> extends _$VeilidWASMConfigLoggingApiCopyWithImpl<$Res, - _$_VeilidWASMConfigLoggingApi> - implements _$$_VeilidWASMConfigLoggingApiCopyWith<$Res> { - __$$_VeilidWASMConfigLoggingApiCopyWithImpl( - _$_VeilidWASMConfigLoggingApi _value, - $Res Function(_$_VeilidWASMConfigLoggingApi) _then) + _$VeilidWASMConfigLoggingApiImpl> + implements _$$VeilidWASMConfigLoggingApiImplCopyWith<$Res> { + __$$VeilidWASMConfigLoggingApiImplCopyWithImpl( + _$VeilidWASMConfigLoggingApiImpl _value, + $Res Function(_$VeilidWASMConfigLoggingApiImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1295,8 +1444,9 @@ class __$$_VeilidWASMConfigLoggingApiCopyWithImpl<$Res> $Res call({ Object? enabled = null, Object? level = null, + Object? ignoreLogTargets = null, }) { - return _then(_$_VeilidWASMConfigLoggingApi( + return _then(_$VeilidWASMConfigLoggingApiImpl( enabled: null == enabled ? _value.enabled : enabled // ignore: cast_nullable_to_non_nullable @@ -1305,29 +1455,46 @@ class __$$_VeilidWASMConfigLoggingApiCopyWithImpl<$Res> ? _value.level : level // ignore: cast_nullable_to_non_nullable as VeilidConfigLogLevel, + ignoreLogTargets: null == ignoreLogTargets + ? _value._ignoreLogTargets + : ignoreLogTargets // ignore: cast_nullable_to_non_nullable + as List, )); } } /// @nodoc @JsonSerializable() -class _$_VeilidWASMConfigLoggingApi +class _$VeilidWASMConfigLoggingApiImpl with DiagnosticableTreeMixin implements _VeilidWASMConfigLoggingApi { - const _$_VeilidWASMConfigLoggingApi( - {required this.enabled, required this.level}); + const _$VeilidWASMConfigLoggingApiImpl( + {required this.enabled, + required this.level, + final List ignoreLogTargets = const []}) + : _ignoreLogTargets = ignoreLogTargets; - factory _$_VeilidWASMConfigLoggingApi.fromJson(Map json) => - _$$_VeilidWASMConfigLoggingApiFromJson(json); + factory _$VeilidWASMConfigLoggingApiImpl.fromJson( + Map json) => + _$$VeilidWASMConfigLoggingApiImplFromJson(json); @override final bool enabled; @override final VeilidConfigLogLevel level; + final List _ignoreLogTargets; + @override + @JsonKey() + List get ignoreLogTargets { + if (_ignoreLogTargets is EqualUnmodifiableListView) + return _ignoreLogTargets; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(_ignoreLogTargets); + } @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { - return 'VeilidWASMConfigLoggingApi(enabled: $enabled, level: $level)'; + return 'VeilidWASMConfigLoggingApi(enabled: $enabled, level: $level, ignoreLogTargets: $ignoreLogTargets)'; } @override @@ -1336,32 +1503,36 @@ class _$_VeilidWASMConfigLoggingApi properties ..add(DiagnosticsProperty('type', 'VeilidWASMConfigLoggingApi')) ..add(DiagnosticsProperty('enabled', enabled)) - ..add(DiagnosticsProperty('level', level)); + ..add(DiagnosticsProperty('level', level)) + ..add(DiagnosticsProperty('ignoreLogTargets', ignoreLogTargets)); } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidWASMConfigLoggingApi && + other is _$VeilidWASMConfigLoggingApiImpl && (identical(other.enabled, enabled) || other.enabled == enabled) && - (identical(other.level, level) || other.level == level)); + (identical(other.level, level) || other.level == level) && + const DeepCollectionEquality() + .equals(other._ignoreLogTargets, _ignoreLogTargets)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, enabled, level); + int get hashCode => Object.hash(runtimeType, enabled, level, + const DeepCollectionEquality().hash(_ignoreLogTargets)); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidWASMConfigLoggingApiCopyWith<_$_VeilidWASMConfigLoggingApi> - get copyWith => __$$_VeilidWASMConfigLoggingApiCopyWithImpl< - _$_VeilidWASMConfigLoggingApi>(this, _$identity); + _$$VeilidWASMConfigLoggingApiImplCopyWith<_$VeilidWASMConfigLoggingApiImpl> + get copyWith => __$$VeilidWASMConfigLoggingApiImplCopyWithImpl< + _$VeilidWASMConfigLoggingApiImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidWASMConfigLoggingApiToJson( + return _$$VeilidWASMConfigLoggingApiImplToJson( this, ); } @@ -1370,20 +1541,22 @@ class _$_VeilidWASMConfigLoggingApi abstract class _VeilidWASMConfigLoggingApi implements VeilidWASMConfigLoggingApi { const factory _VeilidWASMConfigLoggingApi( - {required final bool enabled, - required final VeilidConfigLogLevel level}) = - _$_VeilidWASMConfigLoggingApi; + {required final bool enabled, + required final VeilidConfigLogLevel level, + final List ignoreLogTargets}) = _$VeilidWASMConfigLoggingApiImpl; factory _VeilidWASMConfigLoggingApi.fromJson(Map json) = - _$_VeilidWASMConfigLoggingApi.fromJson; + _$VeilidWASMConfigLoggingApiImpl.fromJson; @override bool get enabled; @override VeilidConfigLogLevel get level; @override + List get ignoreLogTargets; + @override @JsonKey(ignore: true) - _$$_VeilidWASMConfigLoggingApiCopyWith<_$_VeilidWASMConfigLoggingApi> + _$$VeilidWASMConfigLoggingApiImplCopyWith<_$VeilidWASMConfigLoggingApiImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1466,11 +1639,12 @@ class _$VeilidWASMConfigLoggingCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_VeilidWASMConfigLoggingCopyWith<$Res> +abstract class _$$VeilidWASMConfigLoggingImplCopyWith<$Res> implements $VeilidWASMConfigLoggingCopyWith<$Res> { - factory _$$_VeilidWASMConfigLoggingCopyWith(_$_VeilidWASMConfigLogging value, - $Res Function(_$_VeilidWASMConfigLogging) then) = - __$$_VeilidWASMConfigLoggingCopyWithImpl<$Res>; + factory _$$VeilidWASMConfigLoggingImplCopyWith( + _$VeilidWASMConfigLoggingImpl value, + $Res Function(_$VeilidWASMConfigLoggingImpl) then) = + __$$VeilidWASMConfigLoggingImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1484,12 +1658,13 @@ abstract class _$$_VeilidWASMConfigLoggingCopyWith<$Res> } /// @nodoc -class __$$_VeilidWASMConfigLoggingCopyWithImpl<$Res> +class __$$VeilidWASMConfigLoggingImplCopyWithImpl<$Res> extends _$VeilidWASMConfigLoggingCopyWithImpl<$Res, - _$_VeilidWASMConfigLogging> - implements _$$_VeilidWASMConfigLoggingCopyWith<$Res> { - __$$_VeilidWASMConfigLoggingCopyWithImpl(_$_VeilidWASMConfigLogging _value, - $Res Function(_$_VeilidWASMConfigLogging) _then) + _$VeilidWASMConfigLoggingImpl> + implements _$$VeilidWASMConfigLoggingImplCopyWith<$Res> { + __$$VeilidWASMConfigLoggingImplCopyWithImpl( + _$VeilidWASMConfigLoggingImpl _value, + $Res Function(_$VeilidWASMConfigLoggingImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1498,7 +1673,7 @@ class __$$_VeilidWASMConfigLoggingCopyWithImpl<$Res> Object? performance = null, Object? api = null, }) { - return _then(_$_VeilidWASMConfigLogging( + return _then(_$VeilidWASMConfigLoggingImpl( performance: null == performance ? _value.performance : performance // ignore: cast_nullable_to_non_nullable @@ -1513,14 +1688,14 @@ class __$$_VeilidWASMConfigLoggingCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidWASMConfigLogging +class _$VeilidWASMConfigLoggingImpl with DiagnosticableTreeMixin implements _VeilidWASMConfigLogging { - const _$_VeilidWASMConfigLogging( + const _$VeilidWASMConfigLoggingImpl( {required this.performance, required this.api}); - factory _$_VeilidWASMConfigLogging.fromJson(Map json) => - _$$_VeilidWASMConfigLoggingFromJson(json); + factory _$VeilidWASMConfigLoggingImpl.fromJson(Map json) => + _$$VeilidWASMConfigLoggingImplFromJson(json); @override final VeilidWASMConfigLoggingPerformance performance; @@ -1542,10 +1717,10 @@ class _$_VeilidWASMConfigLogging } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidWASMConfigLogging && + other is _$VeilidWASMConfigLoggingImpl && (identical(other.performance, performance) || other.performance == performance) && (identical(other.api, api) || other.api == api)); @@ -1558,14 +1733,13 @@ class _$_VeilidWASMConfigLogging @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidWASMConfigLoggingCopyWith<_$_VeilidWASMConfigLogging> - get copyWith => - __$$_VeilidWASMConfigLoggingCopyWithImpl<_$_VeilidWASMConfigLogging>( - this, _$identity); + _$$VeilidWASMConfigLoggingImplCopyWith<_$VeilidWASMConfigLoggingImpl> + get copyWith => __$$VeilidWASMConfigLoggingImplCopyWithImpl< + _$VeilidWASMConfigLoggingImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidWASMConfigLoggingToJson( + return _$$VeilidWASMConfigLoggingImplToJson( this, ); } @@ -1575,10 +1749,10 @@ abstract class _VeilidWASMConfigLogging implements VeilidWASMConfigLogging { const factory _VeilidWASMConfigLogging( {required final VeilidWASMConfigLoggingPerformance performance, required final VeilidWASMConfigLoggingApi api}) = - _$_VeilidWASMConfigLogging; + _$VeilidWASMConfigLoggingImpl; factory _VeilidWASMConfigLogging.fromJson(Map json) = - _$_VeilidWASMConfigLogging.fromJson; + _$VeilidWASMConfigLoggingImpl.fromJson; @override VeilidWASMConfigLoggingPerformance get performance; @@ -1586,7 +1760,7 @@ abstract class _VeilidWASMConfigLogging implements VeilidWASMConfigLogging { VeilidWASMConfigLoggingApi get api; @override @JsonKey(ignore: true) - _$$_VeilidWASMConfigLoggingCopyWith<_$_VeilidWASMConfigLogging> + _$$VeilidWASMConfigLoggingImplCopyWith<_$VeilidWASMConfigLoggingImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1648,11 +1822,11 @@ class _$VeilidWASMConfigCopyWithImpl<$Res, $Val extends VeilidWASMConfig> } /// @nodoc -abstract class _$$_VeilidWASMConfigCopyWith<$Res> +abstract class _$$VeilidWASMConfigImplCopyWith<$Res> implements $VeilidWASMConfigCopyWith<$Res> { - factory _$$_VeilidWASMConfigCopyWith( - _$_VeilidWASMConfig value, $Res Function(_$_VeilidWASMConfig) then) = - __$$_VeilidWASMConfigCopyWithImpl<$Res>; + factory _$$VeilidWASMConfigImplCopyWith(_$VeilidWASMConfigImpl value, + $Res Function(_$VeilidWASMConfigImpl) then) = + __$$VeilidWASMConfigImplCopyWithImpl<$Res>; @override @useResult $Res call({VeilidWASMConfigLogging logging}); @@ -1662,11 +1836,11 @@ abstract class _$$_VeilidWASMConfigCopyWith<$Res> } /// @nodoc -class __$$_VeilidWASMConfigCopyWithImpl<$Res> - extends _$VeilidWASMConfigCopyWithImpl<$Res, _$_VeilidWASMConfig> - implements _$$_VeilidWASMConfigCopyWith<$Res> { - __$$_VeilidWASMConfigCopyWithImpl( - _$_VeilidWASMConfig _value, $Res Function(_$_VeilidWASMConfig) _then) +class __$$VeilidWASMConfigImplCopyWithImpl<$Res> + extends _$VeilidWASMConfigCopyWithImpl<$Res, _$VeilidWASMConfigImpl> + implements _$$VeilidWASMConfigImplCopyWith<$Res> { + __$$VeilidWASMConfigImplCopyWithImpl(_$VeilidWASMConfigImpl _value, + $Res Function(_$VeilidWASMConfigImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1674,7 +1848,7 @@ class __$$_VeilidWASMConfigCopyWithImpl<$Res> $Res call({ Object? logging = null, }) { - return _then(_$_VeilidWASMConfig( + return _then(_$VeilidWASMConfigImpl( logging: null == logging ? _value.logging : logging // ignore: cast_nullable_to_non_nullable @@ -1685,13 +1859,13 @@ class __$$_VeilidWASMConfigCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidWASMConfig +class _$VeilidWASMConfigImpl with DiagnosticableTreeMixin implements _VeilidWASMConfig { - const _$_VeilidWASMConfig({required this.logging}); + const _$VeilidWASMConfigImpl({required this.logging}); - factory _$_VeilidWASMConfig.fromJson(Map json) => - _$$_VeilidWASMConfigFromJson(json); + factory _$VeilidWASMConfigImpl.fromJson(Map json) => + _$$VeilidWASMConfigImplFromJson(json); @override final VeilidWASMConfigLogging logging; @@ -1710,10 +1884,10 @@ class _$_VeilidWASMConfig } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidWASMConfig && + other is _$VeilidWASMConfigImpl && (identical(other.logging, logging) || other.logging == logging)); } @@ -1724,12 +1898,13 @@ class _$_VeilidWASMConfig @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidWASMConfigCopyWith<_$_VeilidWASMConfig> get copyWith => - __$$_VeilidWASMConfigCopyWithImpl<_$_VeilidWASMConfig>(this, _$identity); + _$$VeilidWASMConfigImplCopyWith<_$VeilidWASMConfigImpl> get copyWith => + __$$VeilidWASMConfigImplCopyWithImpl<_$VeilidWASMConfigImpl>( + this, _$identity); @override Map toJson() { - return _$$_VeilidWASMConfigToJson( + return _$$VeilidWASMConfigImplToJson( this, ); } @@ -1737,16 +1912,17 @@ class _$_VeilidWASMConfig abstract class _VeilidWASMConfig implements VeilidWASMConfig { const factory _VeilidWASMConfig( - {required final VeilidWASMConfigLogging logging}) = _$_VeilidWASMConfig; + {required final VeilidWASMConfigLogging logging}) = + _$VeilidWASMConfigImpl; factory _VeilidWASMConfig.fromJson(Map json) = - _$_VeilidWASMConfig.fromJson; + _$VeilidWASMConfigImpl.fromJson; @override VeilidWASMConfigLogging get logging; @override @JsonKey(ignore: true) - _$$_VeilidWASMConfigCopyWith<_$_VeilidWASMConfig> get copyWith => + _$$VeilidWASMConfigImplCopyWith<_$VeilidWASMConfigImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1816,22 +1992,22 @@ class _$VeilidConfigHTTPSCopyWithImpl<$Res, $Val extends VeilidConfigHTTPS> } /// @nodoc -abstract class _$$_VeilidConfigHTTPSCopyWith<$Res> +abstract class _$$VeilidConfigHTTPSImplCopyWith<$Res> implements $VeilidConfigHTTPSCopyWith<$Res> { - factory _$$_VeilidConfigHTTPSCopyWith(_$_VeilidConfigHTTPS value, - $Res Function(_$_VeilidConfigHTTPS) then) = - __$$_VeilidConfigHTTPSCopyWithImpl<$Res>; + factory _$$VeilidConfigHTTPSImplCopyWith(_$VeilidConfigHTTPSImpl value, + $Res Function(_$VeilidConfigHTTPSImpl) then) = + __$$VeilidConfigHTTPSImplCopyWithImpl<$Res>; @override @useResult $Res call({bool enabled, String listenAddress, String path, String? url}); } /// @nodoc -class __$$_VeilidConfigHTTPSCopyWithImpl<$Res> - extends _$VeilidConfigHTTPSCopyWithImpl<$Res, _$_VeilidConfigHTTPS> - implements _$$_VeilidConfigHTTPSCopyWith<$Res> { - __$$_VeilidConfigHTTPSCopyWithImpl( - _$_VeilidConfigHTTPS _value, $Res Function(_$_VeilidConfigHTTPS) _then) +class __$$VeilidConfigHTTPSImplCopyWithImpl<$Res> + extends _$VeilidConfigHTTPSCopyWithImpl<$Res, _$VeilidConfigHTTPSImpl> + implements _$$VeilidConfigHTTPSImplCopyWith<$Res> { + __$$VeilidConfigHTTPSImplCopyWithImpl(_$VeilidConfigHTTPSImpl _value, + $Res Function(_$VeilidConfigHTTPSImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1842,7 +2018,7 @@ class __$$_VeilidConfigHTTPSCopyWithImpl<$Res> Object? path = null, Object? url = freezed, }) { - return _then(_$_VeilidConfigHTTPS( + return _then(_$VeilidConfigHTTPSImpl( enabled: null == enabled ? _value.enabled : enabled // ignore: cast_nullable_to_non_nullable @@ -1865,17 +2041,17 @@ class __$$_VeilidConfigHTTPSCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigHTTPS +class _$VeilidConfigHTTPSImpl with DiagnosticableTreeMixin implements _VeilidConfigHTTPS { - const _$_VeilidConfigHTTPS( + const _$VeilidConfigHTTPSImpl( {required this.enabled, required this.listenAddress, required this.path, this.url}); - factory _$_VeilidConfigHTTPS.fromJson(Map json) => - _$$_VeilidConfigHTTPSFromJson(json); + factory _$VeilidConfigHTTPSImpl.fromJson(Map json) => + _$$VeilidConfigHTTPSImplFromJson(json); @override final bool enabled; @@ -1903,10 +2079,10 @@ class _$_VeilidConfigHTTPS } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigHTTPS && + other is _$VeilidConfigHTTPSImpl && (identical(other.enabled, enabled) || other.enabled == enabled) && (identical(other.listenAddress, listenAddress) || other.listenAddress == listenAddress) && @@ -1922,13 +2098,13 @@ class _$_VeilidConfigHTTPS @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigHTTPSCopyWith<_$_VeilidConfigHTTPS> get copyWith => - __$$_VeilidConfigHTTPSCopyWithImpl<_$_VeilidConfigHTTPS>( + _$$VeilidConfigHTTPSImplCopyWith<_$VeilidConfigHTTPSImpl> get copyWith => + __$$VeilidConfigHTTPSImplCopyWithImpl<_$VeilidConfigHTTPSImpl>( this, _$identity); @override Map toJson() { - return _$$_VeilidConfigHTTPSToJson( + return _$$VeilidConfigHTTPSImplToJson( this, ); } @@ -1939,10 +2115,10 @@ abstract class _VeilidConfigHTTPS implements VeilidConfigHTTPS { {required final bool enabled, required final String listenAddress, required final String path, - final String? url}) = _$_VeilidConfigHTTPS; + final String? url}) = _$VeilidConfigHTTPSImpl; factory _VeilidConfigHTTPS.fromJson(Map json) = - _$_VeilidConfigHTTPS.fromJson; + _$VeilidConfigHTTPSImpl.fromJson; @override bool get enabled; @@ -1954,7 +2130,7 @@ abstract class _VeilidConfigHTTPS implements VeilidConfigHTTPS { String? get url; @override @JsonKey(ignore: true) - _$$_VeilidConfigHTTPSCopyWith<_$_VeilidConfigHTTPS> get copyWith => + _$$VeilidConfigHTTPSImplCopyWith<_$VeilidConfigHTTPSImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2024,22 +2200,22 @@ class _$VeilidConfigHTTPCopyWithImpl<$Res, $Val extends VeilidConfigHTTP> } /// @nodoc -abstract class _$$_VeilidConfigHTTPCopyWith<$Res> +abstract class _$$VeilidConfigHTTPImplCopyWith<$Res> implements $VeilidConfigHTTPCopyWith<$Res> { - factory _$$_VeilidConfigHTTPCopyWith( - _$_VeilidConfigHTTP value, $Res Function(_$_VeilidConfigHTTP) then) = - __$$_VeilidConfigHTTPCopyWithImpl<$Res>; + factory _$$VeilidConfigHTTPImplCopyWith(_$VeilidConfigHTTPImpl value, + $Res Function(_$VeilidConfigHTTPImpl) then) = + __$$VeilidConfigHTTPImplCopyWithImpl<$Res>; @override @useResult $Res call({bool enabled, String listenAddress, String path, String? url}); } /// @nodoc -class __$$_VeilidConfigHTTPCopyWithImpl<$Res> - extends _$VeilidConfigHTTPCopyWithImpl<$Res, _$_VeilidConfigHTTP> - implements _$$_VeilidConfigHTTPCopyWith<$Res> { - __$$_VeilidConfigHTTPCopyWithImpl( - _$_VeilidConfigHTTP _value, $Res Function(_$_VeilidConfigHTTP) _then) +class __$$VeilidConfigHTTPImplCopyWithImpl<$Res> + extends _$VeilidConfigHTTPCopyWithImpl<$Res, _$VeilidConfigHTTPImpl> + implements _$$VeilidConfigHTTPImplCopyWith<$Res> { + __$$VeilidConfigHTTPImplCopyWithImpl(_$VeilidConfigHTTPImpl _value, + $Res Function(_$VeilidConfigHTTPImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2050,7 +2226,7 @@ class __$$_VeilidConfigHTTPCopyWithImpl<$Res> Object? path = null, Object? url = freezed, }) { - return _then(_$_VeilidConfigHTTP( + return _then(_$VeilidConfigHTTPImpl( enabled: null == enabled ? _value.enabled : enabled // ignore: cast_nullable_to_non_nullable @@ -2073,17 +2249,17 @@ class __$$_VeilidConfigHTTPCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigHTTP +class _$VeilidConfigHTTPImpl with DiagnosticableTreeMixin implements _VeilidConfigHTTP { - const _$_VeilidConfigHTTP( + const _$VeilidConfigHTTPImpl( {required this.enabled, required this.listenAddress, required this.path, this.url}); - factory _$_VeilidConfigHTTP.fromJson(Map json) => - _$$_VeilidConfigHTTPFromJson(json); + factory _$VeilidConfigHTTPImpl.fromJson(Map json) => + _$$VeilidConfigHTTPImplFromJson(json); @override final bool enabled; @@ -2111,10 +2287,10 @@ class _$_VeilidConfigHTTP } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigHTTP && + other is _$VeilidConfigHTTPImpl && (identical(other.enabled, enabled) || other.enabled == enabled) && (identical(other.listenAddress, listenAddress) || other.listenAddress == listenAddress) && @@ -2130,12 +2306,13 @@ class _$_VeilidConfigHTTP @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigHTTPCopyWith<_$_VeilidConfigHTTP> get copyWith => - __$$_VeilidConfigHTTPCopyWithImpl<_$_VeilidConfigHTTP>(this, _$identity); + _$$VeilidConfigHTTPImplCopyWith<_$VeilidConfigHTTPImpl> get copyWith => + __$$VeilidConfigHTTPImplCopyWithImpl<_$VeilidConfigHTTPImpl>( + this, _$identity); @override Map toJson() { - return _$$_VeilidConfigHTTPToJson( + return _$$VeilidConfigHTTPImplToJson( this, ); } @@ -2146,10 +2323,10 @@ abstract class _VeilidConfigHTTP implements VeilidConfigHTTP { {required final bool enabled, required final String listenAddress, required final String path, - final String? url}) = _$_VeilidConfigHTTP; + final String? url}) = _$VeilidConfigHTTPImpl; factory _VeilidConfigHTTP.fromJson(Map json) = - _$_VeilidConfigHTTP.fromJson; + _$VeilidConfigHTTPImpl.fromJson; @override bool get enabled; @@ -2161,7 +2338,7 @@ abstract class _VeilidConfigHTTP implements VeilidConfigHTTP { String? get url; @override @JsonKey(ignore: true) - _$$_VeilidConfigHTTPCopyWith<_$_VeilidConfigHTTP> get copyWith => + _$$VeilidConfigHTTPImplCopyWith<_$VeilidConfigHTTPImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2240,11 +2417,12 @@ class _$VeilidConfigApplicationCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_VeilidConfigApplicationCopyWith<$Res> +abstract class _$$VeilidConfigApplicationImplCopyWith<$Res> implements $VeilidConfigApplicationCopyWith<$Res> { - factory _$$_VeilidConfigApplicationCopyWith(_$_VeilidConfigApplication value, - $Res Function(_$_VeilidConfigApplication) then) = - __$$_VeilidConfigApplicationCopyWithImpl<$Res>; + factory _$$VeilidConfigApplicationImplCopyWith( + _$VeilidConfigApplicationImpl value, + $Res Function(_$VeilidConfigApplicationImpl) then) = + __$$VeilidConfigApplicationImplCopyWithImpl<$Res>; @override @useResult $Res call({VeilidConfigHTTPS https, VeilidConfigHTTP http}); @@ -2256,12 +2434,13 @@ abstract class _$$_VeilidConfigApplicationCopyWith<$Res> } /// @nodoc -class __$$_VeilidConfigApplicationCopyWithImpl<$Res> +class __$$VeilidConfigApplicationImplCopyWithImpl<$Res> extends _$VeilidConfigApplicationCopyWithImpl<$Res, - _$_VeilidConfigApplication> - implements _$$_VeilidConfigApplicationCopyWith<$Res> { - __$$_VeilidConfigApplicationCopyWithImpl(_$_VeilidConfigApplication _value, - $Res Function(_$_VeilidConfigApplication) _then) + _$VeilidConfigApplicationImpl> + implements _$$VeilidConfigApplicationImplCopyWith<$Res> { + __$$VeilidConfigApplicationImplCopyWithImpl( + _$VeilidConfigApplicationImpl _value, + $Res Function(_$VeilidConfigApplicationImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2270,7 +2449,7 @@ class __$$_VeilidConfigApplicationCopyWithImpl<$Res> Object? https = null, Object? http = null, }) { - return _then(_$_VeilidConfigApplication( + return _then(_$VeilidConfigApplicationImpl( https: null == https ? _value.https : https // ignore: cast_nullable_to_non_nullable @@ -2285,13 +2464,14 @@ class __$$_VeilidConfigApplicationCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigApplication +class _$VeilidConfigApplicationImpl with DiagnosticableTreeMixin implements _VeilidConfigApplication { - const _$_VeilidConfigApplication({required this.https, required this.http}); + const _$VeilidConfigApplicationImpl( + {required this.https, required this.http}); - factory _$_VeilidConfigApplication.fromJson(Map json) => - _$$_VeilidConfigApplicationFromJson(json); + factory _$VeilidConfigApplicationImpl.fromJson(Map json) => + _$$VeilidConfigApplicationImplFromJson(json); @override final VeilidConfigHTTPS https; @@ -2313,10 +2493,10 @@ class _$_VeilidConfigApplication } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigApplication && + other is _$VeilidConfigApplicationImpl && (identical(other.https, https) || other.https == https) && (identical(other.http, http) || other.http == http)); } @@ -2328,14 +2508,13 @@ class _$_VeilidConfigApplication @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigApplicationCopyWith<_$_VeilidConfigApplication> - get copyWith => - __$$_VeilidConfigApplicationCopyWithImpl<_$_VeilidConfigApplication>( - this, _$identity); + _$$VeilidConfigApplicationImplCopyWith<_$VeilidConfigApplicationImpl> + get copyWith => __$$VeilidConfigApplicationImplCopyWithImpl< + _$VeilidConfigApplicationImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidConfigApplicationToJson( + return _$$VeilidConfigApplicationImplToJson( this, ); } @@ -2344,10 +2523,10 @@ class _$_VeilidConfigApplication abstract class _VeilidConfigApplication implements VeilidConfigApplication { const factory _VeilidConfigApplication( {required final VeilidConfigHTTPS https, - required final VeilidConfigHTTP http}) = _$_VeilidConfigApplication; + required final VeilidConfigHTTP http}) = _$VeilidConfigApplicationImpl; factory _VeilidConfigApplication.fromJson(Map json) = - _$_VeilidConfigApplication.fromJson; + _$VeilidConfigApplicationImpl.fromJson; @override VeilidConfigHTTPS get https; @@ -2355,7 +2534,7 @@ abstract class _VeilidConfigApplication implements VeilidConfigApplication { VeilidConfigHTTP get http; @override @JsonKey(ignore: true) - _$$_VeilidConfigApplicationCopyWith<_$_VeilidConfigApplication> + _$$VeilidConfigApplicationImplCopyWith<_$VeilidConfigApplicationImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2429,11 +2608,11 @@ class _$VeilidConfigUDPCopyWithImpl<$Res, $Val extends VeilidConfigUDP> } /// @nodoc -abstract class _$$_VeilidConfigUDPCopyWith<$Res> +abstract class _$$VeilidConfigUDPImplCopyWith<$Res> implements $VeilidConfigUDPCopyWith<$Res> { - factory _$$_VeilidConfigUDPCopyWith( - _$_VeilidConfigUDP value, $Res Function(_$_VeilidConfigUDP) then) = - __$$_VeilidConfigUDPCopyWithImpl<$Res>; + factory _$$VeilidConfigUDPImplCopyWith(_$VeilidConfigUDPImpl value, + $Res Function(_$VeilidConfigUDPImpl) then) = + __$$VeilidConfigUDPImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -2444,11 +2623,11 @@ abstract class _$$_VeilidConfigUDPCopyWith<$Res> } /// @nodoc -class __$$_VeilidConfigUDPCopyWithImpl<$Res> - extends _$VeilidConfigUDPCopyWithImpl<$Res, _$_VeilidConfigUDP> - implements _$$_VeilidConfigUDPCopyWith<$Res> { - __$$_VeilidConfigUDPCopyWithImpl( - _$_VeilidConfigUDP _value, $Res Function(_$_VeilidConfigUDP) _then) +class __$$VeilidConfigUDPImplCopyWithImpl<$Res> + extends _$VeilidConfigUDPCopyWithImpl<$Res, _$VeilidConfigUDPImpl> + implements _$$VeilidConfigUDPImplCopyWith<$Res> { + __$$VeilidConfigUDPImplCopyWithImpl( + _$VeilidConfigUDPImpl _value, $Res Function(_$VeilidConfigUDPImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2459,7 +2638,7 @@ class __$$_VeilidConfigUDPCopyWithImpl<$Res> Object? listenAddress = null, Object? publicAddress = freezed, }) { - return _then(_$_VeilidConfigUDP( + return _then(_$VeilidConfigUDPImpl( enabled: null == enabled ? _value.enabled : enabled // ignore: cast_nullable_to_non_nullable @@ -2482,17 +2661,17 @@ class __$$_VeilidConfigUDPCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigUDP +class _$VeilidConfigUDPImpl with DiagnosticableTreeMixin implements _VeilidConfigUDP { - const _$_VeilidConfigUDP( + const _$VeilidConfigUDPImpl( {required this.enabled, required this.socketPoolSize, required this.listenAddress, this.publicAddress}); - factory _$_VeilidConfigUDP.fromJson(Map json) => - _$$_VeilidConfigUDPFromJson(json); + factory _$VeilidConfigUDPImpl.fromJson(Map json) => + _$$VeilidConfigUDPImplFromJson(json); @override final bool enabled; @@ -2520,10 +2699,10 @@ class _$_VeilidConfigUDP } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigUDP && + other is _$VeilidConfigUDPImpl && (identical(other.enabled, enabled) || other.enabled == enabled) && (identical(other.socketPoolSize, socketPoolSize) || other.socketPoolSize == socketPoolSize) && @@ -2541,12 +2720,13 @@ class _$_VeilidConfigUDP @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigUDPCopyWith<_$_VeilidConfigUDP> get copyWith => - __$$_VeilidConfigUDPCopyWithImpl<_$_VeilidConfigUDP>(this, _$identity); + _$$VeilidConfigUDPImplCopyWith<_$VeilidConfigUDPImpl> get copyWith => + __$$VeilidConfigUDPImplCopyWithImpl<_$VeilidConfigUDPImpl>( + this, _$identity); @override Map toJson() { - return _$$_VeilidConfigUDPToJson( + return _$$VeilidConfigUDPImplToJson( this, ); } @@ -2557,10 +2737,10 @@ abstract class _VeilidConfigUDP implements VeilidConfigUDP { {required final bool enabled, required final int socketPoolSize, required final String listenAddress, - final String? publicAddress}) = _$_VeilidConfigUDP; + final String? publicAddress}) = _$VeilidConfigUDPImpl; factory _VeilidConfigUDP.fromJson(Map json) = - _$_VeilidConfigUDP.fromJson; + _$VeilidConfigUDPImpl.fromJson; @override bool get enabled; @@ -2572,7 +2752,7 @@ abstract class _VeilidConfigUDP implements VeilidConfigUDP { String? get publicAddress; @override @JsonKey(ignore: true) - _$$_VeilidConfigUDPCopyWith<_$_VeilidConfigUDP> get copyWith => + _$$VeilidConfigUDPImplCopyWith<_$VeilidConfigUDPImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2653,11 +2833,11 @@ class _$VeilidConfigTCPCopyWithImpl<$Res, $Val extends VeilidConfigTCP> } /// @nodoc -abstract class _$$_VeilidConfigTCPCopyWith<$Res> +abstract class _$$VeilidConfigTCPImplCopyWith<$Res> implements $VeilidConfigTCPCopyWith<$Res> { - factory _$$_VeilidConfigTCPCopyWith( - _$_VeilidConfigTCP value, $Res Function(_$_VeilidConfigTCP) then) = - __$$_VeilidConfigTCPCopyWithImpl<$Res>; + factory _$$VeilidConfigTCPImplCopyWith(_$VeilidConfigTCPImpl value, + $Res Function(_$VeilidConfigTCPImpl) then) = + __$$VeilidConfigTCPImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -2669,11 +2849,11 @@ abstract class _$$_VeilidConfigTCPCopyWith<$Res> } /// @nodoc -class __$$_VeilidConfigTCPCopyWithImpl<$Res> - extends _$VeilidConfigTCPCopyWithImpl<$Res, _$_VeilidConfigTCP> - implements _$$_VeilidConfigTCPCopyWith<$Res> { - __$$_VeilidConfigTCPCopyWithImpl( - _$_VeilidConfigTCP _value, $Res Function(_$_VeilidConfigTCP) _then) +class __$$VeilidConfigTCPImplCopyWithImpl<$Res> + extends _$VeilidConfigTCPCopyWithImpl<$Res, _$VeilidConfigTCPImpl> + implements _$$VeilidConfigTCPImplCopyWith<$Res> { + __$$VeilidConfigTCPImplCopyWithImpl( + _$VeilidConfigTCPImpl _value, $Res Function(_$VeilidConfigTCPImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2685,7 +2865,7 @@ class __$$_VeilidConfigTCPCopyWithImpl<$Res> Object? listenAddress = null, Object? publicAddress = freezed, }) { - return _then(_$_VeilidConfigTCP( + return _then(_$VeilidConfigTCPImpl( connect: null == connect ? _value.connect : connect // ignore: cast_nullable_to_non_nullable @@ -2712,18 +2892,18 @@ class __$$_VeilidConfigTCPCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigTCP +class _$VeilidConfigTCPImpl with DiagnosticableTreeMixin implements _VeilidConfigTCP { - const _$_VeilidConfigTCP( + const _$VeilidConfigTCPImpl( {required this.connect, required this.listen, required this.maxConnections, required this.listenAddress, this.publicAddress}); - factory _$_VeilidConfigTCP.fromJson(Map json) => - _$$_VeilidConfigTCPFromJson(json); + factory _$VeilidConfigTCPImpl.fromJson(Map json) => + _$$VeilidConfigTCPImplFromJson(json); @override final bool connect; @@ -2754,10 +2934,10 @@ class _$_VeilidConfigTCP } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigTCP && + other is _$VeilidConfigTCPImpl && (identical(other.connect, connect) || other.connect == connect) && (identical(other.listen, listen) || other.listen == listen) && (identical(other.maxConnections, maxConnections) || @@ -2776,12 +2956,13 @@ class _$_VeilidConfigTCP @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigTCPCopyWith<_$_VeilidConfigTCP> get copyWith => - __$$_VeilidConfigTCPCopyWithImpl<_$_VeilidConfigTCP>(this, _$identity); + _$$VeilidConfigTCPImplCopyWith<_$VeilidConfigTCPImpl> get copyWith => + __$$VeilidConfigTCPImplCopyWithImpl<_$VeilidConfigTCPImpl>( + this, _$identity); @override Map toJson() { - return _$$_VeilidConfigTCPToJson( + return _$$VeilidConfigTCPImplToJson( this, ); } @@ -2793,10 +2974,10 @@ abstract class _VeilidConfigTCP implements VeilidConfigTCP { required final bool listen, required final int maxConnections, required final String listenAddress, - final String? publicAddress}) = _$_VeilidConfigTCP; + final String? publicAddress}) = _$VeilidConfigTCPImpl; factory _VeilidConfigTCP.fromJson(Map json) = - _$_VeilidConfigTCP.fromJson; + _$VeilidConfigTCPImpl.fromJson; @override bool get connect; @@ -2810,7 +2991,7 @@ abstract class _VeilidConfigTCP implements VeilidConfigTCP { String? get publicAddress; @override @JsonKey(ignore: true) - _$$_VeilidConfigTCPCopyWith<_$_VeilidConfigTCP> get copyWith => + _$$VeilidConfigTCPImplCopyWith<_$VeilidConfigTCPImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2898,11 +3079,11 @@ class _$VeilidConfigWSCopyWithImpl<$Res, $Val extends VeilidConfigWS> } /// @nodoc -abstract class _$$_VeilidConfigWSCopyWith<$Res> +abstract class _$$VeilidConfigWSImplCopyWith<$Res> implements $VeilidConfigWSCopyWith<$Res> { - factory _$$_VeilidConfigWSCopyWith( - _$_VeilidConfigWS value, $Res Function(_$_VeilidConfigWS) then) = - __$$_VeilidConfigWSCopyWithImpl<$Res>; + factory _$$VeilidConfigWSImplCopyWith(_$VeilidConfigWSImpl value, + $Res Function(_$VeilidConfigWSImpl) then) = + __$$VeilidConfigWSImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -2915,11 +3096,11 @@ abstract class _$$_VeilidConfigWSCopyWith<$Res> } /// @nodoc -class __$$_VeilidConfigWSCopyWithImpl<$Res> - extends _$VeilidConfigWSCopyWithImpl<$Res, _$_VeilidConfigWS> - implements _$$_VeilidConfigWSCopyWith<$Res> { - __$$_VeilidConfigWSCopyWithImpl( - _$_VeilidConfigWS _value, $Res Function(_$_VeilidConfigWS) _then) +class __$$VeilidConfigWSImplCopyWithImpl<$Res> + extends _$VeilidConfigWSCopyWithImpl<$Res, _$VeilidConfigWSImpl> + implements _$$VeilidConfigWSImplCopyWith<$Res> { + __$$VeilidConfigWSImplCopyWithImpl( + _$VeilidConfigWSImpl _value, $Res Function(_$VeilidConfigWSImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2932,7 +3113,7 @@ class __$$_VeilidConfigWSCopyWithImpl<$Res> Object? path = null, Object? url = freezed, }) { - return _then(_$_VeilidConfigWS( + return _then(_$VeilidConfigWSImpl( connect: null == connect ? _value.connect : connect // ignore: cast_nullable_to_non_nullable @@ -2963,10 +3144,10 @@ class __$$_VeilidConfigWSCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigWS +class _$VeilidConfigWSImpl with DiagnosticableTreeMixin implements _VeilidConfigWS { - const _$_VeilidConfigWS( + const _$VeilidConfigWSImpl( {required this.connect, required this.listen, required this.maxConnections, @@ -2974,8 +3155,8 @@ class _$_VeilidConfigWS required this.path, this.url}); - factory _$_VeilidConfigWS.fromJson(Map json) => - _$$_VeilidConfigWSFromJson(json); + factory _$VeilidConfigWSImpl.fromJson(Map json) => + _$$VeilidConfigWSImplFromJson(json); @override final bool connect; @@ -3009,10 +3190,10 @@ class _$_VeilidConfigWS } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigWS && + other is _$VeilidConfigWSImpl && (identical(other.connect, connect) || other.connect == connect) && (identical(other.listen, listen) || other.listen == listen) && (identical(other.maxConnections, maxConnections) || @@ -3031,12 +3212,13 @@ class _$_VeilidConfigWS @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigWSCopyWith<_$_VeilidConfigWS> get copyWith => - __$$_VeilidConfigWSCopyWithImpl<_$_VeilidConfigWS>(this, _$identity); + _$$VeilidConfigWSImplCopyWith<_$VeilidConfigWSImpl> get copyWith => + __$$VeilidConfigWSImplCopyWithImpl<_$VeilidConfigWSImpl>( + this, _$identity); @override Map toJson() { - return _$$_VeilidConfigWSToJson( + return _$$VeilidConfigWSImplToJson( this, ); } @@ -3049,10 +3231,10 @@ abstract class _VeilidConfigWS implements VeilidConfigWS { required final int maxConnections, required final String listenAddress, required final String path, - final String? url}) = _$_VeilidConfigWS; + final String? url}) = _$VeilidConfigWSImpl; factory _VeilidConfigWS.fromJson(Map json) = - _$_VeilidConfigWS.fromJson; + _$VeilidConfigWSImpl.fromJson; @override bool get connect; @@ -3068,7 +3250,7 @@ abstract class _VeilidConfigWS implements VeilidConfigWS { String? get url; @override @JsonKey(ignore: true) - _$$_VeilidConfigWSCopyWith<_$_VeilidConfigWS> get copyWith => + _$$VeilidConfigWSImplCopyWith<_$VeilidConfigWSImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3156,11 +3338,11 @@ class _$VeilidConfigWSSCopyWithImpl<$Res, $Val extends VeilidConfigWSS> } /// @nodoc -abstract class _$$_VeilidConfigWSSCopyWith<$Res> +abstract class _$$VeilidConfigWSSImplCopyWith<$Res> implements $VeilidConfigWSSCopyWith<$Res> { - factory _$$_VeilidConfigWSSCopyWith( - _$_VeilidConfigWSS value, $Res Function(_$_VeilidConfigWSS) then) = - __$$_VeilidConfigWSSCopyWithImpl<$Res>; + factory _$$VeilidConfigWSSImplCopyWith(_$VeilidConfigWSSImpl value, + $Res Function(_$VeilidConfigWSSImpl) then) = + __$$VeilidConfigWSSImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -3173,11 +3355,11 @@ abstract class _$$_VeilidConfigWSSCopyWith<$Res> } /// @nodoc -class __$$_VeilidConfigWSSCopyWithImpl<$Res> - extends _$VeilidConfigWSSCopyWithImpl<$Res, _$_VeilidConfigWSS> - implements _$$_VeilidConfigWSSCopyWith<$Res> { - __$$_VeilidConfigWSSCopyWithImpl( - _$_VeilidConfigWSS _value, $Res Function(_$_VeilidConfigWSS) _then) +class __$$VeilidConfigWSSImplCopyWithImpl<$Res> + extends _$VeilidConfigWSSCopyWithImpl<$Res, _$VeilidConfigWSSImpl> + implements _$$VeilidConfigWSSImplCopyWith<$Res> { + __$$VeilidConfigWSSImplCopyWithImpl( + _$VeilidConfigWSSImpl _value, $Res Function(_$VeilidConfigWSSImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3190,7 +3372,7 @@ class __$$_VeilidConfigWSSCopyWithImpl<$Res> Object? path = null, Object? url = freezed, }) { - return _then(_$_VeilidConfigWSS( + return _then(_$VeilidConfigWSSImpl( connect: null == connect ? _value.connect : connect // ignore: cast_nullable_to_non_nullable @@ -3221,10 +3403,10 @@ class __$$_VeilidConfigWSSCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigWSS +class _$VeilidConfigWSSImpl with DiagnosticableTreeMixin implements _VeilidConfigWSS { - const _$_VeilidConfigWSS( + const _$VeilidConfigWSSImpl( {required this.connect, required this.listen, required this.maxConnections, @@ -3232,8 +3414,8 @@ class _$_VeilidConfigWSS required this.path, this.url}); - factory _$_VeilidConfigWSS.fromJson(Map json) => - _$$_VeilidConfigWSSFromJson(json); + factory _$VeilidConfigWSSImpl.fromJson(Map json) => + _$$VeilidConfigWSSImplFromJson(json); @override final bool connect; @@ -3267,10 +3449,10 @@ class _$_VeilidConfigWSS } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigWSS && + other is _$VeilidConfigWSSImpl && (identical(other.connect, connect) || other.connect == connect) && (identical(other.listen, listen) || other.listen == listen) && (identical(other.maxConnections, maxConnections) || @@ -3289,12 +3471,13 @@ class _$_VeilidConfigWSS @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigWSSCopyWith<_$_VeilidConfigWSS> get copyWith => - __$$_VeilidConfigWSSCopyWithImpl<_$_VeilidConfigWSS>(this, _$identity); + _$$VeilidConfigWSSImplCopyWith<_$VeilidConfigWSSImpl> get copyWith => + __$$VeilidConfigWSSImplCopyWithImpl<_$VeilidConfigWSSImpl>( + this, _$identity); @override Map toJson() { - return _$$_VeilidConfigWSSToJson( + return _$$VeilidConfigWSSImplToJson( this, ); } @@ -3307,10 +3490,10 @@ abstract class _VeilidConfigWSS implements VeilidConfigWSS { required final int maxConnections, required final String listenAddress, required final String path, - final String? url}) = _$_VeilidConfigWSS; + final String? url}) = _$VeilidConfigWSSImpl; factory _VeilidConfigWSS.fromJson(Map json) = - _$_VeilidConfigWSS.fromJson; + _$VeilidConfigWSSImpl.fromJson; @override bool get connect; @@ -3326,7 +3509,7 @@ abstract class _VeilidConfigWSS implements VeilidConfigWSS { String? get url; @override @JsonKey(ignore: true) - _$$_VeilidConfigWSSCopyWith<_$_VeilidConfigWSS> get copyWith => + _$$VeilidConfigWSSImplCopyWith<_$VeilidConfigWSSImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3438,11 +3621,11 @@ class _$VeilidConfigProtocolCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_VeilidConfigProtocolCopyWith<$Res> +abstract class _$$VeilidConfigProtocolImplCopyWith<$Res> implements $VeilidConfigProtocolCopyWith<$Res> { - factory _$$_VeilidConfigProtocolCopyWith(_$_VeilidConfigProtocol value, - $Res Function(_$_VeilidConfigProtocol) then) = - __$$_VeilidConfigProtocolCopyWithImpl<$Res>; + factory _$$VeilidConfigProtocolImplCopyWith(_$VeilidConfigProtocolImpl value, + $Res Function(_$VeilidConfigProtocolImpl) then) = + __$$VeilidConfigProtocolImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -3462,11 +3645,11 @@ abstract class _$$_VeilidConfigProtocolCopyWith<$Res> } /// @nodoc -class __$$_VeilidConfigProtocolCopyWithImpl<$Res> - extends _$VeilidConfigProtocolCopyWithImpl<$Res, _$_VeilidConfigProtocol> - implements _$$_VeilidConfigProtocolCopyWith<$Res> { - __$$_VeilidConfigProtocolCopyWithImpl(_$_VeilidConfigProtocol _value, - $Res Function(_$_VeilidConfigProtocol) _then) +class __$$VeilidConfigProtocolImplCopyWithImpl<$Res> + extends _$VeilidConfigProtocolCopyWithImpl<$Res, _$VeilidConfigProtocolImpl> + implements _$$VeilidConfigProtocolImplCopyWith<$Res> { + __$$VeilidConfigProtocolImplCopyWithImpl(_$VeilidConfigProtocolImpl _value, + $Res Function(_$VeilidConfigProtocolImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3477,7 +3660,7 @@ class __$$_VeilidConfigProtocolCopyWithImpl<$Res> Object? ws = null, Object? wss = null, }) { - return _then(_$_VeilidConfigProtocol( + return _then(_$VeilidConfigProtocolImpl( udp: null == udp ? _value.udp : udp // ignore: cast_nullable_to_non_nullable @@ -3500,17 +3683,17 @@ class __$$_VeilidConfigProtocolCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigProtocol +class _$VeilidConfigProtocolImpl with DiagnosticableTreeMixin implements _VeilidConfigProtocol { - const _$_VeilidConfigProtocol( + const _$VeilidConfigProtocolImpl( {required this.udp, required this.tcp, required this.ws, required this.wss}); - factory _$_VeilidConfigProtocol.fromJson(Map json) => - _$$_VeilidConfigProtocolFromJson(json); + factory _$VeilidConfigProtocolImpl.fromJson(Map json) => + _$$VeilidConfigProtocolImplFromJson(json); @override final VeilidConfigUDP udp; @@ -3538,10 +3721,10 @@ class _$_VeilidConfigProtocol } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigProtocol && + other is _$VeilidConfigProtocolImpl && (identical(other.udp, udp) || other.udp == udp) && (identical(other.tcp, tcp) || other.tcp == tcp) && (identical(other.ws, ws) || other.ws == ws) && @@ -3555,13 +3738,14 @@ class _$_VeilidConfigProtocol @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigProtocolCopyWith<_$_VeilidConfigProtocol> get copyWith => - __$$_VeilidConfigProtocolCopyWithImpl<_$_VeilidConfigProtocol>( - this, _$identity); + _$$VeilidConfigProtocolImplCopyWith<_$VeilidConfigProtocolImpl> + get copyWith => + __$$VeilidConfigProtocolImplCopyWithImpl<_$VeilidConfigProtocolImpl>( + this, _$identity); @override Map toJson() { - return _$$_VeilidConfigProtocolToJson( + return _$$VeilidConfigProtocolImplToJson( this, ); } @@ -3572,10 +3756,10 @@ abstract class _VeilidConfigProtocol implements VeilidConfigProtocol { {required final VeilidConfigUDP udp, required final VeilidConfigTCP tcp, required final VeilidConfigWS ws, - required final VeilidConfigWSS wss}) = _$_VeilidConfigProtocol; + required final VeilidConfigWSS wss}) = _$VeilidConfigProtocolImpl; factory _VeilidConfigProtocol.fromJson(Map json) = - _$_VeilidConfigProtocol.fromJson; + _$VeilidConfigProtocolImpl.fromJson; @override VeilidConfigUDP get udp; @@ -3587,8 +3771,8 @@ abstract class _VeilidConfigProtocol implements VeilidConfigProtocol { VeilidConfigWSS get wss; @override @JsonKey(ignore: true) - _$$_VeilidConfigProtocolCopyWith<_$_VeilidConfigProtocol> get copyWith => - throw _privateConstructorUsedError; + _$$VeilidConfigProtocolImplCopyWith<_$VeilidConfigProtocolImpl> + get copyWith => throw _privateConstructorUsedError; } VeilidConfigTLS _$VeilidConfigTLSFromJson(Map json) { @@ -3654,11 +3838,11 @@ class _$VeilidConfigTLSCopyWithImpl<$Res, $Val extends VeilidConfigTLS> } /// @nodoc -abstract class _$$_VeilidConfigTLSCopyWith<$Res> +abstract class _$$VeilidConfigTLSImplCopyWith<$Res> implements $VeilidConfigTLSCopyWith<$Res> { - factory _$$_VeilidConfigTLSCopyWith( - _$_VeilidConfigTLS value, $Res Function(_$_VeilidConfigTLS) then) = - __$$_VeilidConfigTLSCopyWithImpl<$Res>; + factory _$$VeilidConfigTLSImplCopyWith(_$VeilidConfigTLSImpl value, + $Res Function(_$VeilidConfigTLSImpl) then) = + __$$VeilidConfigTLSImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -3668,11 +3852,11 @@ abstract class _$$_VeilidConfigTLSCopyWith<$Res> } /// @nodoc -class __$$_VeilidConfigTLSCopyWithImpl<$Res> - extends _$VeilidConfigTLSCopyWithImpl<$Res, _$_VeilidConfigTLS> - implements _$$_VeilidConfigTLSCopyWith<$Res> { - __$$_VeilidConfigTLSCopyWithImpl( - _$_VeilidConfigTLS _value, $Res Function(_$_VeilidConfigTLS) _then) +class __$$VeilidConfigTLSImplCopyWithImpl<$Res> + extends _$VeilidConfigTLSCopyWithImpl<$Res, _$VeilidConfigTLSImpl> + implements _$$VeilidConfigTLSImplCopyWith<$Res> { + __$$VeilidConfigTLSImplCopyWithImpl( + _$VeilidConfigTLSImpl _value, $Res Function(_$VeilidConfigTLSImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3682,7 +3866,7 @@ class __$$_VeilidConfigTLSCopyWithImpl<$Res> Object? privateKeyPath = null, Object? connectionInitialTimeoutMs = null, }) { - return _then(_$_VeilidConfigTLS( + return _then(_$VeilidConfigTLSImpl( certificatePath: null == certificatePath ? _value.certificatePath : certificatePath // ignore: cast_nullable_to_non_nullable @@ -3701,16 +3885,16 @@ class __$$_VeilidConfigTLSCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigTLS +class _$VeilidConfigTLSImpl with DiagnosticableTreeMixin implements _VeilidConfigTLS { - const _$_VeilidConfigTLS( + const _$VeilidConfigTLSImpl( {required this.certificatePath, required this.privateKeyPath, required this.connectionInitialTimeoutMs}); - factory _$_VeilidConfigTLS.fromJson(Map json) => - _$$_VeilidConfigTLSFromJson(json); + factory _$VeilidConfigTLSImpl.fromJson(Map json) => + _$$VeilidConfigTLSImplFromJson(json); @override final String certificatePath; @@ -3736,10 +3920,10 @@ class _$_VeilidConfigTLS } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigTLS && + other is _$VeilidConfigTLSImpl && (identical(other.certificatePath, certificatePath) || other.certificatePath == certificatePath) && (identical(other.privateKeyPath, privateKeyPath) || @@ -3758,12 +3942,13 @@ class _$_VeilidConfigTLS @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigTLSCopyWith<_$_VeilidConfigTLS> get copyWith => - __$$_VeilidConfigTLSCopyWithImpl<_$_VeilidConfigTLS>(this, _$identity); + _$$VeilidConfigTLSImplCopyWith<_$VeilidConfigTLSImpl> get copyWith => + __$$VeilidConfigTLSImplCopyWithImpl<_$VeilidConfigTLSImpl>( + this, _$identity); @override Map toJson() { - return _$$_VeilidConfigTLSToJson( + return _$$VeilidConfigTLSImplToJson( this, ); } @@ -3773,10 +3958,10 @@ abstract class _VeilidConfigTLS implements VeilidConfigTLS { const factory _VeilidConfigTLS( {required final String certificatePath, required final String privateKeyPath, - required final int connectionInitialTimeoutMs}) = _$_VeilidConfigTLS; + required final int connectionInitialTimeoutMs}) = _$VeilidConfigTLSImpl; factory _VeilidConfigTLS.fromJson(Map json) = - _$_VeilidConfigTLS.fromJson; + _$VeilidConfigTLSImpl.fromJson; @override String get certificatePath; @@ -3786,7 +3971,7 @@ abstract class _VeilidConfigTLS implements VeilidConfigTLS { int get connectionInitialTimeoutMs; @override @JsonKey(ignore: true) - _$$_VeilidConfigTLSCopyWith<_$_VeilidConfigTLS> get copyWith => + _$$VeilidConfigTLSImplCopyWith<_$VeilidConfigTLSImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3986,11 +4171,11 @@ class _$VeilidConfigDHTCopyWithImpl<$Res, $Val extends VeilidConfigDHT> } /// @nodoc -abstract class _$$_VeilidConfigDHTCopyWith<$Res> +abstract class _$$VeilidConfigDHTImplCopyWith<$Res> implements $VeilidConfigDHTCopyWith<$Res> { - factory _$$_VeilidConfigDHTCopyWith( - _$_VeilidConfigDHT value, $Res Function(_$_VeilidConfigDHT) then) = - __$$_VeilidConfigDHTCopyWithImpl<$Res>; + factory _$$VeilidConfigDHTImplCopyWith(_$VeilidConfigDHTImpl value, + $Res Function(_$VeilidConfigDHTImpl) then) = + __$$VeilidConfigDHTImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -4019,11 +4204,11 @@ abstract class _$$_VeilidConfigDHTCopyWith<$Res> } /// @nodoc -class __$$_VeilidConfigDHTCopyWithImpl<$Res> - extends _$VeilidConfigDHTCopyWithImpl<$Res, _$_VeilidConfigDHT> - implements _$$_VeilidConfigDHTCopyWith<$Res> { - __$$_VeilidConfigDHTCopyWithImpl( - _$_VeilidConfigDHT _value, $Res Function(_$_VeilidConfigDHT) _then) +class __$$VeilidConfigDHTImplCopyWithImpl<$Res> + extends _$VeilidConfigDHTCopyWithImpl<$Res, _$VeilidConfigDHTImpl> + implements _$$VeilidConfigDHTImplCopyWith<$Res> { + __$$VeilidConfigDHTImplCopyWithImpl( + _$VeilidConfigDHTImpl _value, $Res Function(_$VeilidConfigDHTImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -4052,7 +4237,7 @@ class __$$_VeilidConfigDHTCopyWithImpl<$Res> Object? memberWatchLimit = null, Object? maxWatchExpirationMs = null, }) { - return _then(_$_VeilidConfigDHT( + return _then(_$VeilidConfigDHTImpl( resolveNodeTimeoutMs: null == resolveNodeTimeoutMs ? _value.resolveNodeTimeoutMs : resolveNodeTimeoutMs // ignore: cast_nullable_to_non_nullable @@ -4147,10 +4332,10 @@ class __$$_VeilidConfigDHTCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigDHT +class _$VeilidConfigDHTImpl with DiagnosticableTreeMixin implements _VeilidConfigDHT { - const _$_VeilidConfigDHT( + const _$VeilidConfigDHTImpl( {required this.resolveNodeTimeoutMs, required this.resolveNodeCount, required this.resolveNodeFanout, @@ -4174,8 +4359,8 @@ class _$_VeilidConfigDHT required this.memberWatchLimit, required this.maxWatchExpirationMs}); - factory _$_VeilidConfigDHT.fromJson(Map json) => - _$$_VeilidConfigDHTFromJson(json); + factory _$VeilidConfigDHTImpl.fromJson(Map json) => + _$$VeilidConfigDHTImplFromJson(json); @override final int resolveNodeTimeoutMs; @@ -4261,10 +4446,10 @@ class _$_VeilidConfigDHT } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigDHT && + other is _$VeilidConfigDHTImpl && (identical(other.resolveNodeTimeoutMs, resolveNodeTimeoutMs) || other.resolveNodeTimeoutMs == resolveNodeTimeoutMs) && (identical(other.resolveNodeCount, resolveNodeCount) || @@ -4348,12 +4533,13 @@ class _$_VeilidConfigDHT @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigDHTCopyWith<_$_VeilidConfigDHT> get copyWith => - __$$_VeilidConfigDHTCopyWithImpl<_$_VeilidConfigDHT>(this, _$identity); + _$$VeilidConfigDHTImplCopyWith<_$VeilidConfigDHTImpl> get copyWith => + __$$VeilidConfigDHTImplCopyWithImpl<_$VeilidConfigDHTImpl>( + this, _$identity); @override Map toJson() { - return _$$_VeilidConfigDHTToJson( + return _$$VeilidConfigDHTImplToJson( this, ); } @@ -4382,10 +4568,10 @@ abstract class _VeilidConfigDHT implements VeilidConfigDHT { required final int remoteMaxStorageSpaceMb, required final int publicWatchLimit, required final int memberWatchLimit, - required final int maxWatchExpirationMs}) = _$_VeilidConfigDHT; + required final int maxWatchExpirationMs}) = _$VeilidConfigDHTImpl; factory _VeilidConfigDHT.fromJson(Map json) = - _$_VeilidConfigDHT.fromJson; + _$VeilidConfigDHTImpl.fromJson; @override int get resolveNodeTimeoutMs; @@ -4433,7 +4619,7 @@ abstract class _VeilidConfigDHT implements VeilidConfigDHT { int get maxWatchExpirationMs; @override @JsonKey(ignore: true) - _$$_VeilidConfigDHTCopyWith<_$_VeilidConfigDHT> get copyWith => + _$$VeilidConfigDHTImplCopyWith<_$VeilidConfigDHTImpl> get copyWith => throw _privateConstructorUsedError; } @@ -4528,11 +4714,11 @@ class _$VeilidConfigRPCCopyWithImpl<$Res, $Val extends VeilidConfigRPC> } /// @nodoc -abstract class _$$_VeilidConfigRPCCopyWith<$Res> +abstract class _$$VeilidConfigRPCImplCopyWith<$Res> implements $VeilidConfigRPCCopyWith<$Res> { - factory _$$_VeilidConfigRPCCopyWith( - _$_VeilidConfigRPC value, $Res Function(_$_VeilidConfigRPC) then) = - __$$_VeilidConfigRPCCopyWithImpl<$Res>; + factory _$$VeilidConfigRPCImplCopyWith(_$VeilidConfigRPCImpl value, + $Res Function(_$VeilidConfigRPCImpl) then) = + __$$VeilidConfigRPCImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -4546,11 +4732,11 @@ abstract class _$$_VeilidConfigRPCCopyWith<$Res> } /// @nodoc -class __$$_VeilidConfigRPCCopyWithImpl<$Res> - extends _$VeilidConfigRPCCopyWithImpl<$Res, _$_VeilidConfigRPC> - implements _$$_VeilidConfigRPCCopyWith<$Res> { - __$$_VeilidConfigRPCCopyWithImpl( - _$_VeilidConfigRPC _value, $Res Function(_$_VeilidConfigRPC) _then) +class __$$VeilidConfigRPCImplCopyWithImpl<$Res> + extends _$VeilidConfigRPCCopyWithImpl<$Res, _$VeilidConfigRPCImpl> + implements _$$VeilidConfigRPCImplCopyWith<$Res> { + __$$VeilidConfigRPCImplCopyWithImpl( + _$VeilidConfigRPCImpl _value, $Res Function(_$VeilidConfigRPCImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -4564,7 +4750,7 @@ class __$$_VeilidConfigRPCCopyWithImpl<$Res> Object? maxTimestampBehindMs = freezed, Object? maxTimestampAheadMs = freezed, }) { - return _then(_$_VeilidConfigRPC( + return _then(_$VeilidConfigRPCImpl( concurrency: null == concurrency ? _value.concurrency : concurrency // ignore: cast_nullable_to_non_nullable @@ -4599,10 +4785,10 @@ class __$$_VeilidConfigRPCCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigRPC +class _$VeilidConfigRPCImpl with DiagnosticableTreeMixin implements _VeilidConfigRPC { - const _$_VeilidConfigRPC( + const _$VeilidConfigRPCImpl( {required this.concurrency, required this.queueSize, required this.timeoutMs, @@ -4611,8 +4797,8 @@ class _$_VeilidConfigRPC this.maxTimestampBehindMs, this.maxTimestampAheadMs}); - factory _$_VeilidConfigRPC.fromJson(Map json) => - _$$_VeilidConfigRPCFromJson(json); + factory _$VeilidConfigRPCImpl.fromJson(Map json) => + _$$VeilidConfigRPCImplFromJson(json); @override final int concurrency; @@ -4649,10 +4835,10 @@ class _$_VeilidConfigRPC } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigRPC && + other is _$VeilidConfigRPCImpl && (identical(other.concurrency, concurrency) || other.concurrency == concurrency) && (identical(other.queueSize, queueSize) || @@ -4684,12 +4870,13 @@ class _$_VeilidConfigRPC @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigRPCCopyWith<_$_VeilidConfigRPC> get copyWith => - __$$_VeilidConfigRPCCopyWithImpl<_$_VeilidConfigRPC>(this, _$identity); + _$$VeilidConfigRPCImplCopyWith<_$VeilidConfigRPCImpl> get copyWith => + __$$VeilidConfigRPCImplCopyWithImpl<_$VeilidConfigRPCImpl>( + this, _$identity); @override Map toJson() { - return _$$_VeilidConfigRPCToJson( + return _$$VeilidConfigRPCImplToJson( this, ); } @@ -4703,10 +4890,10 @@ abstract class _VeilidConfigRPC implements VeilidConfigRPC { required final int maxRouteHopCount, required final int defaultRouteHopCount, final int? maxTimestampBehindMs, - final int? maxTimestampAheadMs}) = _$_VeilidConfigRPC; + final int? maxTimestampAheadMs}) = _$VeilidConfigRPCImpl; factory _VeilidConfigRPC.fromJson(Map json) = - _$_VeilidConfigRPC.fromJson; + _$VeilidConfigRPCImpl.fromJson; @override int get concurrency; @@ -4724,7 +4911,7 @@ abstract class _VeilidConfigRPC implements VeilidConfigRPC { int? get maxTimestampAheadMs; @override @JsonKey(ignore: true) - _$$_VeilidConfigRPCCopyWith<_$_VeilidConfigRPC> get copyWith => + _$$VeilidConfigRPCImplCopyWith<_$VeilidConfigRPCImpl> get copyWith => throw _privateConstructorUsedError; } @@ -4830,12 +5017,12 @@ class _$VeilidConfigRoutingTableCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_VeilidConfigRoutingTableCopyWith<$Res> +abstract class _$$VeilidConfigRoutingTableImplCopyWith<$Res> implements $VeilidConfigRoutingTableCopyWith<$Res> { - factory _$$_VeilidConfigRoutingTableCopyWith( - _$_VeilidConfigRoutingTable value, - $Res Function(_$_VeilidConfigRoutingTable) then) = - __$$_VeilidConfigRoutingTableCopyWithImpl<$Res>; + factory _$$VeilidConfigRoutingTableImplCopyWith( + _$VeilidConfigRoutingTableImpl value, + $Res Function(_$VeilidConfigRoutingTableImpl) then) = + __$$VeilidConfigRoutingTableImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -4850,12 +5037,13 @@ abstract class _$$_VeilidConfigRoutingTableCopyWith<$Res> } /// @nodoc -class __$$_VeilidConfigRoutingTableCopyWithImpl<$Res> +class __$$VeilidConfigRoutingTableImplCopyWithImpl<$Res> extends _$VeilidConfigRoutingTableCopyWithImpl<$Res, - _$_VeilidConfigRoutingTable> - implements _$$_VeilidConfigRoutingTableCopyWith<$Res> { - __$$_VeilidConfigRoutingTableCopyWithImpl(_$_VeilidConfigRoutingTable _value, - $Res Function(_$_VeilidConfigRoutingTable) _then) + _$VeilidConfigRoutingTableImpl> + implements _$$VeilidConfigRoutingTableImplCopyWith<$Res> { + __$$VeilidConfigRoutingTableImplCopyWithImpl( + _$VeilidConfigRoutingTableImpl _value, + $Res Function(_$VeilidConfigRoutingTableImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -4870,7 +5058,7 @@ class __$$_VeilidConfigRoutingTableCopyWithImpl<$Res> Object? limitAttachedGood = null, Object? limitAttachedWeak = null, }) { - return _then(_$_VeilidConfigRoutingTable( + return _then(_$VeilidConfigRoutingTableImpl( nodeId: null == nodeId ? _value._nodeId : nodeId // ignore: cast_nullable_to_non_nullable @@ -4909,10 +5097,10 @@ class __$$_VeilidConfigRoutingTableCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigRoutingTable +class _$VeilidConfigRoutingTableImpl with DiagnosticableTreeMixin implements _VeilidConfigRoutingTable { - const _$_VeilidConfigRoutingTable( + const _$VeilidConfigRoutingTableImpl( {required final List> nodeId, required final List> nodeIdSecret, required final List bootstrap, @@ -4925,8 +5113,8 @@ class _$_VeilidConfigRoutingTable _nodeIdSecret = nodeIdSecret, _bootstrap = bootstrap; - factory _$_VeilidConfigRoutingTable.fromJson(Map json) => - _$$_VeilidConfigRoutingTableFromJson(json); + factory _$VeilidConfigRoutingTableImpl.fromJson(Map json) => + _$$VeilidConfigRoutingTableImplFromJson(json); final List> _nodeId; @override @@ -4984,10 +5172,10 @@ class _$_VeilidConfigRoutingTable } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigRoutingTable && + other is _$VeilidConfigRoutingTableImpl && const DeepCollectionEquality().equals(other._nodeId, _nodeId) && const DeepCollectionEquality() .equals(other._nodeIdSecret, _nodeIdSecret) && @@ -5021,13 +5209,13 @@ class _$_VeilidConfigRoutingTable @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigRoutingTableCopyWith<_$_VeilidConfigRoutingTable> - get copyWith => __$$_VeilidConfigRoutingTableCopyWithImpl< - _$_VeilidConfigRoutingTable>(this, _$identity); + _$$VeilidConfigRoutingTableImplCopyWith<_$VeilidConfigRoutingTableImpl> + get copyWith => __$$VeilidConfigRoutingTableImplCopyWithImpl< + _$VeilidConfigRoutingTableImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidConfigRoutingTableToJson( + return _$$VeilidConfigRoutingTableImplToJson( this, ); } @@ -5042,10 +5230,10 @@ abstract class _VeilidConfigRoutingTable implements VeilidConfigRoutingTable { required final int limitFullyAttached, required final int limitAttachedStrong, required final int limitAttachedGood, - required final int limitAttachedWeak}) = _$_VeilidConfigRoutingTable; + required final int limitAttachedWeak}) = _$VeilidConfigRoutingTableImpl; factory _VeilidConfigRoutingTable.fromJson(Map json) = - _$_VeilidConfigRoutingTable.fromJson; + _$VeilidConfigRoutingTableImpl.fromJson; @override List> get nodeId; @@ -5065,7 +5253,7 @@ abstract class _VeilidConfigRoutingTable implements VeilidConfigRoutingTable { int get limitAttachedWeak; @override @JsonKey(ignore: true) - _$$_VeilidConfigRoutingTableCopyWith<_$_VeilidConfigRoutingTable> + _$$VeilidConfigRoutingTableImplCopyWith<_$VeilidConfigRoutingTableImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5301,11 +5489,11 @@ class _$VeilidConfigNetworkCopyWithImpl<$Res, $Val extends VeilidConfigNetwork> } /// @nodoc -abstract class _$$_VeilidConfigNetworkCopyWith<$Res> +abstract class _$$VeilidConfigNetworkImplCopyWith<$Res> implements $VeilidConfigNetworkCopyWith<$Res> { - factory _$$_VeilidConfigNetworkCopyWith(_$_VeilidConfigNetwork value, - $Res Function(_$_VeilidConfigNetwork) then) = - __$$_VeilidConfigNetworkCopyWithImpl<$Res>; + factory _$$VeilidConfigNetworkImplCopyWith(_$VeilidConfigNetworkImpl value, + $Res Function(_$VeilidConfigNetworkImpl) then) = + __$$VeilidConfigNetworkImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -5344,11 +5532,11 @@ abstract class _$$_VeilidConfigNetworkCopyWith<$Res> } /// @nodoc -class __$$_VeilidConfigNetworkCopyWithImpl<$Res> - extends _$VeilidConfigNetworkCopyWithImpl<$Res, _$_VeilidConfigNetwork> - implements _$$_VeilidConfigNetworkCopyWith<$Res> { - __$$_VeilidConfigNetworkCopyWithImpl(_$_VeilidConfigNetwork _value, - $Res Function(_$_VeilidConfigNetwork) _then) +class __$$VeilidConfigNetworkImplCopyWithImpl<$Res> + extends _$VeilidConfigNetworkCopyWithImpl<$Res, _$VeilidConfigNetworkImpl> + implements _$$VeilidConfigNetworkImplCopyWith<$Res> { + __$$VeilidConfigNetworkImplCopyWithImpl(_$VeilidConfigNetworkImpl _value, + $Res Function(_$VeilidConfigNetworkImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -5374,7 +5562,7 @@ class __$$_VeilidConfigNetworkCopyWithImpl<$Res> Object? protocol = null, Object? networkKeyPassword = freezed, }) { - return _then(_$_VeilidConfigNetwork( + return _then(_$VeilidConfigNetworkImpl( connectionInitialTimeoutMs: null == connectionInitialTimeoutMs ? _value.connectionInitialTimeoutMs : connectionInitialTimeoutMs // ignore: cast_nullable_to_non_nullable @@ -5457,10 +5645,10 @@ class __$$_VeilidConfigNetworkCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigNetwork +class _$VeilidConfigNetworkImpl with DiagnosticableTreeMixin implements _VeilidConfigNetwork { - const _$_VeilidConfigNetwork( + const _$VeilidConfigNetworkImpl( {required this.connectionInitialTimeoutMs, required this.connectionInactivityTimeoutMs, required this.maxConnectionsPerIp4, @@ -5481,8 +5669,8 @@ class _$_VeilidConfigNetwork required this.protocol, this.networkKeyPassword}); - factory _$_VeilidConfigNetwork.fromJson(Map json) => - _$$_VeilidConfigNetworkFromJson(json); + factory _$VeilidConfigNetworkImpl.fromJson(Map json) => + _$$VeilidConfigNetworkImplFromJson(json); @override final int connectionInitialTimeoutMs; @@ -5563,10 +5751,10 @@ class _$_VeilidConfigNetwork } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigNetwork && + other is _$VeilidConfigNetworkImpl && (identical(other.connectionInitialTimeoutMs, connectionInitialTimeoutMs) || other.connectionInitialTimeoutMs == connectionInitialTimeoutMs) && @@ -5638,13 +5826,13 @@ class _$_VeilidConfigNetwork @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigNetworkCopyWith<_$_VeilidConfigNetwork> get copyWith => - __$$_VeilidConfigNetworkCopyWithImpl<_$_VeilidConfigNetwork>( + _$$VeilidConfigNetworkImplCopyWith<_$VeilidConfigNetworkImpl> get copyWith => + __$$VeilidConfigNetworkImplCopyWithImpl<_$VeilidConfigNetworkImpl>( this, _$identity); @override Map toJson() { - return _$$_VeilidConfigNetworkToJson( + return _$$VeilidConfigNetworkImplToJson( this, ); } @@ -5670,10 +5858,10 @@ abstract class _VeilidConfigNetwork implements VeilidConfigNetwork { required final VeilidConfigTLS tls, required final VeilidConfigApplication application, required final VeilidConfigProtocol protocol, - final String? networkKeyPassword}) = _$_VeilidConfigNetwork; + final String? networkKeyPassword}) = _$VeilidConfigNetworkImpl; factory _VeilidConfigNetwork.fromJson(Map json) = - _$_VeilidConfigNetwork.fromJson; + _$VeilidConfigNetworkImpl.fromJson; @override int get connectionInitialTimeoutMs; @@ -5715,7 +5903,7 @@ abstract class _VeilidConfigNetwork implements VeilidConfigNetwork { String? get networkKeyPassword; @override @JsonKey(ignore: true) - _$$_VeilidConfigNetworkCopyWith<_$_VeilidConfigNetwork> get copyWith => + _$$VeilidConfigNetworkImplCopyWith<_$VeilidConfigNetworkImpl> get copyWith => throw _privateConstructorUsedError; } @@ -5775,23 +5963,25 @@ class _$VeilidConfigTableStoreCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_VeilidConfigTableStoreCopyWith<$Res> +abstract class _$$VeilidConfigTableStoreImplCopyWith<$Res> implements $VeilidConfigTableStoreCopyWith<$Res> { - factory _$$_VeilidConfigTableStoreCopyWith(_$_VeilidConfigTableStore value, - $Res Function(_$_VeilidConfigTableStore) then) = - __$$_VeilidConfigTableStoreCopyWithImpl<$Res>; + factory _$$VeilidConfigTableStoreImplCopyWith( + _$VeilidConfigTableStoreImpl value, + $Res Function(_$VeilidConfigTableStoreImpl) then) = + __$$VeilidConfigTableStoreImplCopyWithImpl<$Res>; @override @useResult $Res call({String directory, bool delete}); } /// @nodoc -class __$$_VeilidConfigTableStoreCopyWithImpl<$Res> +class __$$VeilidConfigTableStoreImplCopyWithImpl<$Res> extends _$VeilidConfigTableStoreCopyWithImpl<$Res, - _$_VeilidConfigTableStore> - implements _$$_VeilidConfigTableStoreCopyWith<$Res> { - __$$_VeilidConfigTableStoreCopyWithImpl(_$_VeilidConfigTableStore _value, - $Res Function(_$_VeilidConfigTableStore) _then) + _$VeilidConfigTableStoreImpl> + implements _$$VeilidConfigTableStoreImplCopyWith<$Res> { + __$$VeilidConfigTableStoreImplCopyWithImpl( + _$VeilidConfigTableStoreImpl _value, + $Res Function(_$VeilidConfigTableStoreImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -5800,7 +5990,7 @@ class __$$_VeilidConfigTableStoreCopyWithImpl<$Res> Object? directory = null, Object? delete = null, }) { - return _then(_$_VeilidConfigTableStore( + return _then(_$VeilidConfigTableStoreImpl( directory: null == directory ? _value.directory : directory // ignore: cast_nullable_to_non_nullable @@ -5815,14 +6005,14 @@ class __$$_VeilidConfigTableStoreCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigTableStore +class _$VeilidConfigTableStoreImpl with DiagnosticableTreeMixin implements _VeilidConfigTableStore { - const _$_VeilidConfigTableStore( + const _$VeilidConfigTableStoreImpl( {required this.directory, required this.delete}); - factory _$_VeilidConfigTableStore.fromJson(Map json) => - _$$_VeilidConfigTableStoreFromJson(json); + factory _$VeilidConfigTableStoreImpl.fromJson(Map json) => + _$$VeilidConfigTableStoreImplFromJson(json); @override final String directory; @@ -5844,10 +6034,10 @@ class _$_VeilidConfigTableStore } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigTableStore && + other is _$VeilidConfigTableStoreImpl && (identical(other.directory, directory) || other.directory == directory) && (identical(other.delete, delete) || other.delete == delete)); @@ -5860,13 +6050,13 @@ class _$_VeilidConfigTableStore @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigTableStoreCopyWith<_$_VeilidConfigTableStore> get copyWith => - __$$_VeilidConfigTableStoreCopyWithImpl<_$_VeilidConfigTableStore>( - this, _$identity); + _$$VeilidConfigTableStoreImplCopyWith<_$VeilidConfigTableStoreImpl> + get copyWith => __$$VeilidConfigTableStoreImplCopyWithImpl< + _$VeilidConfigTableStoreImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidConfigTableStoreToJson( + return _$$VeilidConfigTableStoreImplToJson( this, ); } @@ -5875,10 +6065,10 @@ class _$_VeilidConfigTableStore abstract class _VeilidConfigTableStore implements VeilidConfigTableStore { const factory _VeilidConfigTableStore( {required final String directory, - required final bool delete}) = _$_VeilidConfigTableStore; + required final bool delete}) = _$VeilidConfigTableStoreImpl; factory _VeilidConfigTableStore.fromJson(Map json) = - _$_VeilidConfigTableStore.fromJson; + _$VeilidConfigTableStoreImpl.fromJson; @override String get directory; @@ -5886,8 +6076,8 @@ abstract class _VeilidConfigTableStore implements VeilidConfigTableStore { bool get delete; @override @JsonKey(ignore: true) - _$$_VeilidConfigTableStoreCopyWith<_$_VeilidConfigTableStore> get copyWith => - throw _privateConstructorUsedError; + _$$VeilidConfigTableStoreImplCopyWith<_$VeilidConfigTableStoreImpl> + get copyWith => throw _privateConstructorUsedError; } VeilidConfigBlockStore _$VeilidConfigBlockStoreFromJson( @@ -5946,23 +6136,25 @@ class _$VeilidConfigBlockStoreCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_VeilidConfigBlockStoreCopyWith<$Res> +abstract class _$$VeilidConfigBlockStoreImplCopyWith<$Res> implements $VeilidConfigBlockStoreCopyWith<$Res> { - factory _$$_VeilidConfigBlockStoreCopyWith(_$_VeilidConfigBlockStore value, - $Res Function(_$_VeilidConfigBlockStore) then) = - __$$_VeilidConfigBlockStoreCopyWithImpl<$Res>; + factory _$$VeilidConfigBlockStoreImplCopyWith( + _$VeilidConfigBlockStoreImpl value, + $Res Function(_$VeilidConfigBlockStoreImpl) then) = + __$$VeilidConfigBlockStoreImplCopyWithImpl<$Res>; @override @useResult $Res call({String directory, bool delete}); } /// @nodoc -class __$$_VeilidConfigBlockStoreCopyWithImpl<$Res> +class __$$VeilidConfigBlockStoreImplCopyWithImpl<$Res> extends _$VeilidConfigBlockStoreCopyWithImpl<$Res, - _$_VeilidConfigBlockStore> - implements _$$_VeilidConfigBlockStoreCopyWith<$Res> { - __$$_VeilidConfigBlockStoreCopyWithImpl(_$_VeilidConfigBlockStore _value, - $Res Function(_$_VeilidConfigBlockStore) _then) + _$VeilidConfigBlockStoreImpl> + implements _$$VeilidConfigBlockStoreImplCopyWith<$Res> { + __$$VeilidConfigBlockStoreImplCopyWithImpl( + _$VeilidConfigBlockStoreImpl _value, + $Res Function(_$VeilidConfigBlockStoreImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -5971,7 +6163,7 @@ class __$$_VeilidConfigBlockStoreCopyWithImpl<$Res> Object? directory = null, Object? delete = null, }) { - return _then(_$_VeilidConfigBlockStore( + return _then(_$VeilidConfigBlockStoreImpl( directory: null == directory ? _value.directory : directory // ignore: cast_nullable_to_non_nullable @@ -5986,14 +6178,14 @@ class __$$_VeilidConfigBlockStoreCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigBlockStore +class _$VeilidConfigBlockStoreImpl with DiagnosticableTreeMixin implements _VeilidConfigBlockStore { - const _$_VeilidConfigBlockStore( + const _$VeilidConfigBlockStoreImpl( {required this.directory, required this.delete}); - factory _$_VeilidConfigBlockStore.fromJson(Map json) => - _$$_VeilidConfigBlockStoreFromJson(json); + factory _$VeilidConfigBlockStoreImpl.fromJson(Map json) => + _$$VeilidConfigBlockStoreImplFromJson(json); @override final String directory; @@ -6015,10 +6207,10 @@ class _$_VeilidConfigBlockStore } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigBlockStore && + other is _$VeilidConfigBlockStoreImpl && (identical(other.directory, directory) || other.directory == directory) && (identical(other.delete, delete) || other.delete == delete)); @@ -6031,13 +6223,13 @@ class _$_VeilidConfigBlockStore @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigBlockStoreCopyWith<_$_VeilidConfigBlockStore> get copyWith => - __$$_VeilidConfigBlockStoreCopyWithImpl<_$_VeilidConfigBlockStore>( - this, _$identity); + _$$VeilidConfigBlockStoreImplCopyWith<_$VeilidConfigBlockStoreImpl> + get copyWith => __$$VeilidConfigBlockStoreImplCopyWithImpl< + _$VeilidConfigBlockStoreImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidConfigBlockStoreToJson( + return _$$VeilidConfigBlockStoreImplToJson( this, ); } @@ -6046,10 +6238,10 @@ class _$_VeilidConfigBlockStore abstract class _VeilidConfigBlockStore implements VeilidConfigBlockStore { const factory _VeilidConfigBlockStore( {required final String directory, - required final bool delete}) = _$_VeilidConfigBlockStore; + required final bool delete}) = _$VeilidConfigBlockStoreImpl; factory _VeilidConfigBlockStore.fromJson(Map json) = - _$_VeilidConfigBlockStore.fromJson; + _$VeilidConfigBlockStoreImpl.fromJson; @override String get directory; @@ -6057,8 +6249,8 @@ abstract class _VeilidConfigBlockStore implements VeilidConfigBlockStore { bool get delete; @override @JsonKey(ignore: true) - _$$_VeilidConfigBlockStoreCopyWith<_$_VeilidConfigBlockStore> get copyWith => - throw _privateConstructorUsedError; + _$$VeilidConfigBlockStoreImplCopyWith<_$VeilidConfigBlockStoreImpl> + get copyWith => throw _privateConstructorUsedError; } VeilidConfigProtectedStore _$VeilidConfigProtectedStoreFromJson( @@ -6149,12 +6341,12 @@ class _$VeilidConfigProtectedStoreCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_VeilidConfigProtectedStoreCopyWith<$Res> +abstract class _$$VeilidConfigProtectedStoreImplCopyWith<$Res> implements $VeilidConfigProtectedStoreCopyWith<$Res> { - factory _$$_VeilidConfigProtectedStoreCopyWith( - _$_VeilidConfigProtectedStore value, - $Res Function(_$_VeilidConfigProtectedStore) then) = - __$$_VeilidConfigProtectedStoreCopyWithImpl<$Res>; + factory _$$VeilidConfigProtectedStoreImplCopyWith( + _$VeilidConfigProtectedStoreImpl value, + $Res Function(_$VeilidConfigProtectedStoreImpl) then) = + __$$VeilidConfigProtectedStoreImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -6167,13 +6359,13 @@ abstract class _$$_VeilidConfigProtectedStoreCopyWith<$Res> } /// @nodoc -class __$$_VeilidConfigProtectedStoreCopyWithImpl<$Res> +class __$$VeilidConfigProtectedStoreImplCopyWithImpl<$Res> extends _$VeilidConfigProtectedStoreCopyWithImpl<$Res, - _$_VeilidConfigProtectedStore> - implements _$$_VeilidConfigProtectedStoreCopyWith<$Res> { - __$$_VeilidConfigProtectedStoreCopyWithImpl( - _$_VeilidConfigProtectedStore _value, - $Res Function(_$_VeilidConfigProtectedStore) _then) + _$VeilidConfigProtectedStoreImpl> + implements _$$VeilidConfigProtectedStoreImplCopyWith<$Res> { + __$$VeilidConfigProtectedStoreImplCopyWithImpl( + _$VeilidConfigProtectedStoreImpl _value, + $Res Function(_$VeilidConfigProtectedStoreImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6186,7 +6378,7 @@ class __$$_VeilidConfigProtectedStoreCopyWithImpl<$Res> Object? deviceEncryptionKeyPassword = null, Object? newDeviceEncryptionKeyPassword = freezed, }) { - return _then(_$_VeilidConfigProtectedStore( + return _then(_$VeilidConfigProtectedStoreImpl( allowInsecureFallback: null == allowInsecureFallback ? _value.allowInsecureFallback : allowInsecureFallback // ignore: cast_nullable_to_non_nullable @@ -6217,10 +6409,10 @@ class __$$_VeilidConfigProtectedStoreCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigProtectedStore +class _$VeilidConfigProtectedStoreImpl with DiagnosticableTreeMixin implements _VeilidConfigProtectedStore { - const _$_VeilidConfigProtectedStore( + const _$VeilidConfigProtectedStoreImpl( {required this.allowInsecureFallback, required this.alwaysUseInsecureStorage, required this.directory, @@ -6228,8 +6420,9 @@ class _$_VeilidConfigProtectedStore required this.deviceEncryptionKeyPassword, this.newDeviceEncryptionKeyPassword}); - factory _$_VeilidConfigProtectedStore.fromJson(Map json) => - _$$_VeilidConfigProtectedStoreFromJson(json); + factory _$VeilidConfigProtectedStoreImpl.fromJson( + Map json) => + _$$VeilidConfigProtectedStoreImplFromJson(json); @override final bool allowInsecureFallback; @@ -6266,10 +6459,10 @@ class _$_VeilidConfigProtectedStore } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigProtectedStore && + other is _$VeilidConfigProtectedStoreImpl && (identical(other.allowInsecureFallback, allowInsecureFallback) || other.allowInsecureFallback == allowInsecureFallback) && (identical( @@ -6302,13 +6495,13 @@ class _$_VeilidConfigProtectedStore @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigProtectedStoreCopyWith<_$_VeilidConfigProtectedStore> - get copyWith => __$$_VeilidConfigProtectedStoreCopyWithImpl< - _$_VeilidConfigProtectedStore>(this, _$identity); + _$$VeilidConfigProtectedStoreImplCopyWith<_$VeilidConfigProtectedStoreImpl> + get copyWith => __$$VeilidConfigProtectedStoreImplCopyWithImpl< + _$VeilidConfigProtectedStoreImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidConfigProtectedStoreToJson( + return _$$VeilidConfigProtectedStoreImplToJson( this, ); } @@ -6323,10 +6516,10 @@ abstract class _VeilidConfigProtectedStore required final bool delete, required final String deviceEncryptionKeyPassword, final String? newDeviceEncryptionKeyPassword}) = - _$_VeilidConfigProtectedStore; + _$VeilidConfigProtectedStoreImpl; factory _VeilidConfigProtectedStore.fromJson(Map json) = - _$_VeilidConfigProtectedStore.fromJson; + _$VeilidConfigProtectedStoreImpl.fromJson; @override bool get allowInsecureFallback; @@ -6342,7 +6535,7 @@ abstract class _VeilidConfigProtectedStore String? get newDeviceEncryptionKeyPassword; @override @JsonKey(ignore: true) - _$$_VeilidConfigProtectedStoreCopyWith<_$_VeilidConfigProtectedStore> + _$$VeilidConfigProtectedStoreImplCopyWith<_$VeilidConfigProtectedStoreImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6396,24 +6589,25 @@ class _$VeilidConfigCapabilitiesCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_VeilidConfigCapabilitiesCopyWith<$Res> +abstract class _$$VeilidConfigCapabilitiesImplCopyWith<$Res> implements $VeilidConfigCapabilitiesCopyWith<$Res> { - factory _$$_VeilidConfigCapabilitiesCopyWith( - _$_VeilidConfigCapabilities value, - $Res Function(_$_VeilidConfigCapabilities) then) = - __$$_VeilidConfigCapabilitiesCopyWithImpl<$Res>; + factory _$$VeilidConfigCapabilitiesImplCopyWith( + _$VeilidConfigCapabilitiesImpl value, + $Res Function(_$VeilidConfigCapabilitiesImpl) then) = + __$$VeilidConfigCapabilitiesImplCopyWithImpl<$Res>; @override @useResult $Res call({List disable}); } /// @nodoc -class __$$_VeilidConfigCapabilitiesCopyWithImpl<$Res> +class __$$VeilidConfigCapabilitiesImplCopyWithImpl<$Res> extends _$VeilidConfigCapabilitiesCopyWithImpl<$Res, - _$_VeilidConfigCapabilities> - implements _$$_VeilidConfigCapabilitiesCopyWith<$Res> { - __$$_VeilidConfigCapabilitiesCopyWithImpl(_$_VeilidConfigCapabilities _value, - $Res Function(_$_VeilidConfigCapabilities) _then) + _$VeilidConfigCapabilitiesImpl> + implements _$$VeilidConfigCapabilitiesImplCopyWith<$Res> { + __$$VeilidConfigCapabilitiesImplCopyWithImpl( + _$VeilidConfigCapabilitiesImpl _value, + $Res Function(_$VeilidConfigCapabilitiesImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6421,7 +6615,7 @@ class __$$_VeilidConfigCapabilitiesCopyWithImpl<$Res> $Res call({ Object? disable = null, }) { - return _then(_$_VeilidConfigCapabilities( + return _then(_$VeilidConfigCapabilitiesImpl( disable: null == disable ? _value._disable : disable // ignore: cast_nullable_to_non_nullable @@ -6432,14 +6626,14 @@ class __$$_VeilidConfigCapabilitiesCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfigCapabilities +class _$VeilidConfigCapabilitiesImpl with DiagnosticableTreeMixin implements _VeilidConfigCapabilities { - const _$_VeilidConfigCapabilities({required final List disable}) + const _$VeilidConfigCapabilitiesImpl({required final List disable}) : _disable = disable; - factory _$_VeilidConfigCapabilities.fromJson(Map json) => - _$$_VeilidConfigCapabilitiesFromJson(json); + factory _$VeilidConfigCapabilitiesImpl.fromJson(Map json) => + _$$VeilidConfigCapabilitiesImplFromJson(json); final List _disable; @override @@ -6463,10 +6657,10 @@ class _$_VeilidConfigCapabilities } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfigCapabilities && + other is _$VeilidConfigCapabilitiesImpl && const DeepCollectionEquality().equals(other._disable, _disable)); } @@ -6478,13 +6672,13 @@ class _$_VeilidConfigCapabilities @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigCapabilitiesCopyWith<_$_VeilidConfigCapabilities> - get copyWith => __$$_VeilidConfigCapabilitiesCopyWithImpl< - _$_VeilidConfigCapabilities>(this, _$identity); + _$$VeilidConfigCapabilitiesImplCopyWith<_$VeilidConfigCapabilitiesImpl> + get copyWith => __$$VeilidConfigCapabilitiesImplCopyWithImpl< + _$VeilidConfigCapabilitiesImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidConfigCapabilitiesToJson( + return _$$VeilidConfigCapabilitiesImplToJson( this, ); } @@ -6492,16 +6686,16 @@ class _$_VeilidConfigCapabilities abstract class _VeilidConfigCapabilities implements VeilidConfigCapabilities { const factory _VeilidConfigCapabilities( - {required final List disable}) = _$_VeilidConfigCapabilities; + {required final List disable}) = _$VeilidConfigCapabilitiesImpl; factory _VeilidConfigCapabilities.fromJson(Map json) = - _$_VeilidConfigCapabilities.fromJson; + _$VeilidConfigCapabilitiesImpl.fromJson; @override List get disable; @override @JsonKey(ignore: true) - _$$_VeilidConfigCapabilitiesCopyWith<_$_VeilidConfigCapabilities> + _$$VeilidConfigCapabilitiesImplCopyWith<_$VeilidConfigCapabilitiesImpl> get copyWith => throw _privateConstructorUsedError; } @@ -6646,11 +6840,11 @@ class _$VeilidConfigCopyWithImpl<$Res, $Val extends VeilidConfig> } /// @nodoc -abstract class _$$_VeilidConfigCopyWith<$Res> +abstract class _$$VeilidConfigImplCopyWith<$Res> implements $VeilidConfigCopyWith<$Res> { - factory _$$_VeilidConfigCopyWith( - _$_VeilidConfig value, $Res Function(_$_VeilidConfig) then) = - __$$_VeilidConfigCopyWithImpl<$Res>; + factory _$$VeilidConfigImplCopyWith( + _$VeilidConfigImpl value, $Res Function(_$VeilidConfigImpl) then) = + __$$VeilidConfigImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -6675,11 +6869,11 @@ abstract class _$$_VeilidConfigCopyWith<$Res> } /// @nodoc -class __$$_VeilidConfigCopyWithImpl<$Res> - extends _$VeilidConfigCopyWithImpl<$Res, _$_VeilidConfig> - implements _$$_VeilidConfigCopyWith<$Res> { - __$$_VeilidConfigCopyWithImpl( - _$_VeilidConfig _value, $Res Function(_$_VeilidConfig) _then) +class __$$VeilidConfigImplCopyWithImpl<$Res> + extends _$VeilidConfigCopyWithImpl<$Res, _$VeilidConfigImpl> + implements _$$VeilidConfigImplCopyWith<$Res> { + __$$VeilidConfigImplCopyWithImpl( + _$VeilidConfigImpl _value, $Res Function(_$VeilidConfigImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -6693,7 +6887,7 @@ class __$$_VeilidConfigCopyWithImpl<$Res> Object? blockStore = null, Object? network = null, }) { - return _then(_$_VeilidConfig( + return _then(_$VeilidConfigImpl( programName: null == programName ? _value.programName : programName // ignore: cast_nullable_to_non_nullable @@ -6728,8 +6922,8 @@ class __$$_VeilidConfigCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidConfig with DiagnosticableTreeMixin implements _VeilidConfig { - const _$_VeilidConfig( +class _$VeilidConfigImpl with DiagnosticableTreeMixin implements _VeilidConfig { + const _$VeilidConfigImpl( {required this.programName, required this.namespace, required this.capabilities, @@ -6738,8 +6932,8 @@ class _$_VeilidConfig with DiagnosticableTreeMixin implements _VeilidConfig { required this.blockStore, required this.network}); - factory _$_VeilidConfig.fromJson(Map json) => - _$$_VeilidConfigFromJson(json); + factory _$VeilidConfigImpl.fromJson(Map json) => + _$$VeilidConfigImplFromJson(json); @override final String programName; @@ -6776,10 +6970,10 @@ class _$_VeilidConfig with DiagnosticableTreeMixin implements _VeilidConfig { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidConfig && + other is _$VeilidConfigImpl && (identical(other.programName, programName) || other.programName == programName) && (identical(other.namespace, namespace) || @@ -6803,12 +6997,12 @@ class _$_VeilidConfig with DiagnosticableTreeMixin implements _VeilidConfig { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidConfigCopyWith<_$_VeilidConfig> get copyWith => - __$$_VeilidConfigCopyWithImpl<_$_VeilidConfig>(this, _$identity); + _$$VeilidConfigImplCopyWith<_$VeilidConfigImpl> get copyWith => + __$$VeilidConfigImplCopyWithImpl<_$VeilidConfigImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidConfigToJson( + return _$$VeilidConfigImplToJson( this, ); } @@ -6822,10 +7016,10 @@ abstract class _VeilidConfig implements VeilidConfig { required final VeilidConfigProtectedStore protectedStore, required final VeilidConfigTableStore tableStore, required final VeilidConfigBlockStore blockStore, - required final VeilidConfigNetwork network}) = _$_VeilidConfig; + required final VeilidConfigNetwork network}) = _$VeilidConfigImpl; factory _VeilidConfig.fromJson(Map json) = - _$_VeilidConfig.fromJson; + _$VeilidConfigImpl.fromJson; @override String get programName; @@ -6843,6 +7037,6 @@ abstract class _VeilidConfig implements VeilidConfig { VeilidConfigNetwork get network; @override @JsonKey(ignore: true) - _$$_VeilidConfigCopyWith<_$_VeilidConfig> get copyWith => + _$$VeilidConfigImplCopyWith<_$VeilidConfigImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/veilid-flutter/lib/veilid_config.g.dart b/veilid-flutter/lib/veilid_config.g.dart index 08170e0a..b5011a1b 100644 --- a/veilid-flutter/lib/veilid_config.g.dart +++ b/veilid-flutter/lib/veilid_config.g.dart @@ -6,191 +6,226 @@ part of 'veilid_config.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_VeilidFFIConfigLoggingTerminal _$$_VeilidFFIConfigLoggingTerminalFromJson( - Map json) => - _$_VeilidFFIConfigLoggingTerminal( - enabled: json['enabled'] as bool, - level: VeilidConfigLogLevel.fromJson(json['level']), - ); +_$VeilidFFIConfigLoggingTerminalImpl + _$$VeilidFFIConfigLoggingTerminalImplFromJson(Map json) => + _$VeilidFFIConfigLoggingTerminalImpl( + enabled: json['enabled'] as bool, + level: VeilidConfigLogLevel.fromJson(json['level']), + ignoreLogTargets: (json['ignore_log_targets'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], + ); -Map _$$_VeilidFFIConfigLoggingTerminalToJson( - _$_VeilidFFIConfigLoggingTerminal instance) => +Map _$$VeilidFFIConfigLoggingTerminalImplToJson( + _$VeilidFFIConfigLoggingTerminalImpl instance) => { 'enabled': instance.enabled, 'level': instance.level.toJson(), + 'ignore_log_targets': instance.ignoreLogTargets, }; -_$_VeilidFFIConfigLoggingOtlp _$$_VeilidFFIConfigLoggingOtlpFromJson( +_$VeilidFFIConfigLoggingOtlpImpl _$$VeilidFFIConfigLoggingOtlpImplFromJson( Map json) => - _$_VeilidFFIConfigLoggingOtlp( + _$VeilidFFIConfigLoggingOtlpImpl( enabled: json['enabled'] as bool, level: VeilidConfigLogLevel.fromJson(json['level']), grpcEndpoint: json['grpc_endpoint'] as String, serviceName: json['service_name'] as String, + ignoreLogTargets: (json['ignore_log_targets'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], ); -Map _$$_VeilidFFIConfigLoggingOtlpToJson( - _$_VeilidFFIConfigLoggingOtlp instance) => +Map _$$VeilidFFIConfigLoggingOtlpImplToJson( + _$VeilidFFIConfigLoggingOtlpImpl instance) => { 'enabled': instance.enabled, 'level': instance.level.toJson(), 'grpc_endpoint': instance.grpcEndpoint, 'service_name': instance.serviceName, + 'ignore_log_targets': instance.ignoreLogTargets, }; -_$_VeilidFFIConfigLoggingApi _$$_VeilidFFIConfigLoggingApiFromJson( +_$VeilidFFIConfigLoggingApiImpl _$$VeilidFFIConfigLoggingApiImplFromJson( Map json) => - _$_VeilidFFIConfigLoggingApi( + _$VeilidFFIConfigLoggingApiImpl( enabled: json['enabled'] as bool, level: VeilidConfigLogLevel.fromJson(json['level']), + ignoreLogTargets: (json['ignore_log_targets'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], ); -Map _$$_VeilidFFIConfigLoggingApiToJson( - _$_VeilidFFIConfigLoggingApi instance) => +Map _$$VeilidFFIConfigLoggingApiImplToJson( + _$VeilidFFIConfigLoggingApiImpl instance) => { 'enabled': instance.enabled, 'level': instance.level.toJson(), + 'ignore_log_targets': instance.ignoreLogTargets, }; -_$_VeilidFFIConfigLogging _$$_VeilidFFIConfigLoggingFromJson( +_$VeilidFFIConfigLoggingImpl _$$VeilidFFIConfigLoggingImplFromJson( Map json) => - _$_VeilidFFIConfigLogging( + _$VeilidFFIConfigLoggingImpl( terminal: VeilidFFIConfigLoggingTerminal.fromJson(json['terminal']), otlp: VeilidFFIConfigLoggingOtlp.fromJson(json['otlp']), api: VeilidFFIConfigLoggingApi.fromJson(json['api']), ); -Map _$$_VeilidFFIConfigLoggingToJson( - _$_VeilidFFIConfigLogging instance) => +Map _$$VeilidFFIConfigLoggingImplToJson( + _$VeilidFFIConfigLoggingImpl instance) => { 'terminal': instance.terminal.toJson(), 'otlp': instance.otlp.toJson(), 'api': instance.api.toJson(), }; -_$_VeilidFFIConfig _$$_VeilidFFIConfigFromJson(Map json) => - _$_VeilidFFIConfig( +_$VeilidFFIConfigImpl _$$VeilidFFIConfigImplFromJson( + Map json) => + _$VeilidFFIConfigImpl( logging: VeilidFFIConfigLogging.fromJson(json['logging']), ); -Map _$$_VeilidFFIConfigToJson(_$_VeilidFFIConfig instance) => +Map _$$VeilidFFIConfigImplToJson( + _$VeilidFFIConfigImpl instance) => { 'logging': instance.logging.toJson(), }; -_$_VeilidWASMConfigLoggingPerformance - _$$_VeilidWASMConfigLoggingPerformanceFromJson(Map json) => - _$_VeilidWASMConfigLoggingPerformance( +_$VeilidWASMConfigLoggingPerformanceImpl + _$$VeilidWASMConfigLoggingPerformanceImplFromJson( + Map json) => + _$VeilidWASMConfigLoggingPerformanceImpl( enabled: json['enabled'] as bool, level: VeilidConfigLogLevel.fromJson(json['level']), logsInTimings: json['logs_in_timings'] as bool, logsInConsole: json['logs_in_console'] as bool, + ignoreLogTargets: (json['ignore_log_targets'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], ); -Map _$$_VeilidWASMConfigLoggingPerformanceToJson( - _$_VeilidWASMConfigLoggingPerformance instance) => +Map _$$VeilidWASMConfigLoggingPerformanceImplToJson( + _$VeilidWASMConfigLoggingPerformanceImpl instance) => { 'enabled': instance.enabled, 'level': instance.level.toJson(), 'logs_in_timings': instance.logsInTimings, 'logs_in_console': instance.logsInConsole, + 'ignore_log_targets': instance.ignoreLogTargets, }; -_$_VeilidWASMConfigLoggingApi _$$_VeilidWASMConfigLoggingApiFromJson( +_$VeilidWASMConfigLoggingApiImpl _$$VeilidWASMConfigLoggingApiImplFromJson( Map json) => - _$_VeilidWASMConfigLoggingApi( + _$VeilidWASMConfigLoggingApiImpl( enabled: json['enabled'] as bool, level: VeilidConfigLogLevel.fromJson(json['level']), + ignoreLogTargets: (json['ignore_log_targets'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], ); -Map _$$_VeilidWASMConfigLoggingApiToJson( - _$_VeilidWASMConfigLoggingApi instance) => +Map _$$VeilidWASMConfigLoggingApiImplToJson( + _$VeilidWASMConfigLoggingApiImpl instance) => { 'enabled': instance.enabled, 'level': instance.level.toJson(), + 'ignore_log_targets': instance.ignoreLogTargets, }; -_$_VeilidWASMConfigLogging _$$_VeilidWASMConfigLoggingFromJson( +_$VeilidWASMConfigLoggingImpl _$$VeilidWASMConfigLoggingImplFromJson( Map json) => - _$_VeilidWASMConfigLogging( + _$VeilidWASMConfigLoggingImpl( performance: VeilidWASMConfigLoggingPerformance.fromJson(json['performance']), api: VeilidWASMConfigLoggingApi.fromJson(json['api']), ); -Map _$$_VeilidWASMConfigLoggingToJson( - _$_VeilidWASMConfigLogging instance) => +Map _$$VeilidWASMConfigLoggingImplToJson( + _$VeilidWASMConfigLoggingImpl instance) => { 'performance': instance.performance.toJson(), 'api': instance.api.toJson(), }; -_$_VeilidWASMConfig _$$_VeilidWASMConfigFromJson(Map json) => - _$_VeilidWASMConfig( +_$VeilidWASMConfigImpl _$$VeilidWASMConfigImplFromJson( + Map json) => + _$VeilidWASMConfigImpl( logging: VeilidWASMConfigLogging.fromJson(json['logging']), ); -Map _$$_VeilidWASMConfigToJson(_$_VeilidWASMConfig instance) => +Map _$$VeilidWASMConfigImplToJson( + _$VeilidWASMConfigImpl instance) => { 'logging': instance.logging.toJson(), }; -_$_VeilidConfigHTTPS _$$_VeilidConfigHTTPSFromJson(Map json) => - _$_VeilidConfigHTTPS( - enabled: json['enabled'] as bool, - listenAddress: json['listen_address'] as String, - path: json['path'] as String, - url: json['url'] as String?, - ); - -Map _$$_VeilidConfigHTTPSToJson( - _$_VeilidConfigHTTPS instance) => - { - 'enabled': instance.enabled, - 'listen_address': instance.listenAddress, - 'path': instance.path, - 'url': instance.url, - }; - -_$_VeilidConfigHTTP _$$_VeilidConfigHTTPFromJson(Map json) => - _$_VeilidConfigHTTP( - enabled: json['enabled'] as bool, - listenAddress: json['listen_address'] as String, - path: json['path'] as String, - url: json['url'] as String?, - ); - -Map _$$_VeilidConfigHTTPToJson(_$_VeilidConfigHTTP instance) => - { - 'enabled': instance.enabled, - 'listen_address': instance.listenAddress, - 'path': instance.path, - 'url': instance.url, - }; - -_$_VeilidConfigApplication _$$_VeilidConfigApplicationFromJson( +_$VeilidConfigHTTPSImpl _$$VeilidConfigHTTPSImplFromJson( Map json) => - _$_VeilidConfigApplication( + _$VeilidConfigHTTPSImpl( + enabled: json['enabled'] as bool, + listenAddress: json['listen_address'] as String, + path: json['path'] as String, + url: json['url'] as String?, + ); + +Map _$$VeilidConfigHTTPSImplToJson( + _$VeilidConfigHTTPSImpl instance) => + { + 'enabled': instance.enabled, + 'listen_address': instance.listenAddress, + 'path': instance.path, + 'url': instance.url, + }; + +_$VeilidConfigHTTPImpl _$$VeilidConfigHTTPImplFromJson( + Map json) => + _$VeilidConfigHTTPImpl( + enabled: json['enabled'] as bool, + listenAddress: json['listen_address'] as String, + path: json['path'] as String, + url: json['url'] as String?, + ); + +Map _$$VeilidConfigHTTPImplToJson( + _$VeilidConfigHTTPImpl instance) => + { + 'enabled': instance.enabled, + 'listen_address': instance.listenAddress, + 'path': instance.path, + 'url': instance.url, + }; + +_$VeilidConfigApplicationImpl _$$VeilidConfigApplicationImplFromJson( + Map json) => + _$VeilidConfigApplicationImpl( https: VeilidConfigHTTPS.fromJson(json['https']), http: VeilidConfigHTTP.fromJson(json['http']), ); -Map _$$_VeilidConfigApplicationToJson( - _$_VeilidConfigApplication instance) => +Map _$$VeilidConfigApplicationImplToJson( + _$VeilidConfigApplicationImpl instance) => { 'https': instance.https.toJson(), 'http': instance.http.toJson(), }; -_$_VeilidConfigUDP _$$_VeilidConfigUDPFromJson(Map json) => - _$_VeilidConfigUDP( +_$VeilidConfigUDPImpl _$$VeilidConfigUDPImplFromJson( + Map json) => + _$VeilidConfigUDPImpl( enabled: json['enabled'] as bool, socketPoolSize: json['socket_pool_size'] as int, listenAddress: json['listen_address'] as String, publicAddress: json['public_address'] as String?, ); -Map _$$_VeilidConfigUDPToJson(_$_VeilidConfigUDP instance) => +Map _$$VeilidConfigUDPImplToJson( + _$VeilidConfigUDPImpl instance) => { 'enabled': instance.enabled, 'socket_pool_size': instance.socketPoolSize, @@ -198,8 +233,9 @@ Map _$$_VeilidConfigUDPToJson(_$_VeilidConfigUDP instance) => 'public_address': instance.publicAddress, }; -_$_VeilidConfigTCP _$$_VeilidConfigTCPFromJson(Map json) => - _$_VeilidConfigTCP( +_$VeilidConfigTCPImpl _$$VeilidConfigTCPImplFromJson( + Map json) => + _$VeilidConfigTCPImpl( connect: json['connect'] as bool, listen: json['listen'] as bool, maxConnections: json['max_connections'] as int, @@ -207,7 +243,8 @@ _$_VeilidConfigTCP _$$_VeilidConfigTCPFromJson(Map json) => publicAddress: json['public_address'] as String?, ); -Map _$$_VeilidConfigTCPToJson(_$_VeilidConfigTCP instance) => +Map _$$VeilidConfigTCPImplToJson( + _$VeilidConfigTCPImpl instance) => { 'connect': instance.connect, 'listen': instance.listen, @@ -216,8 +253,8 @@ Map _$$_VeilidConfigTCPToJson(_$_VeilidConfigTCP instance) => 'public_address': instance.publicAddress, }; -_$_VeilidConfigWS _$$_VeilidConfigWSFromJson(Map json) => - _$_VeilidConfigWS( +_$VeilidConfigWSImpl _$$VeilidConfigWSImplFromJson(Map json) => + _$VeilidConfigWSImpl( connect: json['connect'] as bool, listen: json['listen'] as bool, maxConnections: json['max_connections'] as int, @@ -226,7 +263,8 @@ _$_VeilidConfigWS _$$_VeilidConfigWSFromJson(Map json) => url: json['url'] as String?, ); -Map _$$_VeilidConfigWSToJson(_$_VeilidConfigWS instance) => +Map _$$VeilidConfigWSImplToJson( + _$VeilidConfigWSImpl instance) => { 'connect': instance.connect, 'listen': instance.listen, @@ -236,37 +274,39 @@ Map _$$_VeilidConfigWSToJson(_$_VeilidConfigWS instance) => 'url': instance.url, }; -_$_VeilidConfigWSS _$$_VeilidConfigWSSFromJson(Map json) => - _$_VeilidConfigWSS( - connect: json['connect'] as bool, - listen: json['listen'] as bool, - maxConnections: json['max_connections'] as int, - listenAddress: json['listen_address'] as String, - path: json['path'] as String, - url: json['url'] as String?, - ); - -Map _$$_VeilidConfigWSSToJson(_$_VeilidConfigWSS instance) => - { - 'connect': instance.connect, - 'listen': instance.listen, - 'max_connections': instance.maxConnections, - 'listen_address': instance.listenAddress, - 'path': instance.path, - 'url': instance.url, - }; - -_$_VeilidConfigProtocol _$$_VeilidConfigProtocolFromJson( +_$VeilidConfigWSSImpl _$$VeilidConfigWSSImplFromJson( Map json) => - _$_VeilidConfigProtocol( + _$VeilidConfigWSSImpl( + connect: json['connect'] as bool, + listen: json['listen'] as bool, + maxConnections: json['max_connections'] as int, + listenAddress: json['listen_address'] as String, + path: json['path'] as String, + url: json['url'] as String?, + ); + +Map _$$VeilidConfigWSSImplToJson( + _$VeilidConfigWSSImpl instance) => + { + 'connect': instance.connect, + 'listen': instance.listen, + 'max_connections': instance.maxConnections, + 'listen_address': instance.listenAddress, + 'path': instance.path, + 'url': instance.url, + }; + +_$VeilidConfigProtocolImpl _$$VeilidConfigProtocolImplFromJson( + Map json) => + _$VeilidConfigProtocolImpl( udp: VeilidConfigUDP.fromJson(json['udp']), tcp: VeilidConfigTCP.fromJson(json['tcp']), ws: VeilidConfigWS.fromJson(json['ws']), wss: VeilidConfigWSS.fromJson(json['wss']), ); -Map _$$_VeilidConfigProtocolToJson( - _$_VeilidConfigProtocol instance) => +Map _$$VeilidConfigProtocolImplToJson( + _$VeilidConfigProtocolImpl instance) => { 'udp': instance.udp.toJson(), 'tcp': instance.tcp.toJson(), @@ -274,22 +314,25 @@ Map _$$_VeilidConfigProtocolToJson( 'wss': instance.wss.toJson(), }; -_$_VeilidConfigTLS _$$_VeilidConfigTLSFromJson(Map json) => - _$_VeilidConfigTLS( +_$VeilidConfigTLSImpl _$$VeilidConfigTLSImplFromJson( + Map json) => + _$VeilidConfigTLSImpl( certificatePath: json['certificate_path'] as String, privateKeyPath: json['private_key_path'] as String, connectionInitialTimeoutMs: json['connection_initial_timeout_ms'] as int, ); -Map _$$_VeilidConfigTLSToJson(_$_VeilidConfigTLS instance) => +Map _$$VeilidConfigTLSImplToJson( + _$VeilidConfigTLSImpl instance) => { 'certificate_path': instance.certificatePath, 'private_key_path': instance.privateKeyPath, 'connection_initial_timeout_ms': instance.connectionInitialTimeoutMs, }; -_$_VeilidConfigDHT _$$_VeilidConfigDHTFromJson(Map json) => - _$_VeilidConfigDHT( +_$VeilidConfigDHTImpl _$$VeilidConfigDHTImplFromJson( + Map json) => + _$VeilidConfigDHTImpl( resolveNodeTimeoutMs: json['resolve_node_timeout_ms'] as int, resolveNodeCount: json['resolve_node_count'] as int, resolveNodeFanout: json['resolve_node_fanout'] as int, @@ -317,7 +360,8 @@ _$_VeilidConfigDHT _$$_VeilidConfigDHTFromJson(Map json) => maxWatchExpirationMs: json['max_watch_expiration_ms'] as int, ); -Map _$$_VeilidConfigDHTToJson(_$_VeilidConfigDHT instance) => +Map _$$VeilidConfigDHTImplToJson( + _$VeilidConfigDHTImpl instance) => { 'resolve_node_timeout_ms': instance.resolveNodeTimeoutMs, 'resolve_node_count': instance.resolveNodeCount, @@ -345,8 +389,9 @@ Map _$$_VeilidConfigDHTToJson(_$_VeilidConfigDHT instance) => 'max_watch_expiration_ms': instance.maxWatchExpirationMs, }; -_$_VeilidConfigRPC _$$_VeilidConfigRPCFromJson(Map json) => - _$_VeilidConfigRPC( +_$VeilidConfigRPCImpl _$$VeilidConfigRPCImplFromJson( + Map json) => + _$VeilidConfigRPCImpl( concurrency: json['concurrency'] as int, queueSize: json['queue_size'] as int, timeoutMs: json['timeout_ms'] as int, @@ -356,7 +401,8 @@ _$_VeilidConfigRPC _$$_VeilidConfigRPCFromJson(Map json) => maxTimestampAheadMs: json['max_timestamp_ahead_ms'] as int?, ); -Map _$$_VeilidConfigRPCToJson(_$_VeilidConfigRPC instance) => +Map _$$VeilidConfigRPCImplToJson( + _$VeilidConfigRPCImpl instance) => { 'concurrency': instance.concurrency, 'queue_size': instance.queueSize, @@ -367,9 +413,9 @@ Map _$$_VeilidConfigRPCToJson(_$_VeilidConfigRPC instance) => 'max_timestamp_ahead_ms': instance.maxTimestampAheadMs, }; -_$_VeilidConfigRoutingTable _$$_VeilidConfigRoutingTableFromJson( +_$VeilidConfigRoutingTableImpl _$$VeilidConfigRoutingTableImplFromJson( Map json) => - _$_VeilidConfigRoutingTable( + _$VeilidConfigRoutingTableImpl( nodeId: (json['node_id'] as List) .map(Typed.fromJson) .toList(), @@ -385,8 +431,8 @@ _$_VeilidConfigRoutingTable _$$_VeilidConfigRoutingTableFromJson( limitAttachedWeak: json['limit_attached_weak'] as int, ); -Map _$$_VeilidConfigRoutingTableToJson( - _$_VeilidConfigRoutingTable instance) => +Map _$$VeilidConfigRoutingTableImplToJson( + _$VeilidConfigRoutingTableImpl instance) => { 'node_id': instance.nodeId.map((e) => e.toJson()).toList(), 'node_id_secret': instance.nodeIdSecret.map((e) => e.toJson()).toList(), @@ -398,9 +444,9 @@ Map _$$_VeilidConfigRoutingTableToJson( 'limit_attached_weak': instance.limitAttachedWeak, }; -_$_VeilidConfigNetwork _$$_VeilidConfigNetworkFromJson( +_$VeilidConfigNetworkImpl _$$VeilidConfigNetworkImplFromJson( Map json) => - _$_VeilidConfigNetwork( + _$VeilidConfigNetworkImpl( connectionInitialTimeoutMs: json['connection_initial_timeout_ms'] as int, connectionInactivityTimeoutMs: json['connection_inactivity_timeout_ms'] as int, @@ -426,8 +472,8 @@ _$_VeilidConfigNetwork _$$_VeilidConfigNetworkFromJson( networkKeyPassword: json['network_key_password'] as String?, ); -Map _$$_VeilidConfigNetworkToJson( - _$_VeilidConfigNetwork instance) => +Map _$$VeilidConfigNetworkImplToJson( + _$VeilidConfigNetworkImpl instance) => { 'connection_initial_timeout_ms': instance.connectionInitialTimeoutMs, 'connection_inactivity_timeout_ms': @@ -453,37 +499,37 @@ Map _$$_VeilidConfigNetworkToJson( 'network_key_password': instance.networkKeyPassword, }; -_$_VeilidConfigTableStore _$$_VeilidConfigTableStoreFromJson( +_$VeilidConfigTableStoreImpl _$$VeilidConfigTableStoreImplFromJson( Map json) => - _$_VeilidConfigTableStore( + _$VeilidConfigTableStoreImpl( directory: json['directory'] as String, delete: json['delete'] as bool, ); -Map _$$_VeilidConfigTableStoreToJson( - _$_VeilidConfigTableStore instance) => +Map _$$VeilidConfigTableStoreImplToJson( + _$VeilidConfigTableStoreImpl instance) => { 'directory': instance.directory, 'delete': instance.delete, }; -_$_VeilidConfigBlockStore _$$_VeilidConfigBlockStoreFromJson( +_$VeilidConfigBlockStoreImpl _$$VeilidConfigBlockStoreImplFromJson( Map json) => - _$_VeilidConfigBlockStore( + _$VeilidConfigBlockStoreImpl( directory: json['directory'] as String, delete: json['delete'] as bool, ); -Map _$$_VeilidConfigBlockStoreToJson( - _$_VeilidConfigBlockStore instance) => +Map _$$VeilidConfigBlockStoreImplToJson( + _$VeilidConfigBlockStoreImpl instance) => { 'directory': instance.directory, 'delete': instance.delete, }; -_$_VeilidConfigProtectedStore _$$_VeilidConfigProtectedStoreFromJson( +_$VeilidConfigProtectedStoreImpl _$$VeilidConfigProtectedStoreImplFromJson( Map json) => - _$_VeilidConfigProtectedStore( + _$VeilidConfigProtectedStoreImpl( allowInsecureFallback: json['allow_insecure_fallback'] as bool, alwaysUseInsecureStorage: json['always_use_insecure_storage'] as bool, directory: json['directory'] as String, @@ -494,8 +540,8 @@ _$_VeilidConfigProtectedStore _$$_VeilidConfigProtectedStoreFromJson( json['new_device_encryption_key_password'] as String?, ); -Map _$$_VeilidConfigProtectedStoreToJson( - _$_VeilidConfigProtectedStore instance) => +Map _$$VeilidConfigProtectedStoreImplToJson( + _$VeilidConfigProtectedStoreImpl instance) => { 'allow_insecure_fallback': instance.allowInsecureFallback, 'always_use_insecure_storage': instance.alwaysUseInsecureStorage, @@ -506,21 +552,21 @@ Map _$$_VeilidConfigProtectedStoreToJson( instance.newDeviceEncryptionKeyPassword, }; -_$_VeilidConfigCapabilities _$$_VeilidConfigCapabilitiesFromJson( +_$VeilidConfigCapabilitiesImpl _$$VeilidConfigCapabilitiesImplFromJson( Map json) => - _$_VeilidConfigCapabilities( + _$VeilidConfigCapabilitiesImpl( disable: (json['disable'] as List).map((e) => e as String).toList(), ); -Map _$$_VeilidConfigCapabilitiesToJson( - _$_VeilidConfigCapabilities instance) => +Map _$$VeilidConfigCapabilitiesImplToJson( + _$VeilidConfigCapabilitiesImpl instance) => { 'disable': instance.disable, }; -_$_VeilidConfig _$$_VeilidConfigFromJson(Map json) => - _$_VeilidConfig( +_$VeilidConfigImpl _$$VeilidConfigImplFromJson(Map json) => + _$VeilidConfigImpl( programName: json['program_name'] as String, namespace: json['namespace'] as String, capabilities: VeilidConfigCapabilities.fromJson(json['capabilities']), @@ -531,7 +577,7 @@ _$_VeilidConfig _$$_VeilidConfigFromJson(Map json) => network: VeilidConfigNetwork.fromJson(json['network']), ); -Map _$$_VeilidConfigToJson(_$_VeilidConfig instance) => +Map _$$VeilidConfigImplToJson(_$VeilidConfigImpl instance) => { 'program_name': instance.programName, 'namespace': instance.namespace, diff --git a/veilid-flutter/lib/veilid_state.freezed.dart b/veilid-flutter/lib/veilid_state.freezed.dart index 1c2820a8..2a4e4eac 100644 --- a/veilid-flutter/lib/veilid_state.freezed.dart +++ b/veilid-flutter/lib/veilid_state.freezed.dart @@ -12,7 +12,7 @@ part of 'veilid_state.dart'; T _$identity(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'); + '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#adding-getters-and-methods-to-our-models'); LatencyStats _$LatencyStatsFromJson(Map json) { return _LatencyStats.fromJson(json); @@ -77,11 +77,11 @@ class _$LatencyStatsCopyWithImpl<$Res, $Val extends LatencyStats> } /// @nodoc -abstract class _$$_LatencyStatsCopyWith<$Res> +abstract class _$$LatencyStatsImplCopyWith<$Res> implements $LatencyStatsCopyWith<$Res> { - factory _$$_LatencyStatsCopyWith( - _$_LatencyStats value, $Res Function(_$_LatencyStats) then) = - __$$_LatencyStatsCopyWithImpl<$Res>; + factory _$$LatencyStatsImplCopyWith( + _$LatencyStatsImpl value, $Res Function(_$LatencyStatsImpl) then) = + __$$LatencyStatsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -91,11 +91,11 @@ abstract class _$$_LatencyStatsCopyWith<$Res> } /// @nodoc -class __$$_LatencyStatsCopyWithImpl<$Res> - extends _$LatencyStatsCopyWithImpl<$Res, _$_LatencyStats> - implements _$$_LatencyStatsCopyWith<$Res> { - __$$_LatencyStatsCopyWithImpl( - _$_LatencyStats _value, $Res Function(_$_LatencyStats) _then) +class __$$LatencyStatsImplCopyWithImpl<$Res> + extends _$LatencyStatsCopyWithImpl<$Res, _$LatencyStatsImpl> + implements _$$LatencyStatsImplCopyWith<$Res> { + __$$LatencyStatsImplCopyWithImpl( + _$LatencyStatsImpl _value, $Res Function(_$LatencyStatsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -105,7 +105,7 @@ class __$$_LatencyStatsCopyWithImpl<$Res> Object? average = null, Object? slowest = null, }) { - return _then(_$_LatencyStats( + return _then(_$LatencyStatsImpl( fastest: null == fastest ? _value.fastest : fastest // ignore: cast_nullable_to_non_nullable @@ -124,12 +124,12 @@ class __$$_LatencyStatsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_LatencyStats implements _LatencyStats { - const _$_LatencyStats( +class _$LatencyStatsImpl implements _LatencyStats { + const _$LatencyStatsImpl( {required this.fastest, required this.average, required this.slowest}); - factory _$_LatencyStats.fromJson(Map json) => - _$$_LatencyStatsFromJson(json); + factory _$LatencyStatsImpl.fromJson(Map json) => + _$$LatencyStatsImplFromJson(json); @override final TimestampDuration fastest; @@ -144,10 +144,10 @@ class _$_LatencyStats implements _LatencyStats { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_LatencyStats && + other is _$LatencyStatsImpl && (identical(other.fastest, fastest) || other.fastest == fastest) && (identical(other.average, average) || other.average == average) && (identical(other.slowest, slowest) || other.slowest == slowest)); @@ -160,12 +160,12 @@ class _$_LatencyStats implements _LatencyStats { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_LatencyStatsCopyWith<_$_LatencyStats> get copyWith => - __$$_LatencyStatsCopyWithImpl<_$_LatencyStats>(this, _$identity); + _$$LatencyStatsImplCopyWith<_$LatencyStatsImpl> get copyWith => + __$$LatencyStatsImplCopyWithImpl<_$LatencyStatsImpl>(this, _$identity); @override Map toJson() { - return _$$_LatencyStatsToJson( + return _$$LatencyStatsImplToJson( this, ); } @@ -175,10 +175,10 @@ abstract class _LatencyStats implements LatencyStats { const factory _LatencyStats( {required final TimestampDuration fastest, required final TimestampDuration average, - required final TimestampDuration slowest}) = _$_LatencyStats; + required final TimestampDuration slowest}) = _$LatencyStatsImpl; factory _LatencyStats.fromJson(Map json) = - _$_LatencyStats.fromJson; + _$LatencyStatsImpl.fromJson; @override TimestampDuration get fastest; @@ -188,7 +188,7 @@ abstract class _LatencyStats implements LatencyStats { TimestampDuration get slowest; @override @JsonKey(ignore: true) - _$$_LatencyStatsCopyWith<_$_LatencyStats> get copyWith => + _$$LatencyStatsImplCopyWith<_$LatencyStatsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -258,22 +258,22 @@ class _$TransferStatsCopyWithImpl<$Res, $Val extends TransferStats> } /// @nodoc -abstract class _$$_TransferStatsCopyWith<$Res> +abstract class _$$TransferStatsImplCopyWith<$Res> implements $TransferStatsCopyWith<$Res> { - factory _$$_TransferStatsCopyWith( - _$_TransferStats value, $Res Function(_$_TransferStats) then) = - __$$_TransferStatsCopyWithImpl<$Res>; + factory _$$TransferStatsImplCopyWith( + _$TransferStatsImpl value, $Res Function(_$TransferStatsImpl) then) = + __$$TransferStatsImplCopyWithImpl<$Res>; @override @useResult $Res call({BigInt total, BigInt maximum, BigInt average, BigInt minimum}); } /// @nodoc -class __$$_TransferStatsCopyWithImpl<$Res> - extends _$TransferStatsCopyWithImpl<$Res, _$_TransferStats> - implements _$$_TransferStatsCopyWith<$Res> { - __$$_TransferStatsCopyWithImpl( - _$_TransferStats _value, $Res Function(_$_TransferStats) _then) +class __$$TransferStatsImplCopyWithImpl<$Res> + extends _$TransferStatsCopyWithImpl<$Res, _$TransferStatsImpl> + implements _$$TransferStatsImplCopyWith<$Res> { + __$$TransferStatsImplCopyWithImpl( + _$TransferStatsImpl _value, $Res Function(_$TransferStatsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -284,7 +284,7 @@ class __$$_TransferStatsCopyWithImpl<$Res> Object? average = null, Object? minimum = null, }) { - return _then(_$_TransferStats( + return _then(_$TransferStatsImpl( total: null == total ? _value.total : total // ignore: cast_nullable_to_non_nullable @@ -307,15 +307,15 @@ class __$$_TransferStatsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_TransferStats implements _TransferStats { - const _$_TransferStats( +class _$TransferStatsImpl implements _TransferStats { + const _$TransferStatsImpl( {required this.total, required this.maximum, required this.average, required this.minimum}); - factory _$_TransferStats.fromJson(Map json) => - _$$_TransferStatsFromJson(json); + factory _$TransferStatsImpl.fromJson(Map json) => + _$$TransferStatsImplFromJson(json); @override final BigInt total; @@ -332,10 +332,10 @@ class _$_TransferStats implements _TransferStats { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_TransferStats && + other is _$TransferStatsImpl && (identical(other.total, total) || other.total == total) && (identical(other.maximum, maximum) || other.maximum == maximum) && (identical(other.average, average) || other.average == average) && @@ -350,12 +350,12 @@ class _$_TransferStats implements _TransferStats { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_TransferStatsCopyWith<_$_TransferStats> get copyWith => - __$$_TransferStatsCopyWithImpl<_$_TransferStats>(this, _$identity); + _$$TransferStatsImplCopyWith<_$TransferStatsImpl> get copyWith => + __$$TransferStatsImplCopyWithImpl<_$TransferStatsImpl>(this, _$identity); @override Map toJson() { - return _$$_TransferStatsToJson( + return _$$TransferStatsImplToJson( this, ); } @@ -366,10 +366,10 @@ abstract class _TransferStats implements TransferStats { {required final BigInt total, required final BigInt maximum, required final BigInt average, - required final BigInt minimum}) = _$_TransferStats; + required final BigInt minimum}) = _$TransferStatsImpl; factory _TransferStats.fromJson(Map json) = - _$_TransferStats.fromJson; + _$TransferStatsImpl.fromJson; @override BigInt get total; @@ -381,7 +381,7 @@ abstract class _TransferStats implements TransferStats { BigInt get minimum; @override @JsonKey(ignore: true) - _$$_TransferStatsCopyWith<_$_TransferStats> get copyWith => + _$$TransferStatsImplCopyWith<_$TransferStatsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -458,11 +458,11 @@ class _$TransferStatsDownUpCopyWithImpl<$Res, $Val extends TransferStatsDownUp> } /// @nodoc -abstract class _$$_TransferStatsDownUpCopyWith<$Res> +abstract class _$$TransferStatsDownUpImplCopyWith<$Res> implements $TransferStatsDownUpCopyWith<$Res> { - factory _$$_TransferStatsDownUpCopyWith(_$_TransferStatsDownUp value, - $Res Function(_$_TransferStatsDownUp) then) = - __$$_TransferStatsDownUpCopyWithImpl<$Res>; + factory _$$TransferStatsDownUpImplCopyWith(_$TransferStatsDownUpImpl value, + $Res Function(_$TransferStatsDownUpImpl) then) = + __$$TransferStatsDownUpImplCopyWithImpl<$Res>; @override @useResult $Res call({TransferStats down, TransferStats up}); @@ -474,11 +474,11 @@ abstract class _$$_TransferStatsDownUpCopyWith<$Res> } /// @nodoc -class __$$_TransferStatsDownUpCopyWithImpl<$Res> - extends _$TransferStatsDownUpCopyWithImpl<$Res, _$_TransferStatsDownUp> - implements _$$_TransferStatsDownUpCopyWith<$Res> { - __$$_TransferStatsDownUpCopyWithImpl(_$_TransferStatsDownUp _value, - $Res Function(_$_TransferStatsDownUp) _then) +class __$$TransferStatsDownUpImplCopyWithImpl<$Res> + extends _$TransferStatsDownUpCopyWithImpl<$Res, _$TransferStatsDownUpImpl> + implements _$$TransferStatsDownUpImplCopyWith<$Res> { + __$$TransferStatsDownUpImplCopyWithImpl(_$TransferStatsDownUpImpl _value, + $Res Function(_$TransferStatsDownUpImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -487,7 +487,7 @@ class __$$_TransferStatsDownUpCopyWithImpl<$Res> Object? down = null, Object? up = null, }) { - return _then(_$_TransferStatsDownUp( + return _then(_$TransferStatsDownUpImpl( down: null == down ? _value.down : down // ignore: cast_nullable_to_non_nullable @@ -502,11 +502,11 @@ class __$$_TransferStatsDownUpCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_TransferStatsDownUp implements _TransferStatsDownUp { - const _$_TransferStatsDownUp({required this.down, required this.up}); +class _$TransferStatsDownUpImpl implements _TransferStatsDownUp { + const _$TransferStatsDownUpImpl({required this.down, required this.up}); - factory _$_TransferStatsDownUp.fromJson(Map json) => - _$$_TransferStatsDownUpFromJson(json); + factory _$TransferStatsDownUpImpl.fromJson(Map json) => + _$$TransferStatsDownUpImplFromJson(json); @override final TransferStats down; @@ -519,10 +519,10 @@ class _$_TransferStatsDownUp implements _TransferStatsDownUp { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_TransferStatsDownUp && + other is _$TransferStatsDownUpImpl && (identical(other.down, down) || other.down == down) && (identical(other.up, up) || other.up == up)); } @@ -534,13 +534,13 @@ class _$_TransferStatsDownUp implements _TransferStatsDownUp { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_TransferStatsDownUpCopyWith<_$_TransferStatsDownUp> get copyWith => - __$$_TransferStatsDownUpCopyWithImpl<_$_TransferStatsDownUp>( + _$$TransferStatsDownUpImplCopyWith<_$TransferStatsDownUpImpl> get copyWith => + __$$TransferStatsDownUpImplCopyWithImpl<_$TransferStatsDownUpImpl>( this, _$identity); @override Map toJson() { - return _$$_TransferStatsDownUpToJson( + return _$$TransferStatsDownUpImplToJson( this, ); } @@ -549,10 +549,10 @@ class _$_TransferStatsDownUp implements _TransferStatsDownUp { abstract class _TransferStatsDownUp implements TransferStatsDownUp { const factory _TransferStatsDownUp( {required final TransferStats down, - required final TransferStats up}) = _$_TransferStatsDownUp; + required final TransferStats up}) = _$TransferStatsDownUpImpl; factory _TransferStatsDownUp.fromJson(Map json) = - _$_TransferStatsDownUp.fromJson; + _$TransferStatsDownUpImpl.fromJson; @override TransferStats get down; @@ -560,7 +560,7 @@ abstract class _TransferStatsDownUp implements TransferStatsDownUp { TransferStats get up; @override @JsonKey(ignore: true) - _$$_TransferStatsDownUpCopyWith<_$_TransferStatsDownUp> get copyWith => + _$$TransferStatsDownUpImplCopyWith<_$TransferStatsDownUpImpl> get copyWith => throw _privateConstructorUsedError; } @@ -661,10 +661,11 @@ class _$RPCStatsCopyWithImpl<$Res, $Val extends RPCStats> } /// @nodoc -abstract class _$$_RPCStatsCopyWith<$Res> implements $RPCStatsCopyWith<$Res> { - factory _$$_RPCStatsCopyWith( - _$_RPCStats value, $Res Function(_$_RPCStats) then) = - __$$_RPCStatsCopyWithImpl<$Res>; +abstract class _$$RPCStatsImplCopyWith<$Res> + implements $RPCStatsCopyWith<$Res> { + factory _$$RPCStatsImplCopyWith( + _$RPCStatsImpl value, $Res Function(_$RPCStatsImpl) then) = + __$$RPCStatsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -679,11 +680,11 @@ abstract class _$$_RPCStatsCopyWith<$Res> implements $RPCStatsCopyWith<$Res> { } /// @nodoc -class __$$_RPCStatsCopyWithImpl<$Res> - extends _$RPCStatsCopyWithImpl<$Res, _$_RPCStats> - implements _$$_RPCStatsCopyWith<$Res> { - __$$_RPCStatsCopyWithImpl( - _$_RPCStats _value, $Res Function(_$_RPCStats) _then) +class __$$RPCStatsImplCopyWithImpl<$Res> + extends _$RPCStatsCopyWithImpl<$Res, _$RPCStatsImpl> + implements _$$RPCStatsImplCopyWith<$Res> { + __$$RPCStatsImplCopyWithImpl( + _$RPCStatsImpl _value, $Res Function(_$RPCStatsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -698,7 +699,7 @@ class __$$_RPCStatsCopyWithImpl<$Res> Object? recentLostAnswers = null, Object? failedToSend = null, }) { - return _then(_$_RPCStats( + return _then(_$RPCStatsImpl( messagesSent: null == messagesSent ? _value.messagesSent : messagesSent // ignore: cast_nullable_to_non_nullable @@ -737,8 +738,8 @@ class __$$_RPCStatsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_RPCStats implements _RPCStats { - const _$_RPCStats( +class _$RPCStatsImpl implements _RPCStats { + const _$RPCStatsImpl( {required this.messagesSent, required this.messagesRcvd, required this.questionsInFlight, @@ -748,8 +749,8 @@ class _$_RPCStats implements _RPCStats { required this.recentLostAnswers, required this.failedToSend}); - factory _$_RPCStats.fromJson(Map json) => - _$$_RPCStatsFromJson(json); + factory _$RPCStatsImpl.fromJson(Map json) => + _$$RPCStatsImplFromJson(json); @override final int messagesSent; @@ -774,10 +775,10 @@ class _$_RPCStats implements _RPCStats { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_RPCStats && + other is _$RPCStatsImpl && (identical(other.messagesSent, messagesSent) || other.messagesSent == messagesSent) && (identical(other.messagesRcvd, messagesRcvd) || @@ -812,12 +813,12 @@ class _$_RPCStats implements _RPCStats { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_RPCStatsCopyWith<_$_RPCStats> get copyWith => - __$$_RPCStatsCopyWithImpl<_$_RPCStats>(this, _$identity); + _$$RPCStatsImplCopyWith<_$RPCStatsImpl> get copyWith => + __$$RPCStatsImplCopyWithImpl<_$RPCStatsImpl>(this, _$identity); @override Map toJson() { - return _$$_RPCStatsToJson( + return _$$RPCStatsImplToJson( this, ); } @@ -832,9 +833,10 @@ abstract class _RPCStats implements RPCStats { required final Timestamp? lastSeenTs, required final Timestamp? firstConsecutiveSeenTs, required final int recentLostAnswers, - required final int failedToSend}) = _$_RPCStats; + required final int failedToSend}) = _$RPCStatsImpl; - factory _RPCStats.fromJson(Map json) = _$_RPCStats.fromJson; + factory _RPCStats.fromJson(Map json) = + _$RPCStatsImpl.fromJson; @override int get messagesSent; @@ -854,7 +856,7 @@ abstract class _RPCStats implements RPCStats { int get failedToSend; @override @JsonKey(ignore: true) - _$$_RPCStatsCopyWith<_$_RPCStats> get copyWith => + _$$RPCStatsImplCopyWith<_$RPCStatsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -959,10 +961,11 @@ class _$PeerStatsCopyWithImpl<$Res, $Val extends PeerStats> } /// @nodoc -abstract class _$$_PeerStatsCopyWith<$Res> implements $PeerStatsCopyWith<$Res> { - factory _$$_PeerStatsCopyWith( - _$_PeerStats value, $Res Function(_$_PeerStats) then) = - __$$_PeerStatsCopyWithImpl<$Res>; +abstract class _$$PeerStatsImplCopyWith<$Res> + implements $PeerStatsCopyWith<$Res> { + factory _$$PeerStatsImplCopyWith( + _$PeerStatsImpl value, $Res Function(_$PeerStatsImpl) then) = + __$$PeerStatsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -980,11 +983,11 @@ abstract class _$$_PeerStatsCopyWith<$Res> implements $PeerStatsCopyWith<$Res> { } /// @nodoc -class __$$_PeerStatsCopyWithImpl<$Res> - extends _$PeerStatsCopyWithImpl<$Res, _$_PeerStats> - implements _$$_PeerStatsCopyWith<$Res> { - __$$_PeerStatsCopyWithImpl( - _$_PeerStats _value, $Res Function(_$_PeerStats) _then) +class __$$PeerStatsImplCopyWithImpl<$Res> + extends _$PeerStatsCopyWithImpl<$Res, _$PeerStatsImpl> + implements _$$PeerStatsImplCopyWith<$Res> { + __$$PeerStatsImplCopyWithImpl( + _$PeerStatsImpl _value, $Res Function(_$PeerStatsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -995,7 +998,7 @@ class __$$_PeerStatsCopyWithImpl<$Res> Object? transfer = null, Object? latency = freezed, }) { - return _then(_$_PeerStats( + return _then(_$PeerStatsImpl( timeAdded: null == timeAdded ? _value.timeAdded : timeAdded // ignore: cast_nullable_to_non_nullable @@ -1018,15 +1021,15 @@ class __$$_PeerStatsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PeerStats implements _PeerStats { - const _$_PeerStats( +class _$PeerStatsImpl implements _PeerStats { + const _$PeerStatsImpl( {required this.timeAdded, required this.rpcStats, required this.transfer, this.latency}); - factory _$_PeerStats.fromJson(Map json) => - _$$_PeerStatsFromJson(json); + factory _$PeerStatsImpl.fromJson(Map json) => + _$$PeerStatsImplFromJson(json); @override final Timestamp timeAdded; @@ -1043,10 +1046,10 @@ class _$_PeerStats implements _PeerStats { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PeerStats && + other is _$PeerStatsImpl && (identical(other.timeAdded, timeAdded) || other.timeAdded == timeAdded) && (identical(other.rpcStats, rpcStats) || @@ -1064,12 +1067,12 @@ class _$_PeerStats implements _PeerStats { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PeerStatsCopyWith<_$_PeerStats> get copyWith => - __$$_PeerStatsCopyWithImpl<_$_PeerStats>(this, _$identity); + _$$PeerStatsImplCopyWith<_$PeerStatsImpl> get copyWith => + __$$PeerStatsImplCopyWithImpl<_$PeerStatsImpl>(this, _$identity); @override Map toJson() { - return _$$_PeerStatsToJson( + return _$$PeerStatsImplToJson( this, ); } @@ -1080,10 +1083,10 @@ abstract class _PeerStats implements PeerStats { {required final Timestamp timeAdded, required final RPCStats rpcStats, required final TransferStatsDownUp transfer, - final LatencyStats? latency}) = _$_PeerStats; + final LatencyStats? latency}) = _$PeerStatsImpl; factory _PeerStats.fromJson(Map json) = - _$_PeerStats.fromJson; + _$PeerStatsImpl.fromJson; @override Timestamp get timeAdded; @@ -1095,7 +1098,7 @@ abstract class _PeerStats implements PeerStats { LatencyStats? get latency; @override @JsonKey(ignore: true) - _$$_PeerStatsCopyWith<_$_PeerStats> get copyWith => + _$$PeerStatsImplCopyWith<_$PeerStatsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1173,11 +1176,11 @@ class _$PeerTableDataCopyWithImpl<$Res, $Val extends PeerTableData> } /// @nodoc -abstract class _$$_PeerTableDataCopyWith<$Res> +abstract class _$$PeerTableDataImplCopyWith<$Res> implements $PeerTableDataCopyWith<$Res> { - factory _$$_PeerTableDataCopyWith( - _$_PeerTableData value, $Res Function(_$_PeerTableData) then) = - __$$_PeerTableDataCopyWithImpl<$Res>; + factory _$$PeerTableDataImplCopyWith( + _$PeerTableDataImpl value, $Res Function(_$PeerTableDataImpl) then) = + __$$PeerTableDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1190,11 +1193,11 @@ abstract class _$$_PeerTableDataCopyWith<$Res> } /// @nodoc -class __$$_PeerTableDataCopyWithImpl<$Res> - extends _$PeerTableDataCopyWithImpl<$Res, _$_PeerTableData> - implements _$$_PeerTableDataCopyWith<$Res> { - __$$_PeerTableDataCopyWithImpl( - _$_PeerTableData _value, $Res Function(_$_PeerTableData) _then) +class __$$PeerTableDataImplCopyWithImpl<$Res> + extends _$PeerTableDataCopyWithImpl<$Res, _$PeerTableDataImpl> + implements _$$PeerTableDataImplCopyWith<$Res> { + __$$PeerTableDataImplCopyWithImpl( + _$PeerTableDataImpl _value, $Res Function(_$PeerTableDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1204,7 +1207,7 @@ class __$$_PeerTableDataCopyWithImpl<$Res> Object? peerAddress = null, Object? peerStats = null, }) { - return _then(_$_PeerTableData( + return _then(_$PeerTableDataImpl( nodeIds: null == nodeIds ? _value._nodeIds : nodeIds // ignore: cast_nullable_to_non_nullable @@ -1223,15 +1226,15 @@ class __$$_PeerTableDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PeerTableData implements _PeerTableData { - const _$_PeerTableData( +class _$PeerTableDataImpl implements _PeerTableData { + const _$PeerTableDataImpl( {required final List> nodeIds, required this.peerAddress, required this.peerStats}) : _nodeIds = nodeIds; - factory _$_PeerTableData.fromJson(Map json) => - _$$_PeerTableDataFromJson(json); + factory _$PeerTableDataImpl.fromJson(Map json) => + _$$PeerTableDataImplFromJson(json); final List> _nodeIds; @override @@ -1252,10 +1255,10 @@ class _$_PeerTableData implements _PeerTableData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PeerTableData && + other is _$PeerTableDataImpl && const DeepCollectionEquality().equals(other._nodeIds, _nodeIds) && (identical(other.peerAddress, peerAddress) || other.peerAddress == peerAddress) && @@ -1271,12 +1274,12 @@ class _$_PeerTableData implements _PeerTableData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PeerTableDataCopyWith<_$_PeerTableData> get copyWith => - __$$_PeerTableDataCopyWithImpl<_$_PeerTableData>(this, _$identity); + _$$PeerTableDataImplCopyWith<_$PeerTableDataImpl> get copyWith => + __$$PeerTableDataImplCopyWithImpl<_$PeerTableDataImpl>(this, _$identity); @override Map toJson() { - return _$$_PeerTableDataToJson( + return _$$PeerTableDataImplToJson( this, ); } @@ -1286,10 +1289,10 @@ abstract class _PeerTableData implements PeerTableData { const factory _PeerTableData( {required final List> nodeIds, required final String peerAddress, - required final PeerStats peerStats}) = _$_PeerTableData; + required final PeerStats peerStats}) = _$PeerTableDataImpl; factory _PeerTableData.fromJson(Map json) = - _$_PeerTableData.fromJson; + _$PeerTableDataImpl.fromJson; @override List> get nodeIds; @@ -1299,7 +1302,7 @@ abstract class _PeerTableData implements PeerTableData { PeerStats get peerStats; @override @JsonKey(ignore: true) - _$$_PeerTableDataCopyWith<_$_PeerTableData> get copyWith => + _$$PeerTableDataImplCopyWith<_$PeerTableDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1466,20 +1469,20 @@ class _$VeilidUpdateCopyWithImpl<$Res, $Val extends VeilidUpdate> } /// @nodoc -abstract class _$$VeilidLogCopyWith<$Res> { - factory _$$VeilidLogCopyWith( - _$VeilidLog value, $Res Function(_$VeilidLog) then) = - __$$VeilidLogCopyWithImpl<$Res>; +abstract class _$$VeilidLogImplCopyWith<$Res> { + factory _$$VeilidLogImplCopyWith( + _$VeilidLogImpl value, $Res Function(_$VeilidLogImpl) then) = + __$$VeilidLogImplCopyWithImpl<$Res>; @useResult $Res call({VeilidLogLevel logLevel, String message, String? backtrace}); } /// @nodoc -class __$$VeilidLogCopyWithImpl<$Res> - extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidLog> - implements _$$VeilidLogCopyWith<$Res> { - __$$VeilidLogCopyWithImpl( - _$VeilidLog _value, $Res Function(_$VeilidLog) _then) +class __$$VeilidLogImplCopyWithImpl<$Res> + extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidLogImpl> + implements _$$VeilidLogImplCopyWith<$Res> { + __$$VeilidLogImplCopyWithImpl( + _$VeilidLogImpl _value, $Res Function(_$VeilidLogImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1489,7 +1492,7 @@ class __$$VeilidLogCopyWithImpl<$Res> Object? message = null, Object? backtrace = freezed, }) { - return _then(_$VeilidLog( + return _then(_$VeilidLogImpl( logLevel: null == logLevel ? _value.logLevel : logLevel // ignore: cast_nullable_to_non_nullable @@ -1508,16 +1511,16 @@ class __$$VeilidLogCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$VeilidLog implements VeilidLog { - const _$VeilidLog( +class _$VeilidLogImpl implements VeilidLog { + const _$VeilidLogImpl( {required this.logLevel, required this.message, this.backtrace, final String? $type}) : $type = $type ?? 'Log'; - factory _$VeilidLog.fromJson(Map json) => - _$$VeilidLogFromJson(json); + factory _$VeilidLogImpl.fromJson(Map json) => + _$$VeilidLogImplFromJson(json); @override final VeilidLogLevel logLevel; @@ -1535,10 +1538,10 @@ class _$VeilidLog implements VeilidLog { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$VeilidLog && + other is _$VeilidLogImpl && (identical(other.logLevel, logLevel) || other.logLevel == logLevel) && (identical(other.message, message) || other.message == message) && @@ -1553,8 +1556,8 @@ class _$VeilidLog implements VeilidLog { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$VeilidLogCopyWith<_$VeilidLog> get copyWith => - __$$VeilidLogCopyWithImpl<_$VeilidLog>(this, _$identity); + _$$VeilidLogImplCopyWith<_$VeilidLogImpl> get copyWith => + __$$VeilidLogImplCopyWithImpl<_$VeilidLogImpl>(this, _$identity); @override @optionalTypeArgs @@ -1696,7 +1699,7 @@ class _$VeilidLog implements VeilidLog { @override Map toJson() { - return _$$VeilidLogToJson( + return _$$VeilidLogImplToJson( this, ); } @@ -1706,23 +1709,24 @@ abstract class VeilidLog implements VeilidUpdate { const factory VeilidLog( {required final VeilidLogLevel logLevel, required final String message, - final String? backtrace}) = _$VeilidLog; + final String? backtrace}) = _$VeilidLogImpl; - factory VeilidLog.fromJson(Map json) = _$VeilidLog.fromJson; + factory VeilidLog.fromJson(Map json) = + _$VeilidLogImpl.fromJson; VeilidLogLevel get logLevel; String get message; String? get backtrace; @JsonKey(ignore: true) - _$$VeilidLogCopyWith<_$VeilidLog> get copyWith => + _$$VeilidLogImplCopyWith<_$VeilidLogImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$VeilidAppMessageCopyWith<$Res> { - factory _$$VeilidAppMessageCopyWith( - _$VeilidAppMessage value, $Res Function(_$VeilidAppMessage) then) = - __$$VeilidAppMessageCopyWithImpl<$Res>; +abstract class _$$VeilidAppMessageImplCopyWith<$Res> { + factory _$$VeilidAppMessageImplCopyWith(_$VeilidAppMessageImpl value, + $Res Function(_$VeilidAppMessageImpl) then) = + __$$VeilidAppMessageImplCopyWithImpl<$Res>; @useResult $Res call( {@Uint8ListJsonConverter() Uint8List message, @@ -1730,11 +1734,11 @@ abstract class _$$VeilidAppMessageCopyWith<$Res> { } /// @nodoc -class __$$VeilidAppMessageCopyWithImpl<$Res> - extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidAppMessage> - implements _$$VeilidAppMessageCopyWith<$Res> { - __$$VeilidAppMessageCopyWithImpl( - _$VeilidAppMessage _value, $Res Function(_$VeilidAppMessage) _then) +class __$$VeilidAppMessageImplCopyWithImpl<$Res> + extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidAppMessageImpl> + implements _$$VeilidAppMessageImplCopyWith<$Res> { + __$$VeilidAppMessageImplCopyWithImpl(_$VeilidAppMessageImpl _value, + $Res Function(_$VeilidAppMessageImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1743,7 +1747,7 @@ class __$$VeilidAppMessageCopyWithImpl<$Res> Object? message = null, Object? sender = freezed, }) { - return _then(_$VeilidAppMessage( + return _then(_$VeilidAppMessageImpl( message: null == message ? _value.message : message // ignore: cast_nullable_to_non_nullable @@ -1758,15 +1762,15 @@ class __$$VeilidAppMessageCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$VeilidAppMessage implements VeilidAppMessage { - const _$VeilidAppMessage( +class _$VeilidAppMessageImpl implements VeilidAppMessage { + const _$VeilidAppMessageImpl( {@Uint8ListJsonConverter() required this.message, this.sender, final String? $type}) : $type = $type ?? 'AppMessage'; - factory _$VeilidAppMessage.fromJson(Map json) => - _$$VeilidAppMessageFromJson(json); + factory _$VeilidAppMessageImpl.fromJson(Map json) => + _$$VeilidAppMessageImplFromJson(json); @override @Uint8ListJsonConverter() @@ -1783,10 +1787,10 @@ class _$VeilidAppMessage implements VeilidAppMessage { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$VeilidAppMessage && + other is _$VeilidAppMessageImpl && const DeepCollectionEquality().equals(other.message, message) && (identical(other.sender, sender) || other.sender == sender)); } @@ -1799,8 +1803,9 @@ class _$VeilidAppMessage implements VeilidAppMessage { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$VeilidAppMessageCopyWith<_$VeilidAppMessage> get copyWith => - __$$VeilidAppMessageCopyWithImpl<_$VeilidAppMessage>(this, _$identity); + _$$VeilidAppMessageImplCopyWith<_$VeilidAppMessageImpl> get copyWith => + __$$VeilidAppMessageImplCopyWithImpl<_$VeilidAppMessageImpl>( + this, _$identity); @override @optionalTypeArgs @@ -1942,7 +1947,7 @@ class _$VeilidAppMessage implements VeilidAppMessage { @override Map toJson() { - return _$$VeilidAppMessageToJson( + return _$$VeilidAppMessageImplToJson( this, ); } @@ -1951,24 +1956,24 @@ class _$VeilidAppMessage implements VeilidAppMessage { abstract class VeilidAppMessage implements VeilidUpdate { const factory VeilidAppMessage( {@Uint8ListJsonConverter() required final Uint8List message, - final Typed? sender}) = _$VeilidAppMessage; + final Typed? sender}) = _$VeilidAppMessageImpl; factory VeilidAppMessage.fromJson(Map json) = - _$VeilidAppMessage.fromJson; + _$VeilidAppMessageImpl.fromJson; @Uint8ListJsonConverter() Uint8List get message; Typed? get sender; @JsonKey(ignore: true) - _$$VeilidAppMessageCopyWith<_$VeilidAppMessage> get copyWith => + _$$VeilidAppMessageImplCopyWith<_$VeilidAppMessageImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$VeilidAppCallCopyWith<$Res> { - factory _$$VeilidAppCallCopyWith( - _$VeilidAppCall value, $Res Function(_$VeilidAppCall) then) = - __$$VeilidAppCallCopyWithImpl<$Res>; +abstract class _$$VeilidAppCallImplCopyWith<$Res> { + factory _$$VeilidAppCallImplCopyWith( + _$VeilidAppCallImpl value, $Res Function(_$VeilidAppCallImpl) then) = + __$$VeilidAppCallImplCopyWithImpl<$Res>; @useResult $Res call( {@Uint8ListJsonConverter() Uint8List message, @@ -1977,11 +1982,11 @@ abstract class _$$VeilidAppCallCopyWith<$Res> { } /// @nodoc -class __$$VeilidAppCallCopyWithImpl<$Res> - extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidAppCall> - implements _$$VeilidAppCallCopyWith<$Res> { - __$$VeilidAppCallCopyWithImpl( - _$VeilidAppCall _value, $Res Function(_$VeilidAppCall) _then) +class __$$VeilidAppCallImplCopyWithImpl<$Res> + extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidAppCallImpl> + implements _$$VeilidAppCallImplCopyWith<$Res> { + __$$VeilidAppCallImplCopyWithImpl( + _$VeilidAppCallImpl _value, $Res Function(_$VeilidAppCallImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1991,7 +1996,7 @@ class __$$VeilidAppCallCopyWithImpl<$Res> Object? callId = null, Object? sender = freezed, }) { - return _then(_$VeilidAppCall( + return _then(_$VeilidAppCallImpl( message: null == message ? _value.message : message // ignore: cast_nullable_to_non_nullable @@ -2010,16 +2015,16 @@ class __$$VeilidAppCallCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$VeilidAppCall implements VeilidAppCall { - const _$VeilidAppCall( +class _$VeilidAppCallImpl implements VeilidAppCall { + const _$VeilidAppCallImpl( {@Uint8ListJsonConverter() required this.message, required this.callId, this.sender, final String? $type}) : $type = $type ?? 'AppCall'; - factory _$VeilidAppCall.fromJson(Map json) => - _$$VeilidAppCallFromJson(json); + factory _$VeilidAppCallImpl.fromJson(Map json) => + _$$VeilidAppCallImplFromJson(json); @override @Uint8ListJsonConverter() @@ -2038,10 +2043,10 @@ class _$VeilidAppCall implements VeilidAppCall { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$VeilidAppCall && + other is _$VeilidAppCallImpl && const DeepCollectionEquality().equals(other.message, message) && (identical(other.callId, callId) || other.callId == callId) && (identical(other.sender, sender) || other.sender == sender)); @@ -2055,8 +2060,8 @@ class _$VeilidAppCall implements VeilidAppCall { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$VeilidAppCallCopyWith<_$VeilidAppCall> get copyWith => - __$$VeilidAppCallCopyWithImpl<_$VeilidAppCall>(this, _$identity); + _$$VeilidAppCallImplCopyWith<_$VeilidAppCallImpl> get copyWith => + __$$VeilidAppCallImplCopyWithImpl<_$VeilidAppCallImpl>(this, _$identity); @override @optionalTypeArgs @@ -2198,7 +2203,7 @@ class _$VeilidAppCall implements VeilidAppCall { @override Map toJson() { - return _$$VeilidAppCallToJson( + return _$$VeilidAppCallImplToJson( this, ); } @@ -2208,25 +2213,26 @@ abstract class VeilidAppCall implements VeilidUpdate { const factory VeilidAppCall( {@Uint8ListJsonConverter() required final Uint8List message, required final String callId, - final Typed? sender}) = _$VeilidAppCall; + final Typed? sender}) = _$VeilidAppCallImpl; factory VeilidAppCall.fromJson(Map json) = - _$VeilidAppCall.fromJson; + _$VeilidAppCallImpl.fromJson; @Uint8ListJsonConverter() Uint8List get message; String get callId; Typed? get sender; @JsonKey(ignore: true) - _$$VeilidAppCallCopyWith<_$VeilidAppCall> get copyWith => + _$$VeilidAppCallImplCopyWith<_$VeilidAppCallImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$VeilidUpdateAttachmentCopyWith<$Res> { - factory _$$VeilidUpdateAttachmentCopyWith(_$VeilidUpdateAttachment value, - $Res Function(_$VeilidUpdateAttachment) then) = - __$$VeilidUpdateAttachmentCopyWithImpl<$Res>; +abstract class _$$VeilidUpdateAttachmentImplCopyWith<$Res> { + factory _$$VeilidUpdateAttachmentImplCopyWith( + _$VeilidUpdateAttachmentImpl value, + $Res Function(_$VeilidUpdateAttachmentImpl) then) = + __$$VeilidUpdateAttachmentImplCopyWithImpl<$Res>; @useResult $Res call( {AttachmentState state, @@ -2235,11 +2241,12 @@ abstract class _$$VeilidUpdateAttachmentCopyWith<$Res> { } /// @nodoc -class __$$VeilidUpdateAttachmentCopyWithImpl<$Res> - extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidUpdateAttachment> - implements _$$VeilidUpdateAttachmentCopyWith<$Res> { - __$$VeilidUpdateAttachmentCopyWithImpl(_$VeilidUpdateAttachment _value, - $Res Function(_$VeilidUpdateAttachment) _then) +class __$$VeilidUpdateAttachmentImplCopyWithImpl<$Res> + extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidUpdateAttachmentImpl> + implements _$$VeilidUpdateAttachmentImplCopyWith<$Res> { + __$$VeilidUpdateAttachmentImplCopyWithImpl( + _$VeilidUpdateAttachmentImpl _value, + $Res Function(_$VeilidUpdateAttachmentImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2249,7 +2256,7 @@ class __$$VeilidUpdateAttachmentCopyWithImpl<$Res> Object? publicInternetReady = null, Object? localNetworkReady = null, }) { - return _then(_$VeilidUpdateAttachment( + return _then(_$VeilidUpdateAttachmentImpl( state: null == state ? _value.state : state // ignore: cast_nullable_to_non_nullable @@ -2268,16 +2275,16 @@ class __$$VeilidUpdateAttachmentCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$VeilidUpdateAttachment implements VeilidUpdateAttachment { - const _$VeilidUpdateAttachment( +class _$VeilidUpdateAttachmentImpl implements VeilidUpdateAttachment { + const _$VeilidUpdateAttachmentImpl( {required this.state, required this.publicInternetReady, required this.localNetworkReady, final String? $type}) : $type = $type ?? 'Attachment'; - factory _$VeilidUpdateAttachment.fromJson(Map json) => - _$$VeilidUpdateAttachmentFromJson(json); + factory _$VeilidUpdateAttachmentImpl.fromJson(Map json) => + _$$VeilidUpdateAttachmentImplFromJson(json); @override final AttachmentState state; @@ -2295,10 +2302,10 @@ class _$VeilidUpdateAttachment implements VeilidUpdateAttachment { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$VeilidUpdateAttachment && + other is _$VeilidUpdateAttachmentImpl && (identical(other.state, state) || other.state == state) && (identical(other.publicInternetReady, publicInternetReady) || other.publicInternetReady == publicInternetReady) && @@ -2314,9 +2321,9 @@ class _$VeilidUpdateAttachment implements VeilidUpdateAttachment { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$VeilidUpdateAttachmentCopyWith<_$VeilidUpdateAttachment> get copyWith => - __$$VeilidUpdateAttachmentCopyWithImpl<_$VeilidUpdateAttachment>( - this, _$identity); + _$$VeilidUpdateAttachmentImplCopyWith<_$VeilidUpdateAttachmentImpl> + get copyWith => __$$VeilidUpdateAttachmentImplCopyWithImpl< + _$VeilidUpdateAttachmentImpl>(this, _$identity); @override @optionalTypeArgs @@ -2458,7 +2465,7 @@ class _$VeilidUpdateAttachment implements VeilidUpdateAttachment { @override Map toJson() { - return _$$VeilidUpdateAttachmentToJson( + return _$$VeilidUpdateAttachmentImplToJson( this, ); } @@ -2468,35 +2475,35 @@ abstract class VeilidUpdateAttachment implements VeilidUpdate { const factory VeilidUpdateAttachment( {required final AttachmentState state, required final bool publicInternetReady, - required final bool localNetworkReady}) = _$VeilidUpdateAttachment; + required final bool localNetworkReady}) = _$VeilidUpdateAttachmentImpl; factory VeilidUpdateAttachment.fromJson(Map json) = - _$VeilidUpdateAttachment.fromJson; + _$VeilidUpdateAttachmentImpl.fromJson; AttachmentState get state; bool get publicInternetReady; bool get localNetworkReady; @JsonKey(ignore: true) - _$$VeilidUpdateAttachmentCopyWith<_$VeilidUpdateAttachment> get copyWith => - throw _privateConstructorUsedError; + _$$VeilidUpdateAttachmentImplCopyWith<_$VeilidUpdateAttachmentImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$VeilidUpdateNetworkCopyWith<$Res> { - factory _$$VeilidUpdateNetworkCopyWith(_$VeilidUpdateNetwork value, - $Res Function(_$VeilidUpdateNetwork) then) = - __$$VeilidUpdateNetworkCopyWithImpl<$Res>; +abstract class _$$VeilidUpdateNetworkImplCopyWith<$Res> { + factory _$$VeilidUpdateNetworkImplCopyWith(_$VeilidUpdateNetworkImpl value, + $Res Function(_$VeilidUpdateNetworkImpl) then) = + __$$VeilidUpdateNetworkImplCopyWithImpl<$Res>; @useResult $Res call( {bool started, BigInt bpsDown, BigInt bpsUp, List peers}); } /// @nodoc -class __$$VeilidUpdateNetworkCopyWithImpl<$Res> - extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidUpdateNetwork> - implements _$$VeilidUpdateNetworkCopyWith<$Res> { - __$$VeilidUpdateNetworkCopyWithImpl( - _$VeilidUpdateNetwork _value, $Res Function(_$VeilidUpdateNetwork) _then) +class __$$VeilidUpdateNetworkImplCopyWithImpl<$Res> + extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidUpdateNetworkImpl> + implements _$$VeilidUpdateNetworkImplCopyWith<$Res> { + __$$VeilidUpdateNetworkImplCopyWithImpl(_$VeilidUpdateNetworkImpl _value, + $Res Function(_$VeilidUpdateNetworkImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2507,7 +2514,7 @@ class __$$VeilidUpdateNetworkCopyWithImpl<$Res> Object? bpsUp = null, Object? peers = null, }) { - return _then(_$VeilidUpdateNetwork( + return _then(_$VeilidUpdateNetworkImpl( started: null == started ? _value.started : started // ignore: cast_nullable_to_non_nullable @@ -2530,8 +2537,8 @@ class __$$VeilidUpdateNetworkCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$VeilidUpdateNetwork implements VeilidUpdateNetwork { - const _$VeilidUpdateNetwork( +class _$VeilidUpdateNetworkImpl implements VeilidUpdateNetwork { + const _$VeilidUpdateNetworkImpl( {required this.started, required this.bpsDown, required this.bpsUp, @@ -2540,8 +2547,8 @@ class _$VeilidUpdateNetwork implements VeilidUpdateNetwork { : _peers = peers, $type = $type ?? 'Network'; - factory _$VeilidUpdateNetwork.fromJson(Map json) => - _$$VeilidUpdateNetworkFromJson(json); + factory _$VeilidUpdateNetworkImpl.fromJson(Map json) => + _$$VeilidUpdateNetworkImplFromJson(json); @override final bool started; @@ -2566,10 +2573,10 @@ class _$VeilidUpdateNetwork implements VeilidUpdateNetwork { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$VeilidUpdateNetwork && + other is _$VeilidUpdateNetworkImpl && (identical(other.started, started) || other.started == started) && (identical(other.bpsDown, bpsDown) || other.bpsDown == bpsDown) && (identical(other.bpsUp, bpsUp) || other.bpsUp == bpsUp) && @@ -2584,8 +2591,8 @@ class _$VeilidUpdateNetwork implements VeilidUpdateNetwork { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$VeilidUpdateNetworkCopyWith<_$VeilidUpdateNetwork> get copyWith => - __$$VeilidUpdateNetworkCopyWithImpl<_$VeilidUpdateNetwork>( + _$$VeilidUpdateNetworkImplCopyWith<_$VeilidUpdateNetworkImpl> get copyWith => + __$$VeilidUpdateNetworkImplCopyWithImpl<_$VeilidUpdateNetworkImpl>( this, _$identity); @override @@ -2728,7 +2735,7 @@ class _$VeilidUpdateNetwork implements VeilidUpdateNetwork { @override Map toJson() { - return _$$VeilidUpdateNetworkToJson( + return _$$VeilidUpdateNetworkImplToJson( this, ); } @@ -2739,25 +2746,25 @@ abstract class VeilidUpdateNetwork implements VeilidUpdate { {required final bool started, required final BigInt bpsDown, required final BigInt bpsUp, - required final List peers}) = _$VeilidUpdateNetwork; + required final List peers}) = _$VeilidUpdateNetworkImpl; factory VeilidUpdateNetwork.fromJson(Map json) = - _$VeilidUpdateNetwork.fromJson; + _$VeilidUpdateNetworkImpl.fromJson; bool get started; BigInt get bpsDown; BigInt get bpsUp; List get peers; @JsonKey(ignore: true) - _$$VeilidUpdateNetworkCopyWith<_$VeilidUpdateNetwork> get copyWith => + _$$VeilidUpdateNetworkImplCopyWith<_$VeilidUpdateNetworkImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$VeilidUpdateConfigCopyWith<$Res> { - factory _$$VeilidUpdateConfigCopyWith(_$VeilidUpdateConfig value, - $Res Function(_$VeilidUpdateConfig) then) = - __$$VeilidUpdateConfigCopyWithImpl<$Res>; +abstract class _$$VeilidUpdateConfigImplCopyWith<$Res> { + factory _$$VeilidUpdateConfigImplCopyWith(_$VeilidUpdateConfigImpl value, + $Res Function(_$VeilidUpdateConfigImpl) then) = + __$$VeilidUpdateConfigImplCopyWithImpl<$Res>; @useResult $Res call({VeilidConfig config}); @@ -2765,11 +2772,11 @@ abstract class _$$VeilidUpdateConfigCopyWith<$Res> { } /// @nodoc -class __$$VeilidUpdateConfigCopyWithImpl<$Res> - extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidUpdateConfig> - implements _$$VeilidUpdateConfigCopyWith<$Res> { - __$$VeilidUpdateConfigCopyWithImpl( - _$VeilidUpdateConfig _value, $Res Function(_$VeilidUpdateConfig) _then) +class __$$VeilidUpdateConfigImplCopyWithImpl<$Res> + extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidUpdateConfigImpl> + implements _$$VeilidUpdateConfigImplCopyWith<$Res> { + __$$VeilidUpdateConfigImplCopyWithImpl(_$VeilidUpdateConfigImpl _value, + $Res Function(_$VeilidUpdateConfigImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2777,7 +2784,7 @@ class __$$VeilidUpdateConfigCopyWithImpl<$Res> $Res call({ Object? config = null, }) { - return _then(_$VeilidUpdateConfig( + return _then(_$VeilidUpdateConfigImpl( config: null == config ? _value.config : config // ignore: cast_nullable_to_non_nullable @@ -2796,12 +2803,12 @@ class __$$VeilidUpdateConfigCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$VeilidUpdateConfig implements VeilidUpdateConfig { - const _$VeilidUpdateConfig({required this.config, final String? $type}) +class _$VeilidUpdateConfigImpl implements VeilidUpdateConfig { + const _$VeilidUpdateConfigImpl({required this.config, final String? $type}) : $type = $type ?? 'Config'; - factory _$VeilidUpdateConfig.fromJson(Map json) => - _$$VeilidUpdateConfigFromJson(json); + factory _$VeilidUpdateConfigImpl.fromJson(Map json) => + _$$VeilidUpdateConfigImplFromJson(json); @override final VeilidConfig config; @@ -2815,10 +2822,10 @@ class _$VeilidUpdateConfig implements VeilidUpdateConfig { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$VeilidUpdateConfig && + other is _$VeilidUpdateConfigImpl && (identical(other.config, config) || other.config == config)); } @@ -2829,8 +2836,8 @@ class _$VeilidUpdateConfig implements VeilidUpdateConfig { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$VeilidUpdateConfigCopyWith<_$VeilidUpdateConfig> get copyWith => - __$$VeilidUpdateConfigCopyWithImpl<_$VeilidUpdateConfig>( + _$$VeilidUpdateConfigImplCopyWith<_$VeilidUpdateConfigImpl> get copyWith => + __$$VeilidUpdateConfigImplCopyWithImpl<_$VeilidUpdateConfigImpl>( this, _$identity); @override @@ -2973,7 +2980,7 @@ class _$VeilidUpdateConfig implements VeilidUpdateConfig { @override Map toJson() { - return _$$VeilidUpdateConfigToJson( + return _$$VeilidUpdateConfigImplToJson( this, ); } @@ -2981,32 +2988,34 @@ class _$VeilidUpdateConfig implements VeilidUpdateConfig { abstract class VeilidUpdateConfig implements VeilidUpdate { const factory VeilidUpdateConfig({required final VeilidConfig config}) = - _$VeilidUpdateConfig; + _$VeilidUpdateConfigImpl; factory VeilidUpdateConfig.fromJson(Map json) = - _$VeilidUpdateConfig.fromJson; + _$VeilidUpdateConfigImpl.fromJson; VeilidConfig get config; @JsonKey(ignore: true) - _$$VeilidUpdateConfigCopyWith<_$VeilidUpdateConfig> get copyWith => + _$$VeilidUpdateConfigImplCopyWith<_$VeilidUpdateConfigImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$VeilidUpdateRouteChangeCopyWith<$Res> { - factory _$$VeilidUpdateRouteChangeCopyWith(_$VeilidUpdateRouteChange value, - $Res Function(_$VeilidUpdateRouteChange) then) = - __$$VeilidUpdateRouteChangeCopyWithImpl<$Res>; +abstract class _$$VeilidUpdateRouteChangeImplCopyWith<$Res> { + factory _$$VeilidUpdateRouteChangeImplCopyWith( + _$VeilidUpdateRouteChangeImpl value, + $Res Function(_$VeilidUpdateRouteChangeImpl) then) = + __$$VeilidUpdateRouteChangeImplCopyWithImpl<$Res>; @useResult $Res call({List deadRoutes, List deadRemoteRoutes}); } /// @nodoc -class __$$VeilidUpdateRouteChangeCopyWithImpl<$Res> - extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidUpdateRouteChange> - implements _$$VeilidUpdateRouteChangeCopyWith<$Res> { - __$$VeilidUpdateRouteChangeCopyWithImpl(_$VeilidUpdateRouteChange _value, - $Res Function(_$VeilidUpdateRouteChange) _then) +class __$$VeilidUpdateRouteChangeImplCopyWithImpl<$Res> + extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidUpdateRouteChangeImpl> + implements _$$VeilidUpdateRouteChangeImplCopyWith<$Res> { + __$$VeilidUpdateRouteChangeImplCopyWithImpl( + _$VeilidUpdateRouteChangeImpl _value, + $Res Function(_$VeilidUpdateRouteChangeImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3015,7 +3024,7 @@ class __$$VeilidUpdateRouteChangeCopyWithImpl<$Res> Object? deadRoutes = null, Object? deadRemoteRoutes = null, }) { - return _then(_$VeilidUpdateRouteChange( + return _then(_$VeilidUpdateRouteChangeImpl( deadRoutes: null == deadRoutes ? _value._deadRoutes : deadRoutes // ignore: cast_nullable_to_non_nullable @@ -3030,8 +3039,8 @@ class __$$VeilidUpdateRouteChangeCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$VeilidUpdateRouteChange implements VeilidUpdateRouteChange { - const _$VeilidUpdateRouteChange( +class _$VeilidUpdateRouteChangeImpl implements VeilidUpdateRouteChange { + const _$VeilidUpdateRouteChangeImpl( {required final List deadRoutes, required final List deadRemoteRoutes, final String? $type}) @@ -3039,8 +3048,8 @@ class _$VeilidUpdateRouteChange implements VeilidUpdateRouteChange { _deadRemoteRoutes = deadRemoteRoutes, $type = $type ?? 'RouteChange'; - factory _$VeilidUpdateRouteChange.fromJson(Map json) => - _$$VeilidUpdateRouteChangeFromJson(json); + factory _$VeilidUpdateRouteChangeImpl.fromJson(Map json) => + _$$VeilidUpdateRouteChangeImplFromJson(json); final List _deadRoutes; @override @@ -3068,10 +3077,10 @@ class _$VeilidUpdateRouteChange implements VeilidUpdateRouteChange { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$VeilidUpdateRouteChange && + other is _$VeilidUpdateRouteChangeImpl && const DeepCollectionEquality() .equals(other._deadRoutes, _deadRoutes) && const DeepCollectionEquality() @@ -3088,9 +3097,9 @@ class _$VeilidUpdateRouteChange implements VeilidUpdateRouteChange { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$VeilidUpdateRouteChangeCopyWith<_$VeilidUpdateRouteChange> get copyWith => - __$$VeilidUpdateRouteChangeCopyWithImpl<_$VeilidUpdateRouteChange>( - this, _$identity); + _$$VeilidUpdateRouteChangeImplCopyWith<_$VeilidUpdateRouteChangeImpl> + get copyWith => __$$VeilidUpdateRouteChangeImplCopyWithImpl< + _$VeilidUpdateRouteChangeImpl>(this, _$identity); @override @optionalTypeArgs @@ -3232,7 +3241,7 @@ class _$VeilidUpdateRouteChange implements VeilidUpdateRouteChange { @override Map toJson() { - return _$$VeilidUpdateRouteChangeToJson( + return _$$VeilidUpdateRouteChangeImplToJson( this, ); } @@ -3242,23 +3251,24 @@ abstract class VeilidUpdateRouteChange implements VeilidUpdate { const factory VeilidUpdateRouteChange( {required final List deadRoutes, required final List deadRemoteRoutes}) = - _$VeilidUpdateRouteChange; + _$VeilidUpdateRouteChangeImpl; factory VeilidUpdateRouteChange.fromJson(Map json) = - _$VeilidUpdateRouteChange.fromJson; + _$VeilidUpdateRouteChangeImpl.fromJson; List get deadRoutes; List get deadRemoteRoutes; @JsonKey(ignore: true) - _$$VeilidUpdateRouteChangeCopyWith<_$VeilidUpdateRouteChange> get copyWith => - throw _privateConstructorUsedError; + _$$VeilidUpdateRouteChangeImplCopyWith<_$VeilidUpdateRouteChangeImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$VeilidUpdateValueChangeCopyWith<$Res> { - factory _$$VeilidUpdateValueChangeCopyWith(_$VeilidUpdateValueChange value, - $Res Function(_$VeilidUpdateValueChange) then) = - __$$VeilidUpdateValueChangeCopyWithImpl<$Res>; +abstract class _$$VeilidUpdateValueChangeImplCopyWith<$Res> { + factory _$$VeilidUpdateValueChangeImplCopyWith( + _$VeilidUpdateValueChangeImpl value, + $Res Function(_$VeilidUpdateValueChangeImpl) then) = + __$$VeilidUpdateValueChangeImplCopyWithImpl<$Res>; @useResult $Res call( {Typed key, @@ -3270,11 +3280,12 @@ abstract class _$$VeilidUpdateValueChangeCopyWith<$Res> { } /// @nodoc -class __$$VeilidUpdateValueChangeCopyWithImpl<$Res> - extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidUpdateValueChange> - implements _$$VeilidUpdateValueChangeCopyWith<$Res> { - __$$VeilidUpdateValueChangeCopyWithImpl(_$VeilidUpdateValueChange _value, - $Res Function(_$VeilidUpdateValueChange) _then) +class __$$VeilidUpdateValueChangeImplCopyWithImpl<$Res> + extends _$VeilidUpdateCopyWithImpl<$Res, _$VeilidUpdateValueChangeImpl> + implements _$$VeilidUpdateValueChangeImplCopyWith<$Res> { + __$$VeilidUpdateValueChangeImplCopyWithImpl( + _$VeilidUpdateValueChangeImpl _value, + $Res Function(_$VeilidUpdateValueChangeImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3285,7 +3296,7 @@ class __$$VeilidUpdateValueChangeCopyWithImpl<$Res> Object? count = null, Object? value = null, }) { - return _then(_$VeilidUpdateValueChange( + return _then(_$VeilidUpdateValueChangeImpl( key: null == key ? _value.key : key // ignore: cast_nullable_to_non_nullable @@ -3316,8 +3327,8 @@ class __$$VeilidUpdateValueChangeCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$VeilidUpdateValueChange implements VeilidUpdateValueChange { - const _$VeilidUpdateValueChange( +class _$VeilidUpdateValueChangeImpl implements VeilidUpdateValueChange { + const _$VeilidUpdateValueChangeImpl( {required this.key, required final List subkeys, required this.count, @@ -3326,8 +3337,8 @@ class _$VeilidUpdateValueChange implements VeilidUpdateValueChange { : _subkeys = subkeys, $type = $type ?? 'ValueChange'; - factory _$VeilidUpdateValueChange.fromJson(Map json) => - _$$VeilidUpdateValueChangeFromJson(json); + factory _$VeilidUpdateValueChangeImpl.fromJson(Map json) => + _$$VeilidUpdateValueChangeImplFromJson(json); @override final Typed key; @@ -3353,10 +3364,10 @@ class _$VeilidUpdateValueChange implements VeilidUpdateValueChange { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$VeilidUpdateValueChange && + other is _$VeilidUpdateValueChangeImpl && (identical(other.key, key) || other.key == key) && const DeepCollectionEquality().equals(other._subkeys, _subkeys) && (identical(other.count, count) || other.count == count) && @@ -3371,9 +3382,9 @@ class _$VeilidUpdateValueChange implements VeilidUpdateValueChange { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$VeilidUpdateValueChangeCopyWith<_$VeilidUpdateValueChange> get copyWith => - __$$VeilidUpdateValueChangeCopyWithImpl<_$VeilidUpdateValueChange>( - this, _$identity); + _$$VeilidUpdateValueChangeImplCopyWith<_$VeilidUpdateValueChangeImpl> + get copyWith => __$$VeilidUpdateValueChangeImplCopyWithImpl< + _$VeilidUpdateValueChangeImpl>(this, _$identity); @override @optionalTypeArgs @@ -3515,7 +3526,7 @@ class _$VeilidUpdateValueChange implements VeilidUpdateValueChange { @override Map toJson() { - return _$$VeilidUpdateValueChangeToJson( + return _$$VeilidUpdateValueChangeImplToJson( this, ); } @@ -3526,18 +3537,18 @@ abstract class VeilidUpdateValueChange implements VeilidUpdate { {required final Typed key, required final List subkeys, required final int count, - required final ValueData value}) = _$VeilidUpdateValueChange; + required final ValueData value}) = _$VeilidUpdateValueChangeImpl; factory VeilidUpdateValueChange.fromJson(Map json) = - _$VeilidUpdateValueChange.fromJson; + _$VeilidUpdateValueChangeImpl.fromJson; Typed get key; List get subkeys; int get count; ValueData get value; @JsonKey(ignore: true) - _$$VeilidUpdateValueChangeCopyWith<_$VeilidUpdateValueChange> get copyWith => - throw _privateConstructorUsedError; + _$$VeilidUpdateValueChangeImplCopyWith<_$VeilidUpdateValueChangeImpl> + get copyWith => throw _privateConstructorUsedError; } VeilidStateAttachment _$VeilidStateAttachmentFromJson( @@ -3605,11 +3616,12 @@ class _$VeilidStateAttachmentCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_VeilidStateAttachmentCopyWith<$Res> +abstract class _$$VeilidStateAttachmentImplCopyWith<$Res> implements $VeilidStateAttachmentCopyWith<$Res> { - factory _$$_VeilidStateAttachmentCopyWith(_$_VeilidStateAttachment value, - $Res Function(_$_VeilidStateAttachment) then) = - __$$_VeilidStateAttachmentCopyWithImpl<$Res>; + factory _$$VeilidStateAttachmentImplCopyWith( + _$VeilidStateAttachmentImpl value, + $Res Function(_$VeilidStateAttachmentImpl) then) = + __$$VeilidStateAttachmentImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -3619,11 +3631,12 @@ abstract class _$$_VeilidStateAttachmentCopyWith<$Res> } /// @nodoc -class __$$_VeilidStateAttachmentCopyWithImpl<$Res> - extends _$VeilidStateAttachmentCopyWithImpl<$Res, _$_VeilidStateAttachment> - implements _$$_VeilidStateAttachmentCopyWith<$Res> { - __$$_VeilidStateAttachmentCopyWithImpl(_$_VeilidStateAttachment _value, - $Res Function(_$_VeilidStateAttachment) _then) +class __$$VeilidStateAttachmentImplCopyWithImpl<$Res> + extends _$VeilidStateAttachmentCopyWithImpl<$Res, + _$VeilidStateAttachmentImpl> + implements _$$VeilidStateAttachmentImplCopyWith<$Res> { + __$$VeilidStateAttachmentImplCopyWithImpl(_$VeilidStateAttachmentImpl _value, + $Res Function(_$VeilidStateAttachmentImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3633,7 +3646,7 @@ class __$$_VeilidStateAttachmentCopyWithImpl<$Res> Object? publicInternetReady = null, Object? localNetworkReady = null, }) { - return _then(_$_VeilidStateAttachment( + return _then(_$VeilidStateAttachmentImpl( state: null == state ? _value.state : state // ignore: cast_nullable_to_non_nullable @@ -3652,14 +3665,14 @@ class __$$_VeilidStateAttachmentCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidStateAttachment implements _VeilidStateAttachment { - const _$_VeilidStateAttachment( +class _$VeilidStateAttachmentImpl implements _VeilidStateAttachment { + const _$VeilidStateAttachmentImpl( {required this.state, required this.publicInternetReady, required this.localNetworkReady}); - factory _$_VeilidStateAttachment.fromJson(Map json) => - _$$_VeilidStateAttachmentFromJson(json); + factory _$VeilidStateAttachmentImpl.fromJson(Map json) => + _$$VeilidStateAttachmentImplFromJson(json); @override final AttachmentState state; @@ -3674,10 +3687,10 @@ class _$_VeilidStateAttachment implements _VeilidStateAttachment { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidStateAttachment && + other is _$VeilidStateAttachmentImpl && (identical(other.state, state) || other.state == state) && (identical(other.publicInternetReady, publicInternetReady) || other.publicInternetReady == publicInternetReady) && @@ -3693,13 +3706,13 @@ class _$_VeilidStateAttachment implements _VeilidStateAttachment { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidStateAttachmentCopyWith<_$_VeilidStateAttachment> get copyWith => - __$$_VeilidStateAttachmentCopyWithImpl<_$_VeilidStateAttachment>( - this, _$identity); + _$$VeilidStateAttachmentImplCopyWith<_$VeilidStateAttachmentImpl> + get copyWith => __$$VeilidStateAttachmentImplCopyWithImpl< + _$VeilidStateAttachmentImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidStateAttachmentToJson( + return _$$VeilidStateAttachmentImplToJson( this, ); } @@ -3709,10 +3722,10 @@ abstract class _VeilidStateAttachment implements VeilidStateAttachment { const factory _VeilidStateAttachment( {required final AttachmentState state, required final bool publicInternetReady, - required final bool localNetworkReady}) = _$_VeilidStateAttachment; + required final bool localNetworkReady}) = _$VeilidStateAttachmentImpl; factory _VeilidStateAttachment.fromJson(Map json) = - _$_VeilidStateAttachment.fromJson; + _$VeilidStateAttachmentImpl.fromJson; @override AttachmentState get state; @@ -3722,8 +3735,8 @@ abstract class _VeilidStateAttachment implements VeilidStateAttachment { bool get localNetworkReady; @override @JsonKey(ignore: true) - _$$_VeilidStateAttachmentCopyWith<_$_VeilidStateAttachment> get copyWith => - throw _privateConstructorUsedError; + _$$VeilidStateAttachmentImplCopyWith<_$VeilidStateAttachmentImpl> + get copyWith => throw _privateConstructorUsedError; } VeilidStateNetwork _$VeilidStateNetworkFromJson(Map json) { @@ -3793,11 +3806,11 @@ class _$VeilidStateNetworkCopyWithImpl<$Res, $Val extends VeilidStateNetwork> } /// @nodoc -abstract class _$$_VeilidStateNetworkCopyWith<$Res> +abstract class _$$VeilidStateNetworkImplCopyWith<$Res> implements $VeilidStateNetworkCopyWith<$Res> { - factory _$$_VeilidStateNetworkCopyWith(_$_VeilidStateNetwork value, - $Res Function(_$_VeilidStateNetwork) then) = - __$$_VeilidStateNetworkCopyWithImpl<$Res>; + factory _$$VeilidStateNetworkImplCopyWith(_$VeilidStateNetworkImpl value, + $Res Function(_$VeilidStateNetworkImpl) then) = + __$$VeilidStateNetworkImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -3805,11 +3818,11 @@ abstract class _$$_VeilidStateNetworkCopyWith<$Res> } /// @nodoc -class __$$_VeilidStateNetworkCopyWithImpl<$Res> - extends _$VeilidStateNetworkCopyWithImpl<$Res, _$_VeilidStateNetwork> - implements _$$_VeilidStateNetworkCopyWith<$Res> { - __$$_VeilidStateNetworkCopyWithImpl( - _$_VeilidStateNetwork _value, $Res Function(_$_VeilidStateNetwork) _then) +class __$$VeilidStateNetworkImplCopyWithImpl<$Res> + extends _$VeilidStateNetworkCopyWithImpl<$Res, _$VeilidStateNetworkImpl> + implements _$$VeilidStateNetworkImplCopyWith<$Res> { + __$$VeilidStateNetworkImplCopyWithImpl(_$VeilidStateNetworkImpl _value, + $Res Function(_$VeilidStateNetworkImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3820,7 +3833,7 @@ class __$$_VeilidStateNetworkCopyWithImpl<$Res> Object? bpsUp = null, Object? peers = null, }) { - return _then(_$_VeilidStateNetwork( + return _then(_$VeilidStateNetworkImpl( started: null == started ? _value.started : started // ignore: cast_nullable_to_non_nullable @@ -3843,16 +3856,16 @@ class __$$_VeilidStateNetworkCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidStateNetwork implements _VeilidStateNetwork { - const _$_VeilidStateNetwork( +class _$VeilidStateNetworkImpl implements _VeilidStateNetwork { + const _$VeilidStateNetworkImpl( {required this.started, required this.bpsDown, required this.bpsUp, required final List peers}) : _peers = peers; - factory _$_VeilidStateNetwork.fromJson(Map json) => - _$$_VeilidStateNetworkFromJson(json); + factory _$VeilidStateNetworkImpl.fromJson(Map json) => + _$$VeilidStateNetworkImplFromJson(json); @override final bool started; @@ -3874,10 +3887,10 @@ class _$_VeilidStateNetwork implements _VeilidStateNetwork { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidStateNetwork && + other is _$VeilidStateNetworkImpl && (identical(other.started, started) || other.started == started) && (identical(other.bpsDown, bpsDown) || other.bpsDown == bpsDown) && (identical(other.bpsUp, bpsUp) || other.bpsUp == bpsUp) && @@ -3892,13 +3905,13 @@ class _$_VeilidStateNetwork implements _VeilidStateNetwork { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidStateNetworkCopyWith<_$_VeilidStateNetwork> get copyWith => - __$$_VeilidStateNetworkCopyWithImpl<_$_VeilidStateNetwork>( + _$$VeilidStateNetworkImplCopyWith<_$VeilidStateNetworkImpl> get copyWith => + __$$VeilidStateNetworkImplCopyWithImpl<_$VeilidStateNetworkImpl>( this, _$identity); @override Map toJson() { - return _$$_VeilidStateNetworkToJson( + return _$$VeilidStateNetworkImplToJson( this, ); } @@ -3909,10 +3922,10 @@ abstract class _VeilidStateNetwork implements VeilidStateNetwork { {required final bool started, required final BigInt bpsDown, required final BigInt bpsUp, - required final List peers}) = _$_VeilidStateNetwork; + required final List peers}) = _$VeilidStateNetworkImpl; factory _VeilidStateNetwork.fromJson(Map json) = - _$_VeilidStateNetwork.fromJson; + _$VeilidStateNetworkImpl.fromJson; @override bool get started; @@ -3924,7 +3937,7 @@ abstract class _VeilidStateNetwork implements VeilidStateNetwork { List get peers; @override @JsonKey(ignore: true) - _$$_VeilidStateNetworkCopyWith<_$_VeilidStateNetwork> get copyWith => + _$$VeilidStateNetworkImplCopyWith<_$VeilidStateNetworkImpl> get copyWith => throw _privateConstructorUsedError; } @@ -3986,11 +3999,11 @@ class _$VeilidStateConfigCopyWithImpl<$Res, $Val extends VeilidStateConfig> } /// @nodoc -abstract class _$$_VeilidStateConfigCopyWith<$Res> +abstract class _$$VeilidStateConfigImplCopyWith<$Res> implements $VeilidStateConfigCopyWith<$Res> { - factory _$$_VeilidStateConfigCopyWith(_$_VeilidStateConfig value, - $Res Function(_$_VeilidStateConfig) then) = - __$$_VeilidStateConfigCopyWithImpl<$Res>; + factory _$$VeilidStateConfigImplCopyWith(_$VeilidStateConfigImpl value, + $Res Function(_$VeilidStateConfigImpl) then) = + __$$VeilidStateConfigImplCopyWithImpl<$Res>; @override @useResult $Res call({VeilidConfig config}); @@ -4000,11 +4013,11 @@ abstract class _$$_VeilidStateConfigCopyWith<$Res> } /// @nodoc -class __$$_VeilidStateConfigCopyWithImpl<$Res> - extends _$VeilidStateConfigCopyWithImpl<$Res, _$_VeilidStateConfig> - implements _$$_VeilidStateConfigCopyWith<$Res> { - __$$_VeilidStateConfigCopyWithImpl( - _$_VeilidStateConfig _value, $Res Function(_$_VeilidStateConfig) _then) +class __$$VeilidStateConfigImplCopyWithImpl<$Res> + extends _$VeilidStateConfigCopyWithImpl<$Res, _$VeilidStateConfigImpl> + implements _$$VeilidStateConfigImplCopyWith<$Res> { + __$$VeilidStateConfigImplCopyWithImpl(_$VeilidStateConfigImpl _value, + $Res Function(_$VeilidStateConfigImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -4012,7 +4025,7 @@ class __$$_VeilidStateConfigCopyWithImpl<$Res> $Res call({ Object? config = null, }) { - return _then(_$_VeilidStateConfig( + return _then(_$VeilidStateConfigImpl( config: null == config ? _value.config : config // ignore: cast_nullable_to_non_nullable @@ -4023,11 +4036,11 @@ class __$$_VeilidStateConfigCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidStateConfig implements _VeilidStateConfig { - const _$_VeilidStateConfig({required this.config}); +class _$VeilidStateConfigImpl implements _VeilidStateConfig { + const _$VeilidStateConfigImpl({required this.config}); - factory _$_VeilidStateConfig.fromJson(Map json) => - _$$_VeilidStateConfigFromJson(json); + factory _$VeilidStateConfigImpl.fromJson(Map json) => + _$$VeilidStateConfigImplFromJson(json); @override final VeilidConfig config; @@ -4038,10 +4051,10 @@ class _$_VeilidStateConfig implements _VeilidStateConfig { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidStateConfig && + other is _$VeilidStateConfigImpl && (identical(other.config, config) || other.config == config)); } @@ -4052,13 +4065,13 @@ class _$_VeilidStateConfig implements _VeilidStateConfig { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidStateConfigCopyWith<_$_VeilidStateConfig> get copyWith => - __$$_VeilidStateConfigCopyWithImpl<_$_VeilidStateConfig>( + _$$VeilidStateConfigImplCopyWith<_$VeilidStateConfigImpl> get copyWith => + __$$VeilidStateConfigImplCopyWithImpl<_$VeilidStateConfigImpl>( this, _$identity); @override Map toJson() { - return _$$_VeilidStateConfigToJson( + return _$$VeilidStateConfigImplToJson( this, ); } @@ -4066,16 +4079,16 @@ class _$_VeilidStateConfig implements _VeilidStateConfig { abstract class _VeilidStateConfig implements VeilidStateConfig { const factory _VeilidStateConfig({required final VeilidConfig config}) = - _$_VeilidStateConfig; + _$VeilidStateConfigImpl; factory _VeilidStateConfig.fromJson(Map json) = - _$_VeilidStateConfig.fromJson; + _$VeilidStateConfigImpl.fromJson; @override VeilidConfig get config; @override @JsonKey(ignore: true) - _$$_VeilidStateConfigCopyWith<_$_VeilidStateConfig> get copyWith => + _$$VeilidStateConfigImplCopyWith<_$VeilidStateConfigImpl> get copyWith => throw _privateConstructorUsedError; } @@ -4170,11 +4183,11 @@ class _$VeilidStateCopyWithImpl<$Res, $Val extends VeilidState> } /// @nodoc -abstract class _$$_VeilidStateCopyWith<$Res> +abstract class _$$VeilidStateImplCopyWith<$Res> implements $VeilidStateCopyWith<$Res> { - factory _$$_VeilidStateCopyWith( - _$_VeilidState value, $Res Function(_$_VeilidState) then) = - __$$_VeilidStateCopyWithImpl<$Res>; + factory _$$VeilidStateImplCopyWith( + _$VeilidStateImpl value, $Res Function(_$VeilidStateImpl) then) = + __$$VeilidStateImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -4191,11 +4204,11 @@ abstract class _$$_VeilidStateCopyWith<$Res> } /// @nodoc -class __$$_VeilidStateCopyWithImpl<$Res> - extends _$VeilidStateCopyWithImpl<$Res, _$_VeilidState> - implements _$$_VeilidStateCopyWith<$Res> { - __$$_VeilidStateCopyWithImpl( - _$_VeilidState _value, $Res Function(_$_VeilidState) _then) +class __$$VeilidStateImplCopyWithImpl<$Res> + extends _$VeilidStateCopyWithImpl<$Res, _$VeilidStateImpl> + implements _$$VeilidStateImplCopyWith<$Res> { + __$$VeilidStateImplCopyWithImpl( + _$VeilidStateImpl _value, $Res Function(_$VeilidStateImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -4205,7 +4218,7 @@ class __$$_VeilidStateCopyWithImpl<$Res> Object? network = null, Object? config = null, }) { - return _then(_$_VeilidState( + return _then(_$VeilidStateImpl( attachment: null == attachment ? _value.attachment : attachment // ignore: cast_nullable_to_non_nullable @@ -4224,12 +4237,12 @@ class __$$_VeilidStateCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VeilidState implements _VeilidState { - const _$_VeilidState( +class _$VeilidStateImpl implements _VeilidState { + const _$VeilidStateImpl( {required this.attachment, required this.network, required this.config}); - factory _$_VeilidState.fromJson(Map json) => - _$$_VeilidStateFromJson(json); + factory _$VeilidStateImpl.fromJson(Map json) => + _$$VeilidStateImplFromJson(json); @override final VeilidStateAttachment attachment; @@ -4244,10 +4257,10 @@ class _$_VeilidState implements _VeilidState { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VeilidState && + other is _$VeilidStateImpl && (identical(other.attachment, attachment) || other.attachment == attachment) && (identical(other.network, network) || other.network == network) && @@ -4261,12 +4274,12 @@ class _$_VeilidState implements _VeilidState { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VeilidStateCopyWith<_$_VeilidState> get copyWith => - __$$_VeilidStateCopyWithImpl<_$_VeilidState>(this, _$identity); + _$$VeilidStateImplCopyWith<_$VeilidStateImpl> get copyWith => + __$$VeilidStateImplCopyWithImpl<_$VeilidStateImpl>(this, _$identity); @override Map toJson() { - return _$$_VeilidStateToJson( + return _$$VeilidStateImplToJson( this, ); } @@ -4276,10 +4289,10 @@ abstract class _VeilidState implements VeilidState { const factory _VeilidState( {required final VeilidStateAttachment attachment, required final VeilidStateNetwork network, - required final VeilidStateConfig config}) = _$_VeilidState; + required final VeilidStateConfig config}) = _$VeilidStateImpl; factory _VeilidState.fromJson(Map json) = - _$_VeilidState.fromJson; + _$VeilidStateImpl.fromJson; @override VeilidStateAttachment get attachment; @@ -4289,6 +4302,6 @@ abstract class _VeilidState implements VeilidState { VeilidStateConfig get config; @override @JsonKey(ignore: true) - _$$_VeilidStateCopyWith<_$_VeilidState> get copyWith => + _$$VeilidStateImplCopyWith<_$VeilidStateImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/veilid-flutter/lib/veilid_state.g.dart b/veilid-flutter/lib/veilid_state.g.dart index e85af125..88733fbc 100644 --- a/veilid-flutter/lib/veilid_state.g.dart +++ b/veilid-flutter/lib/veilid_state.g.dart @@ -6,29 +6,29 @@ part of 'veilid_state.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_LatencyStats _$$_LatencyStatsFromJson(Map json) => - _$_LatencyStats( +_$LatencyStatsImpl _$$LatencyStatsImplFromJson(Map json) => + _$LatencyStatsImpl( fastest: TimestampDuration.fromJson(json['fastest']), average: TimestampDuration.fromJson(json['average']), slowest: TimestampDuration.fromJson(json['slowest']), ); -Map _$$_LatencyStatsToJson(_$_LatencyStats instance) => +Map _$$LatencyStatsImplToJson(_$LatencyStatsImpl instance) => { 'fastest': instance.fastest.toJson(), 'average': instance.average.toJson(), 'slowest': instance.slowest.toJson(), }; -_$_TransferStats _$$_TransferStatsFromJson(Map json) => - _$_TransferStats( +_$TransferStatsImpl _$$TransferStatsImplFromJson(Map json) => + _$TransferStatsImpl( total: BigInt.parse(json['total'] as String), maximum: BigInt.parse(json['maximum'] as String), average: BigInt.parse(json['average'] as String), minimum: BigInt.parse(json['minimum'] as String), ); -Map _$$_TransferStatsToJson(_$_TransferStats instance) => +Map _$$TransferStatsImplToJson(_$TransferStatsImpl instance) => { 'total': instance.total.toString(), 'maximum': instance.maximum.toString(), @@ -36,21 +36,22 @@ Map _$$_TransferStatsToJson(_$_TransferStats instance) => 'minimum': instance.minimum.toString(), }; -_$_TransferStatsDownUp _$$_TransferStatsDownUpFromJson( +_$TransferStatsDownUpImpl _$$TransferStatsDownUpImplFromJson( Map json) => - _$_TransferStatsDownUp( + _$TransferStatsDownUpImpl( down: TransferStats.fromJson(json['down']), up: TransferStats.fromJson(json['up']), ); -Map _$$_TransferStatsDownUpToJson( - _$_TransferStatsDownUp instance) => +Map _$$TransferStatsDownUpImplToJson( + _$TransferStatsDownUpImpl instance) => { 'down': instance.down.toJson(), 'up': instance.up.toJson(), }; -_$_RPCStats _$$_RPCStatsFromJson(Map json) => _$_RPCStats( +_$RPCStatsImpl _$$RPCStatsImplFromJson(Map json) => + _$RPCStatsImpl( messagesSent: json['messages_sent'] as int, messagesRcvd: json['messages_rcvd'] as int, questionsInFlight: json['questions_in_flight'] as int, @@ -67,7 +68,7 @@ _$_RPCStats _$$_RPCStatsFromJson(Map json) => _$_RPCStats( failedToSend: json['failed_to_send'] as int, ); -Map _$$_RPCStatsToJson(_$_RPCStats instance) => +Map _$$RPCStatsImplToJson(_$RPCStatsImpl instance) => { 'messages_sent': instance.messagesSent, 'messages_rcvd': instance.messagesRcvd, @@ -79,7 +80,8 @@ Map _$$_RPCStatsToJson(_$_RPCStats instance) => 'failed_to_send': instance.failedToSend, }; -_$_PeerStats _$$_PeerStatsFromJson(Map json) => _$_PeerStats( +_$PeerStatsImpl _$$PeerStatsImplFromJson(Map json) => + _$PeerStatsImpl( timeAdded: Timestamp.fromJson(json['time_added']), rpcStats: RPCStats.fromJson(json['rpc_stats']), transfer: TransferStatsDownUp.fromJson(json['transfer']), @@ -88,7 +90,7 @@ _$_PeerStats _$$_PeerStatsFromJson(Map json) => _$_PeerStats( : LatencyStats.fromJson(json['latency']), ); -Map _$$_PeerStatsToJson(_$_PeerStats instance) => +Map _$$PeerStatsImplToJson(_$PeerStatsImpl instance) => { 'time_added': instance.timeAdded.toJson(), 'rpc_stats': instance.rpcStats.toJson(), @@ -96,8 +98,8 @@ Map _$$_PeerStatsToJson(_$_PeerStats instance) => 'latency': instance.latency?.toJson(), }; -_$_PeerTableData _$$_PeerTableDataFromJson(Map json) => - _$_PeerTableData( +_$PeerTableDataImpl _$$PeerTableDataImplFromJson(Map json) => + _$PeerTableDataImpl( nodeIds: (json['node_ids'] as List) .map(Typed.fromJson) .toList(), @@ -105,21 +107,22 @@ _$_PeerTableData _$$_PeerTableDataFromJson(Map json) => peerStats: PeerStats.fromJson(json['peer_stats']), ); -Map _$$_PeerTableDataToJson(_$_PeerTableData instance) => +Map _$$PeerTableDataImplToJson(_$PeerTableDataImpl instance) => { 'node_ids': instance.nodeIds.map((e) => e.toJson()).toList(), 'peer_address': instance.peerAddress, 'peer_stats': instance.peerStats.toJson(), }; -_$VeilidLog _$$VeilidLogFromJson(Map json) => _$VeilidLog( +_$VeilidLogImpl _$$VeilidLogImplFromJson(Map json) => + _$VeilidLogImpl( logLevel: VeilidLogLevel.fromJson(json['log_level']), message: json['message'] as String, backtrace: json['backtrace'] as String?, $type: json['kind'] as String?, ); -Map _$$VeilidLogToJson(_$VeilidLog instance) => +Map _$$VeilidLogImplToJson(_$VeilidLogImpl instance) => { 'log_level': instance.logLevel.toJson(), 'message': instance.message, @@ -127,8 +130,9 @@ Map _$$VeilidLogToJson(_$VeilidLog instance) => 'kind': instance.$type, }; -_$VeilidAppMessage _$$VeilidAppMessageFromJson(Map json) => - _$VeilidAppMessage( +_$VeilidAppMessageImpl _$$VeilidAppMessageImplFromJson( + Map json) => + _$VeilidAppMessageImpl( message: const Uint8ListJsonConverter().fromJson(json['message']), sender: json['sender'] == null ? null @@ -136,15 +140,16 @@ _$VeilidAppMessage _$$VeilidAppMessageFromJson(Map json) => $type: json['kind'] as String?, ); -Map _$$VeilidAppMessageToJson(_$VeilidAppMessage instance) => +Map _$$VeilidAppMessageImplToJson( + _$VeilidAppMessageImpl instance) => { 'message': const Uint8ListJsonConverter().toJson(instance.message), 'sender': instance.sender?.toJson(), 'kind': instance.$type, }; -_$VeilidAppCall _$$VeilidAppCallFromJson(Map json) => - _$VeilidAppCall( +_$VeilidAppCallImpl _$$VeilidAppCallImplFromJson(Map json) => + _$VeilidAppCallImpl( message: const Uint8ListJsonConverter().fromJson(json['message']), callId: json['call_id'] as String, sender: json['sender'] == null @@ -153,7 +158,7 @@ _$VeilidAppCall _$$VeilidAppCallFromJson(Map json) => $type: json['kind'] as String?, ); -Map _$$VeilidAppCallToJson(_$VeilidAppCall instance) => +Map _$$VeilidAppCallImplToJson(_$VeilidAppCallImpl instance) => { 'message': const Uint8ListJsonConverter().toJson(instance.message), 'call_id': instance.callId, @@ -161,17 +166,17 @@ Map _$$VeilidAppCallToJson(_$VeilidAppCall instance) => 'kind': instance.$type, }; -_$VeilidUpdateAttachment _$$VeilidUpdateAttachmentFromJson( +_$VeilidUpdateAttachmentImpl _$$VeilidUpdateAttachmentImplFromJson( Map json) => - _$VeilidUpdateAttachment( + _$VeilidUpdateAttachmentImpl( state: AttachmentState.fromJson(json['state']), publicInternetReady: json['public_internet_ready'] as bool, localNetworkReady: json['local_network_ready'] as bool, $type: json['kind'] as String?, ); -Map _$$VeilidUpdateAttachmentToJson( - _$VeilidUpdateAttachment instance) => +Map _$$VeilidUpdateAttachmentImplToJson( + _$VeilidUpdateAttachmentImpl instance) => { 'state': instance.state.toJson(), 'public_internet_ready': instance.publicInternetReady, @@ -179,9 +184,9 @@ Map _$$VeilidUpdateAttachmentToJson( 'kind': instance.$type, }; -_$VeilidUpdateNetwork _$$VeilidUpdateNetworkFromJson( +_$VeilidUpdateNetworkImpl _$$VeilidUpdateNetworkImplFromJson( Map json) => - _$VeilidUpdateNetwork( + _$VeilidUpdateNetworkImpl( started: json['started'] as bool, bpsDown: BigInt.parse(json['bps_down'] as String), bpsUp: BigInt.parse(json['bps_up'] as String), @@ -190,8 +195,8 @@ _$VeilidUpdateNetwork _$$VeilidUpdateNetworkFromJson( $type: json['kind'] as String?, ); -Map _$$VeilidUpdateNetworkToJson( - _$VeilidUpdateNetwork instance) => +Map _$$VeilidUpdateNetworkImplToJson( + _$VeilidUpdateNetworkImpl instance) => { 'started': instance.started, 'bps_down': instance.bpsDown.toString(), @@ -200,22 +205,23 @@ Map _$$VeilidUpdateNetworkToJson( 'kind': instance.$type, }; -_$VeilidUpdateConfig _$$VeilidUpdateConfigFromJson(Map json) => - _$VeilidUpdateConfig( +_$VeilidUpdateConfigImpl _$$VeilidUpdateConfigImplFromJson( + Map json) => + _$VeilidUpdateConfigImpl( config: VeilidConfig.fromJson(json['config']), $type: json['kind'] as String?, ); -Map _$$VeilidUpdateConfigToJson( - _$VeilidUpdateConfig instance) => +Map _$$VeilidUpdateConfigImplToJson( + _$VeilidUpdateConfigImpl instance) => { 'config': instance.config.toJson(), 'kind': instance.$type, }; -_$VeilidUpdateRouteChange _$$VeilidUpdateRouteChangeFromJson( +_$VeilidUpdateRouteChangeImpl _$$VeilidUpdateRouteChangeImplFromJson( Map json) => - _$VeilidUpdateRouteChange( + _$VeilidUpdateRouteChangeImpl( deadRoutes: (json['dead_routes'] as List) .map((e) => e as String) .toList(), @@ -225,17 +231,17 @@ _$VeilidUpdateRouteChange _$$VeilidUpdateRouteChangeFromJson( $type: json['kind'] as String?, ); -Map _$$VeilidUpdateRouteChangeToJson( - _$VeilidUpdateRouteChange instance) => +Map _$$VeilidUpdateRouteChangeImplToJson( + _$VeilidUpdateRouteChangeImpl instance) => { 'dead_routes': instance.deadRoutes, 'dead_remote_routes': instance.deadRemoteRoutes, 'kind': instance.$type, }; -_$VeilidUpdateValueChange _$$VeilidUpdateValueChangeFromJson( +_$VeilidUpdateValueChangeImpl _$$VeilidUpdateValueChangeImplFromJson( Map json) => - _$VeilidUpdateValueChange( + _$VeilidUpdateValueChangeImpl( key: Typed.fromJson(json['key']), subkeys: (json['subkeys'] as List) .map(ValueSubkeyRange.fromJson) @@ -245,8 +251,8 @@ _$VeilidUpdateValueChange _$$VeilidUpdateValueChangeFromJson( $type: json['kind'] as String?, ); -Map _$$VeilidUpdateValueChangeToJson( - _$VeilidUpdateValueChange instance) => +Map _$$VeilidUpdateValueChangeImplToJson( + _$VeilidUpdateValueChangeImpl instance) => { 'key': instance.key.toJson(), 'subkeys': instance.subkeys.map((e) => e.toJson()).toList(), @@ -255,25 +261,25 @@ Map _$$VeilidUpdateValueChangeToJson( 'kind': instance.$type, }; -_$_VeilidStateAttachment _$$_VeilidStateAttachmentFromJson( +_$VeilidStateAttachmentImpl _$$VeilidStateAttachmentImplFromJson( Map json) => - _$_VeilidStateAttachment( + _$VeilidStateAttachmentImpl( state: AttachmentState.fromJson(json['state']), publicInternetReady: json['public_internet_ready'] as bool, localNetworkReady: json['local_network_ready'] as bool, ); -Map _$$_VeilidStateAttachmentToJson( - _$_VeilidStateAttachment instance) => +Map _$$VeilidStateAttachmentImplToJson( + _$VeilidStateAttachmentImpl instance) => { 'state': instance.state.toJson(), 'public_internet_ready': instance.publicInternetReady, 'local_network_ready': instance.localNetworkReady, }; -_$_VeilidStateNetwork _$$_VeilidStateNetworkFromJson( +_$VeilidStateNetworkImpl _$$VeilidStateNetworkImplFromJson( Map json) => - _$_VeilidStateNetwork( + _$VeilidStateNetworkImpl( started: json['started'] as bool, bpsDown: BigInt.parse(json['bps_down'] as String), bpsUp: BigInt.parse(json['bps_up'] as String), @@ -281,8 +287,8 @@ _$_VeilidStateNetwork _$$_VeilidStateNetworkFromJson( (json['peers'] as List).map(PeerTableData.fromJson).toList(), ); -Map _$$_VeilidStateNetworkToJson( - _$_VeilidStateNetwork instance) => +Map _$$VeilidStateNetworkImplToJson( + _$VeilidStateNetworkImpl instance) => { 'started': instance.started, 'bps_down': instance.bpsDown.toString(), @@ -290,25 +296,26 @@ Map _$$_VeilidStateNetworkToJson( 'peers': instance.peers.map((e) => e.toJson()).toList(), }; -_$_VeilidStateConfig _$$_VeilidStateConfigFromJson(Map json) => - _$_VeilidStateConfig( +_$VeilidStateConfigImpl _$$VeilidStateConfigImplFromJson( + Map json) => + _$VeilidStateConfigImpl( config: VeilidConfig.fromJson(json['config']), ); -Map _$$_VeilidStateConfigToJson( - _$_VeilidStateConfig instance) => +Map _$$VeilidStateConfigImplToJson( + _$VeilidStateConfigImpl instance) => { 'config': instance.config.toJson(), }; -_$_VeilidState _$$_VeilidStateFromJson(Map json) => - _$_VeilidState( +_$VeilidStateImpl _$$VeilidStateImplFromJson(Map json) => + _$VeilidStateImpl( attachment: VeilidStateAttachment.fromJson(json['attachment']), network: VeilidStateNetwork.fromJson(json['network']), config: VeilidStateConfig.fromJson(json['config']), ); -Map _$$_VeilidStateToJson(_$_VeilidState instance) => +Map _$$VeilidStateImplToJson(_$VeilidStateImpl instance) => { 'attachment': instance.attachment.toJson(), 'network': instance.network.toJson(), diff --git a/veilid-flutter/pubspec.yaml b/veilid-flutter/pubspec.yaml index ba961a61..d4a9be75 100644 --- a/veilid-flutter/pubspec.yaml +++ b/veilid-flutter/pubspec.yaml @@ -8,7 +8,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev environment: sdk: '>=3.0.0 <4.0.0' - flutter: '>=3.10.6' + flutter: '>=3.19.1' dependencies: change_case: ^2.0.1 diff --git a/veilid-flutter/rust/src/dart_ffi.rs b/veilid-flutter/rust/src/dart_ffi.rs index 3307acdb..0ff83070 100644 --- a/veilid-flutter/rust/src/dart_ffi.rs +++ b/veilid-flutter/rust/src/dart_ffi.rs @@ -99,6 +99,7 @@ const APIRESULT_VOID: APIResult<()> = APIResult::Ok(()); pub struct VeilidFFIConfigLoggingTerminal { pub enabled: bool, pub level: veilid_core::VeilidConfigLogLevel, + pub ignore_log_targets: Vec, } #[derive(Debug, Deserialize, Serialize)] @@ -107,12 +108,14 @@ pub struct VeilidFFIConfigLoggingOtlp { pub level: veilid_core::VeilidConfigLogLevel, pub grpc_endpoint: String, pub service_name: String, + pub ignore_log_targets: Vec, } #[derive(Debug, Deserialize, Serialize)] pub struct VeilidFFIConfigLoggingApi { pub enabled: bool, pub level: veilid_core::VeilidConfigLogLevel, + pub ignore_log_targets: Vec, } #[derive(Debug, Deserialize, Serialize)] @@ -205,7 +208,7 @@ pub extern "C" fn initialize_veilid_core(platform_config: FfiStr) { cfg_if! { if #[cfg(target_os = "android")] { let filter = - veilid_core::VeilidLayerFilter::new(platform_config.logging.terminal.level, None); + veilid_core::VeilidLayerFilter::new(platform_config.logging.terminal.level, &platform_config.logging.terminal.ignore_log_targets); let layer = paranoid_android::layer("veilid-flutter") .with_ansi(false) .with_filter(filter.clone()); @@ -213,7 +216,7 @@ pub extern "C" fn initialize_veilid_core(platform_config: FfiStr) { layers.push(layer.boxed()); } else { let filter = - veilid_core::VeilidLayerFilter::new(platform_config.logging.terminal.level, None); + veilid_core::VeilidLayerFilter::new(platform_config.logging.terminal.level, &platform_config.logging.terminal.ignore_log_targets); let layer = tracing_subscriber::fmt::Layer::new() .compact() .with_writer(std::io::stdout) @@ -263,7 +266,10 @@ pub extern "C" fn initialize_veilid_core(platform_config: FfiStr) { .map_err(|e| format!("failed to install OpenTelemetry tracer: {}", e)) .unwrap(); - let filter = veilid_core::VeilidLayerFilter::new(platform_config.logging.otlp.level, None); + let filter = veilid_core::VeilidLayerFilter::new( + platform_config.logging.otlp.level, + &platform_config.logging.otlp.ignore_log_targets, + ); let layer = tracing_opentelemetry::layer() .with_tracer(tracer) .with_filter(filter.clone()); @@ -273,7 +279,10 @@ pub extern "C" fn initialize_veilid_core(platform_config: FfiStr) { // API logger if platform_config.logging.api.enabled { - let filter = veilid_core::VeilidLayerFilter::new(platform_config.logging.api.level, None); + let filter = veilid_core::VeilidLayerFilter::new( + platform_config.logging.api.level, + &platform_config.logging.api.ignore_log_targets, + ); let layer = veilid_core::ApiTracingLayer::get().with_filter(filter.clone()); filters.insert("api", filter); layers.push(layer.boxed()); diff --git a/veilid-server/src/settings.rs b/veilid-server/src/settings.rs index 50893cbb..8bc3d4bf 100644 --- a/veilid-server/src/settings.rs +++ b/veilid-server/src/settings.rs @@ -415,6 +415,7 @@ impl NamedSocketAddrs { pub struct Terminal { pub enabled: bool, pub level: LogLevel, + pub ignore_log_targets: Vec, } #[derive(Debug, Deserialize, Serialize)] @@ -428,18 +429,21 @@ pub struct File { pub path: String, pub append: bool, pub level: LogLevel, + pub ignore_log_targets: Vec, } #[derive(Debug, Deserialize, Serialize)] pub struct System { pub enabled: bool, pub level: LogLevel, + pub ignore_log_targets: Vec, } #[derive(Debug, Deserialize, Serialize)] pub struct Api { pub enabled: bool, pub level: LogLevel, + pub ignore_log_targets: Vec, } #[derive(Debug, Deserialize, Serialize)] @@ -447,6 +451,7 @@ pub struct Otlp { pub enabled: bool, pub level: LogLevel, pub grpc_endpoint: NamedSocketAddrs, + pub ignore_log_targets: Vec, } #[derive(Debug, Deserialize, Serialize)] diff --git a/veilid-server/src/veilid_logs.rs b/veilid-server/src/veilid_logs.rs index 09b4d0a6..e5ea842f 100644 --- a/veilid-server/src/veilid_logs.rs +++ b/veilid-server/src/veilid_logs.rs @@ -61,7 +61,7 @@ impl VeilidLogs { if settingsr.logging.terminal.enabled { let filter = veilid_core::VeilidLayerFilter::new( convert_loglevel(settingsr.logging.terminal.level), - None, + &settingsr.logging.terminal.ignore_log_targets, ); let layer = fmt::Layer::new() .compact() @@ -72,7 +72,7 @@ impl VeilidLogs { } // OpenTelemetry logger - #[cfg(feature="opentelemetry-otlp")] + #[cfg(feature = "opentelemetry-otlp")] if settingsr.logging.otlp.enabled { let grpc_endpoint = settingsr.logging.otlp.grpc_endpoint.name.clone(); @@ -111,7 +111,7 @@ impl VeilidLogs { let filter = veilid_core::VeilidLayerFilter::new( convert_loglevel(settingsr.logging.otlp.level), - None, + &settingsr.logging.otlp.ignore_log_targets, ); let layer = tracing_opentelemetry::layer() .with_tracer(tracer) @@ -147,7 +147,7 @@ impl VeilidLogs { let filter = veilid_core::VeilidLayerFilter::new( convert_loglevel(settingsr.logging.file.level), - None, + &settingsr.logging.file.ignore_log_targets, ); let layer = fmt::Layer::new() .compact() @@ -162,7 +162,7 @@ impl VeilidLogs { if settingsr.logging.api.enabled { let filter = veilid_core::VeilidLayerFilter::new( convert_loglevel(settingsr.logging.api.level), - None, + &settingsr.logging.api.ignore_log_targets, ); let layer = veilid_core::ApiTracingLayer::get().with_filter(filter.clone()); filters.insert("api", filter); @@ -175,7 +175,7 @@ impl VeilidLogs { if settingsr.logging.system.enabled { let filter = veilid_core::VeilidLayerFilter::new( convert_loglevel(settingsr.logging.system.level), - None, + &settingsr.logging.system.ignore_log_targets, ); let layer = tracing_journald::layer().wrap_err("failed to set up journald logging")? .with_filter(filter.clone()); diff --git a/veilid-tools/src/log_thru.rs b/veilid-tools/src/log_thru.rs index 9988e7d5..9e59b3a7 100644 --- a/veilid-tools/src/log_thru.rs +++ b/veilid-tools/src/log_thru.rs @@ -69,7 +69,7 @@ macro_rules! log_rpc { (warn $fmt:literal, $($arg:expr),+) => { warn!(target:"rpc", $fmt, $($arg),+); }; - (debug $text:expr) => { error!( + (debug $text:expr) => { debug!( target: "rpc", "{}", $text, diff --git a/veilid-wasm/src/lib.rs b/veilid-wasm/src/lib.rs index 4ebd2cff..02047328 100644 --- a/veilid-wasm/src/lib.rs +++ b/veilid-wasm/src/lib.rs @@ -145,6 +145,7 @@ pub struct VeilidWASMConfigLoggingPerformance { pub level: veilid_core::VeilidConfigLogLevel, pub logs_in_timings: bool, pub logs_in_console: bool, + pub ignore_log_targets: Vec, } #[derive(Debug, Deserialize, Serialize)] @@ -152,6 +153,7 @@ pub struct VeilidWASMConfigLoggingPerformance { pub struct VeilidWASMConfigLoggingAPI { pub enabled: bool, pub level: veilid_core::VeilidConfigLogLevel, + pub ignore_log_targets: Vec, } #[derive(Debug, Deserialize, Serialize)] @@ -204,8 +206,10 @@ pub fn initialize_veilid_core(platform_config: String) { // Performance logger if platform_config.logging.performance.enabled { - let filter = - veilid_core::VeilidLayerFilter::new(platform_config.logging.performance.level, None); + let filter = veilid_core::VeilidLayerFilter::new( + platform_config.logging.performance.level, + &platform_config.logging.performance.ignore_log_targets, + ); let layer = WASMLayer::new( WASMLayerConfigBuilder::new() .set_report_logs_in_timings(platform_config.logging.performance.logs_in_timings) @@ -223,7 +227,10 @@ pub fn initialize_veilid_core(platform_config: String) { // API logger if platform_config.logging.api.enabled { - let filter = veilid_core::VeilidLayerFilter::new(platform_config.logging.api.level, None); + let filter = veilid_core::VeilidLayerFilter::new( + platform_config.logging.api.level, + &platform_config.logging.api.ignore_log_targets, + ); let layer = veilid_core::ApiTracingLayer::get().with_filter(filter.clone()); filters.insert("api", filter); layers.push(layer.boxed());