fix: make it build again

This commit is contained in:
Tien Do Nam
2026-07-14 18:21:05 +02:00
parent c8423d5315
commit 80d710461c
31 changed files with 1642 additions and 1101 deletions
+1
View File
@@ -2,6 +2,7 @@ targets:
$default: $default:
builders: builders:
slang_build_runner: slang_build_runner:
enabled: false
options: options:
base_locale: en base_locale: en
fallback_strategy: base_locale fallback_strategy: base_locale
+196 -76
View File
@@ -1,6 +1,8 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// dart format off
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: invalid_use_of_protected_member
// ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member // ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member
// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter // ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter
@@ -25,15 +27,15 @@ class DeviceTypeMapper extends EnumMapper<DeviceType> {
@override @override
DeviceType decode(dynamic value) { DeviceType decode(dynamic value) {
switch (value) { switch (value) {
case 'mobile': case r'mobile':
return DeviceType.mobile; return DeviceType.mobile;
case 'desktop': case r'desktop':
return DeviceType.desktop; return DeviceType.desktop;
case 'web': case r'web':
return DeviceType.web; return DeviceType.web;
case 'headless': case r'headless':
return DeviceType.headless; return DeviceType.headless;
case 'server': case r'server':
return DeviceType.server; return DeviceType.server;
default: default:
return DeviceType.values[1]; return DeviceType.values[1];
@@ -44,15 +46,15 @@ class DeviceTypeMapper extends EnumMapper<DeviceType> {
dynamic encode(DeviceType self) { dynamic encode(DeviceType self) {
switch (self) { switch (self) {
case DeviceType.mobile: case DeviceType.mobile:
return 'mobile'; return r'mobile';
case DeviceType.desktop: case DeviceType.desktop:
return 'desktop'; return r'desktop';
case DeviceType.web: case DeviceType.web:
return 'web'; return r'web';
case DeviceType.headless: case DeviceType.headless:
return 'headless'; return r'headless';
case DeviceType.server: case DeviceType.server:
return 'server'; return r'server';
} }
} }
} }
@@ -103,12 +105,16 @@ class DiscoveryMethodMapper extends ClassMapperBase<DiscoveryMethod> {
mixin DiscoveryMethodMappable { mixin DiscoveryMethodMappable {
String serialize(); String serialize();
Map<String, dynamic> toJson(); Map<String, dynamic> toJson();
DiscoveryMethodCopyWith<DiscoveryMethod, DiscoveryMethod, DiscoveryMethod> get copyWith; DiscoveryMethodCopyWith<DiscoveryMethod, DiscoveryMethod, DiscoveryMethod>
get copyWith;
} }
abstract class DiscoveryMethodCopyWith<$R, $In extends DiscoveryMethod, $Out> implements ClassCopyWith<$R, $In, $Out> { abstract class DiscoveryMethodCopyWith<$R, $In extends DiscoveryMethod, $Out>
implements ClassCopyWith<$R, $In, $Out> {
$R call(); $R call();
DiscoveryMethodCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); DiscoveryMethodCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
);
} }
class MulticastDiscoveryMapper extends ClassMapperBase<MulticastDiscovery> { class MulticastDiscoveryMapper extends ClassMapperBase<MulticastDiscovery> {
@@ -147,56 +153,87 @@ class MulticastDiscoveryMapper extends ClassMapperBase<MulticastDiscovery> {
mixin MulticastDiscoveryMappable { mixin MulticastDiscoveryMappable {
String serialize() { String serialize() {
return MulticastDiscoveryMapper.ensureInitialized().encodeJson<MulticastDiscovery>(this as MulticastDiscovery); return MulticastDiscoveryMapper.ensureInitialized()
.encodeJson<MulticastDiscovery>(this as MulticastDiscovery);
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return MulticastDiscoveryMapper.ensureInitialized().encodeMap<MulticastDiscovery>(this as MulticastDiscovery); return MulticastDiscoveryMapper.ensureInitialized()
.encodeMap<MulticastDiscovery>(this as MulticastDiscovery);
} }
MulticastDiscoveryCopyWith<MulticastDiscovery, MulticastDiscovery, MulticastDiscovery> get copyWith => MulticastDiscoveryCopyWith<
_MulticastDiscoveryCopyWithImpl(this as MulticastDiscovery, $identity, $identity); MulticastDiscovery,
MulticastDiscovery,
MulticastDiscovery
>
get copyWith =>
_MulticastDiscoveryCopyWithImpl<MulticastDiscovery, MulticastDiscovery>(
this as MulticastDiscovery,
$identity,
$identity,
);
@override @override
String toString() { String toString() {
return MulticastDiscoveryMapper.ensureInitialized().stringifyValue(this as MulticastDiscovery); return MulticastDiscoveryMapper.ensureInitialized().stringifyValue(
this as MulticastDiscovery,
);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return MulticastDiscoveryMapper.ensureInitialized().equalsValue(this as MulticastDiscovery, other); return MulticastDiscoveryMapper.ensureInitialized().equalsValue(
this as MulticastDiscovery,
other,
);
} }
@override @override
int get hashCode { int get hashCode {
return MulticastDiscoveryMapper.ensureInitialized().hashValue(this as MulticastDiscovery); return MulticastDiscoveryMapper.ensureInitialized().hashValue(
this as MulticastDiscovery,
);
} }
} }
extension MulticastDiscoveryValueCopy<$R, $Out> on ObjectCopyWith<$R, MulticastDiscovery, $Out> { extension MulticastDiscoveryValueCopy<$R, $Out>
MulticastDiscoveryCopyWith<$R, MulticastDiscovery, $Out> get $asMulticastDiscovery => on ObjectCopyWith<$R, MulticastDiscovery, $Out> {
$base.as((v, t, t2) => _MulticastDiscoveryCopyWithImpl(v, t, t2)); MulticastDiscoveryCopyWith<$R, MulticastDiscovery, $Out>
get $asMulticastDiscovery => $base.as(
(v, t, t2) => _MulticastDiscoveryCopyWithImpl<$R, $Out>(v, t, t2),
);
} }
abstract class MulticastDiscoveryCopyWith<$R, $In extends MulticastDiscovery, $Out> implements DiscoveryMethodCopyWith<$R, $In, $Out> { abstract class MulticastDiscoveryCopyWith<
$R,
$In extends MulticastDiscovery,
$Out
>
implements DiscoveryMethodCopyWith<$R, $In, $Out> {
@override @override
$R call(); $R call();
MulticastDiscoveryCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); MulticastDiscoveryCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
);
} }
class _MulticastDiscoveryCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, MulticastDiscovery, $Out> class _MulticastDiscoveryCopyWithImpl<$R, $Out>
extends ClassCopyWithBase<$R, MulticastDiscovery, $Out>
implements MulticastDiscoveryCopyWith<$R, MulticastDiscovery, $Out> { implements MulticastDiscoveryCopyWith<$R, MulticastDiscovery, $Out> {
_MulticastDiscoveryCopyWithImpl(super.value, super.then, super.then2); _MulticastDiscoveryCopyWithImpl(super.value, super.then, super.then2);
@override @override
late final ClassMapperBase<MulticastDiscovery> $mapper = MulticastDiscoveryMapper.ensureInitialized(); late final ClassMapperBase<MulticastDiscovery> $mapper =
MulticastDiscoveryMapper.ensureInitialized();
@override @override
$R call() => $apply(FieldCopyWithData({})); $R call() => $apply(FieldCopyWithData({}));
@override @override
MulticastDiscovery $make(CopyWithData data) => MulticastDiscovery(); MulticastDiscovery $make(CopyWithData data) => MulticastDiscovery();
@override @override
MulticastDiscoveryCopyWith<$R2, MulticastDiscovery, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => MulticastDiscoveryCopyWith<$R2, MulticastDiscovery, $Out2> $chain<$R2, $Out2>(
_MulticastDiscoveryCopyWithImpl($value, $cast, t); Then<$Out2, $R2> t,
) => _MulticastDiscoveryCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
class HttpDiscoveryMapper extends ClassMapperBase<HttpDiscovery> { class HttpDiscoveryMapper extends ClassMapperBase<HttpDiscovery> {
@@ -218,9 +255,7 @@ class HttpDiscoveryMapper extends ClassMapperBase<HttpDiscovery> {
static const Field<HttpDiscovery, String> _f$ip = Field('ip', _$ip); static const Field<HttpDiscovery, String> _f$ip = Field('ip', _$ip);
@override @override
final MappableFields<HttpDiscovery> fields = const { final MappableFields<HttpDiscovery> fields = const {#ip: _f$ip};
#ip: _f$ip,
};
static HttpDiscovery _instantiate(DecodingData data) { static HttpDiscovery _instantiate(DecodingData data) {
return HttpDiscovery(ip: data.dec(_f$ip)); return HttpDiscovery(ip: data.dec(_f$ip));
@@ -240,54 +275,77 @@ class HttpDiscoveryMapper extends ClassMapperBase<HttpDiscovery> {
mixin HttpDiscoveryMappable { mixin HttpDiscoveryMappable {
String serialize() { String serialize() {
return HttpDiscoveryMapper.ensureInitialized().encodeJson<HttpDiscovery>(this as HttpDiscovery); return HttpDiscoveryMapper.ensureInitialized().encodeJson<HttpDiscovery>(
this as HttpDiscovery,
);
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return HttpDiscoveryMapper.ensureInitialized().encodeMap<HttpDiscovery>(this as HttpDiscovery); return HttpDiscoveryMapper.ensureInitialized().encodeMap<HttpDiscovery>(
this as HttpDiscovery,
);
} }
HttpDiscoveryCopyWith<HttpDiscovery, HttpDiscovery, HttpDiscovery> get copyWith => HttpDiscoveryCopyWith<HttpDiscovery, HttpDiscovery, HttpDiscovery>
_HttpDiscoveryCopyWithImpl(this as HttpDiscovery, $identity, $identity); get copyWith => _HttpDiscoveryCopyWithImpl<HttpDiscovery, HttpDiscovery>(
this as HttpDiscovery,
$identity,
$identity,
);
@override @override
String toString() { String toString() {
return HttpDiscoveryMapper.ensureInitialized().stringifyValue(this as HttpDiscovery); return HttpDiscoveryMapper.ensureInitialized().stringifyValue(
this as HttpDiscovery,
);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return HttpDiscoveryMapper.ensureInitialized().equalsValue(this as HttpDiscovery, other); return HttpDiscoveryMapper.ensureInitialized().equalsValue(
this as HttpDiscovery,
other,
);
} }
@override @override
int get hashCode { int get hashCode {
return HttpDiscoveryMapper.ensureInitialized().hashValue(this as HttpDiscovery); return HttpDiscoveryMapper.ensureInitialized().hashValue(
this as HttpDiscovery,
);
} }
} }
extension HttpDiscoveryValueCopy<$R, $Out> on ObjectCopyWith<$R, HttpDiscovery, $Out> { extension HttpDiscoveryValueCopy<$R, $Out>
HttpDiscoveryCopyWith<$R, HttpDiscovery, $Out> get $asHttpDiscovery => $base.as((v, t, t2) => _HttpDiscoveryCopyWithImpl(v, t, t2)); on ObjectCopyWith<$R, HttpDiscovery, $Out> {
HttpDiscoveryCopyWith<$R, HttpDiscovery, $Out> get $asHttpDiscovery =>
$base.as((v, t, t2) => _HttpDiscoveryCopyWithImpl<$R, $Out>(v, t, t2));
} }
abstract class HttpDiscoveryCopyWith<$R, $In extends HttpDiscovery, $Out> implements DiscoveryMethodCopyWith<$R, $In, $Out> { abstract class HttpDiscoveryCopyWith<$R, $In extends HttpDiscovery, $Out>
implements DiscoveryMethodCopyWith<$R, $In, $Out> {
@override @override
$R call({String? ip}); $R call({String? ip});
HttpDiscoveryCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); HttpDiscoveryCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
} }
class _HttpDiscoveryCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, HttpDiscovery, $Out> class _HttpDiscoveryCopyWithImpl<$R, $Out>
extends ClassCopyWithBase<$R, HttpDiscovery, $Out>
implements HttpDiscoveryCopyWith<$R, HttpDiscovery, $Out> { implements HttpDiscoveryCopyWith<$R, HttpDiscovery, $Out> {
_HttpDiscoveryCopyWithImpl(super.value, super.then, super.then2); _HttpDiscoveryCopyWithImpl(super.value, super.then, super.then2);
@override @override
late final ClassMapperBase<HttpDiscovery> $mapper = HttpDiscoveryMapper.ensureInitialized(); late final ClassMapperBase<HttpDiscovery> $mapper =
HttpDiscoveryMapper.ensureInitialized();
@override @override
$R call({String? ip}) => $apply(FieldCopyWithData({if (ip != null) #ip: ip})); $R call({String? ip}) => $apply(FieldCopyWithData({if (ip != null) #ip: ip}));
@override @override
HttpDiscovery $make(CopyWithData data) => HttpDiscovery(ip: data.get(#ip, or: $value.ip)); HttpDiscovery $make(CopyWithData data) =>
HttpDiscovery(ip: data.get(#ip, or: $value.ip));
@override @override
HttpDiscoveryCopyWith<$R2, HttpDiscovery, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _HttpDiscoveryCopyWithImpl($value, $cast, t); HttpDiscoveryCopyWith<$R2, HttpDiscovery, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
) => _HttpDiscoveryCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
class SignalingDiscoveryMapper extends ClassMapperBase<SignalingDiscovery> { class SignalingDiscoveryMapper extends ClassMapperBase<SignalingDiscovery> {
@@ -306,7 +364,10 @@ class SignalingDiscoveryMapper extends ClassMapperBase<SignalingDiscovery> {
final String id = 'SignalingDiscovery'; final String id = 'SignalingDiscovery';
static String _$signalingServer(SignalingDiscovery v) => v.signalingServer; static String _$signalingServer(SignalingDiscovery v) => v.signalingServer;
static const Field<SignalingDiscovery, String> _f$signalingServer = Field('signalingServer', _$signalingServer); static const Field<SignalingDiscovery, String> _f$signalingServer = Field(
'signalingServer',
_$signalingServer,
);
@override @override
final MappableFields<SignalingDiscovery> fields = const { final MappableFields<SignalingDiscovery> fields = const {
@@ -331,56 +392,93 @@ class SignalingDiscoveryMapper extends ClassMapperBase<SignalingDiscovery> {
mixin SignalingDiscoveryMappable { mixin SignalingDiscoveryMappable {
String serialize() { String serialize() {
return SignalingDiscoveryMapper.ensureInitialized().encodeJson<SignalingDiscovery>(this as SignalingDiscovery); return SignalingDiscoveryMapper.ensureInitialized()
.encodeJson<SignalingDiscovery>(this as SignalingDiscovery);
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return SignalingDiscoveryMapper.ensureInitialized().encodeMap<SignalingDiscovery>(this as SignalingDiscovery); return SignalingDiscoveryMapper.ensureInitialized()
.encodeMap<SignalingDiscovery>(this as SignalingDiscovery);
} }
SignalingDiscoveryCopyWith<SignalingDiscovery, SignalingDiscovery, SignalingDiscovery> get copyWith => SignalingDiscoveryCopyWith<
_SignalingDiscoveryCopyWithImpl(this as SignalingDiscovery, $identity, $identity); SignalingDiscovery,
SignalingDiscovery,
SignalingDiscovery
>
get copyWith =>
_SignalingDiscoveryCopyWithImpl<SignalingDiscovery, SignalingDiscovery>(
this as SignalingDiscovery,
$identity,
$identity,
);
@override @override
String toString() { String toString() {
return SignalingDiscoveryMapper.ensureInitialized().stringifyValue(this as SignalingDiscovery); return SignalingDiscoveryMapper.ensureInitialized().stringifyValue(
this as SignalingDiscovery,
);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return SignalingDiscoveryMapper.ensureInitialized().equalsValue(this as SignalingDiscovery, other); return SignalingDiscoveryMapper.ensureInitialized().equalsValue(
this as SignalingDiscovery,
other,
);
} }
@override @override
int get hashCode { int get hashCode {
return SignalingDiscoveryMapper.ensureInitialized().hashValue(this as SignalingDiscovery); return SignalingDiscoveryMapper.ensureInitialized().hashValue(
this as SignalingDiscovery,
);
} }
} }
extension SignalingDiscoveryValueCopy<$R, $Out> on ObjectCopyWith<$R, SignalingDiscovery, $Out> { extension SignalingDiscoveryValueCopy<$R, $Out>
SignalingDiscoveryCopyWith<$R, SignalingDiscovery, $Out> get $asSignalingDiscovery => on ObjectCopyWith<$R, SignalingDiscovery, $Out> {
$base.as((v, t, t2) => _SignalingDiscoveryCopyWithImpl(v, t, t2)); SignalingDiscoveryCopyWith<$R, SignalingDiscovery, $Out>
get $asSignalingDiscovery => $base.as(
(v, t, t2) => _SignalingDiscoveryCopyWithImpl<$R, $Out>(v, t, t2),
);
} }
abstract class SignalingDiscoveryCopyWith<$R, $In extends SignalingDiscovery, $Out> implements DiscoveryMethodCopyWith<$R, $In, $Out> { abstract class SignalingDiscoveryCopyWith<
$R,
$In extends SignalingDiscovery,
$Out
>
implements DiscoveryMethodCopyWith<$R, $In, $Out> {
@override @override
$R call({String? signalingServer}); $R call({String? signalingServer});
SignalingDiscoveryCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); SignalingDiscoveryCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
);
} }
class _SignalingDiscoveryCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SignalingDiscovery, $Out> class _SignalingDiscoveryCopyWithImpl<$R, $Out>
extends ClassCopyWithBase<$R, SignalingDiscovery, $Out>
implements SignalingDiscoveryCopyWith<$R, SignalingDiscovery, $Out> { implements SignalingDiscoveryCopyWith<$R, SignalingDiscovery, $Out> {
_SignalingDiscoveryCopyWithImpl(super.value, super.then, super.then2); _SignalingDiscoveryCopyWithImpl(super.value, super.then, super.then2);
@override @override
late final ClassMapperBase<SignalingDiscovery> $mapper = SignalingDiscoveryMapper.ensureInitialized(); late final ClassMapperBase<SignalingDiscovery> $mapper =
SignalingDiscoveryMapper.ensureInitialized();
@override @override
$R call({String? signalingServer}) => $apply(FieldCopyWithData({if (signalingServer != null) #signalingServer: signalingServer})); $R call({String? signalingServer}) => $apply(
FieldCopyWithData({
if (signalingServer != null) #signalingServer: signalingServer,
}),
);
@override @override
SignalingDiscovery $make(CopyWithData data) => SignalingDiscovery(signalingServer: data.get(#signalingServer, or: $value.signalingServer)); SignalingDiscovery $make(CopyWithData data) => SignalingDiscovery(
signalingServer: data.get(#signalingServer, or: $value.signalingServer),
);
@override @override
SignalingDiscoveryCopyWith<$R2, SignalingDiscovery, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => SignalingDiscoveryCopyWith<$R2, SignalingDiscovery, $Out2> $chain<$R2, $Out2>(
_SignalingDiscoveryCopyWithImpl($value, $cast, t); Then<$Out2, $R2> t,
) => _SignalingDiscoveryCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
class DeviceMapper extends ClassMapperBase<Device> { class DeviceMapper extends ClassMapperBase<Device> {
@@ -400,7 +498,10 @@ class DeviceMapper extends ClassMapperBase<Device> {
final String id = 'Device'; final String id = 'Device';
static String? _$signalingId(Device v) => v.signalingId; static String? _$signalingId(Device v) => v.signalingId;
static const Field<Device, String> _f$signalingId = Field('signalingId', _$signalingId); static const Field<Device, String> _f$signalingId = Field(
'signalingId',
_$signalingId,
);
static String? _$ip(Device v) => v.ip; static String? _$ip(Device v) => v.ip;
static const Field<Device, String> _f$ip = Field('ip', _$ip); static const Field<Device, String> _f$ip = Field('ip', _$ip);
static String _$version(Device v) => v.version; static String _$version(Device v) => v.version;
@@ -410,17 +511,30 @@ class DeviceMapper extends ClassMapperBase<Device> {
static bool _$https(Device v) => v.https; static bool _$https(Device v) => v.https;
static const Field<Device, bool> _f$https = Field('https', _$https); static const Field<Device, bool> _f$https = Field('https', _$https);
static String _$fingerprint(Device v) => v.fingerprint; static String _$fingerprint(Device v) => v.fingerprint;
static const Field<Device, String> _f$fingerprint = Field('fingerprint', _$fingerprint); static const Field<Device, String> _f$fingerprint = Field(
'fingerprint',
_$fingerprint,
);
static String _$alias(Device v) => v.alias; static String _$alias(Device v) => v.alias;
static const Field<Device, String> _f$alias = Field('alias', _$alias); static const Field<Device, String> _f$alias = Field('alias', _$alias);
static String? _$deviceModel(Device v) => v.deviceModel; static String? _$deviceModel(Device v) => v.deviceModel;
static const Field<Device, String> _f$deviceModel = Field('deviceModel', _$deviceModel); static const Field<Device, String> _f$deviceModel = Field(
'deviceModel',
_$deviceModel,
);
static DeviceType _$deviceType(Device v) => v.deviceType; static DeviceType _$deviceType(Device v) => v.deviceType;
static const Field<Device, DeviceType> _f$deviceType = Field('deviceType', _$deviceType); static const Field<Device, DeviceType> _f$deviceType = Field(
'deviceType',
_$deviceType,
);
static bool _$download(Device v) => v.download; static bool _$download(Device v) => v.download;
static const Field<Device, bool> _f$download = Field('download', _$download); static const Field<Device, bool> _f$download = Field('download', _$download);
static Set<DiscoveryMethod> _$discoveryMethods(Device v) => v.discoveryMethods; static Set<DiscoveryMethod> _$discoveryMethods(Device v) =>
static const Field<Device, Set<DiscoveryMethod>> _f$discoveryMethods = Field('discoveryMethods', _$discoveryMethods); v.discoveryMethods;
static const Field<Device, Set<DiscoveryMethod>> _f$discoveryMethods = Field(
'discoveryMethods',
_$discoveryMethods,
);
@override @override
final MappableFields<Device> fields = const { final MappableFields<Device> fields = const {
@@ -474,7 +588,8 @@ mixin DeviceMappable {
return DeviceMapper.ensureInitialized().encodeMap<Device>(this as Device); return DeviceMapper.ensureInitialized().encodeMap<Device>(this as Device);
} }
DeviceCopyWith<Device, Device, Device> get copyWith => _DeviceCopyWithImpl(this as Device, $identity, $identity); DeviceCopyWith<Device, Device, Device> get copyWith =>
_DeviceCopyWithImpl<Device, Device>(this as Device, $identity, $identity);
@override @override
String toString() { String toString() {
return DeviceMapper.ensureInitialized().stringifyValue(this as Device); return DeviceMapper.ensureInitialized().stringifyValue(this as Device);
@@ -492,10 +607,12 @@ mixin DeviceMappable {
} }
extension DeviceValueCopy<$R, $Out> on ObjectCopyWith<$R, Device, $Out> { extension DeviceValueCopy<$R, $Out> on ObjectCopyWith<$R, Device, $Out> {
DeviceCopyWith<$R, Device, $Out> get $asDevice => $base.as((v, t, t2) => _DeviceCopyWithImpl(v, t, t2)); DeviceCopyWith<$R, Device, $Out> get $asDevice =>
$base.as((v, t, t2) => _DeviceCopyWithImpl<$R, $Out>(v, t, t2));
} }
abstract class DeviceCopyWith<$R, $In extends Device, $Out> implements ClassCopyWith<$R, $In, $Out> { abstract class DeviceCopyWith<$R, $In extends Device, $Out>
implements ClassCopyWith<$R, $In, $Out> {
$R call({ $R call({
String? signalingId, String? signalingId,
String? ip, String? ip,
@@ -512,7 +629,8 @@ abstract class DeviceCopyWith<$R, $In extends Device, $Out> implements ClassCopy
DeviceCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); DeviceCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
} }
class _DeviceCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Device, $Out> implements DeviceCopyWith<$R, Device, $Out> { class _DeviceCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Device, $Out>
implements DeviceCopyWith<$R, Device, $Out> {
_DeviceCopyWithImpl(super.value, super.then, super.then2); _DeviceCopyWithImpl(super.value, super.then, super.then2);
@override @override
@@ -561,5 +679,7 @@ class _DeviceCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Device, $Out>
); );
@override @override
DeviceCopyWith<$R2, Device, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _DeviceCopyWithImpl($value, $cast, t); DeviceCopyWith<$R2, Device, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) =>
_DeviceCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
+58 -16
View File
@@ -1,6 +1,8 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// dart format off
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: invalid_use_of_protected_member
// ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member // ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member
// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter // ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter
@@ -21,9 +23,17 @@ class FileMetadataMapper extends ClassMapperBase<FileMetadata> {
final String id = 'FileMetadata'; final String id = 'FileMetadata';
static DateTime? _$lastModified(FileMetadata v) => v.lastModified; static DateTime? _$lastModified(FileMetadata v) => v.lastModified;
static const Field<FileMetadata, DateTime> _f$lastModified = Field('lastModified', _$lastModified, key: 'modified'); static const Field<FileMetadata, DateTime> _f$lastModified = Field(
'lastModified',
_$lastModified,
key: r'modified',
);
static DateTime? _$lastAccessed(FileMetadata v) => v.lastAccessed; static DateTime? _$lastAccessed(FileMetadata v) => v.lastAccessed;
static const Field<FileMetadata, DateTime> _f$lastAccessed = Field('lastAccessed', _$lastAccessed, key: 'accessed'); static const Field<FileMetadata, DateTime> _f$lastAccessed = Field(
'lastAccessed',
_$lastAccessed,
key: r'accessed',
);
@override @override
final MappableFields<FileMetadata> fields = const { final MappableFields<FileMetadata> fields = const {
@@ -34,7 +44,10 @@ class FileMetadataMapper extends ClassMapperBase<FileMetadata> {
final bool ignoreNull = true; final bool ignoreNull = true;
static FileMetadata _instantiate(DecodingData data) { static FileMetadata _instantiate(DecodingData data) {
return FileMetadata(lastModified: data.dec(_f$lastModified), lastAccessed: data.dec(_f$lastAccessed)); return FileMetadata(
lastModified: data.dec(_f$lastModified),
lastAccessed: data.dec(_f$lastAccessed),
);
} }
@override @override
@@ -51,48 +64,74 @@ class FileMetadataMapper extends ClassMapperBase<FileMetadata> {
mixin FileMetadataMappable { mixin FileMetadataMappable {
String serialize() { String serialize() {
return FileMetadataMapper.ensureInitialized().encodeJson<FileMetadata>(this as FileMetadata); return FileMetadataMapper.ensureInitialized().encodeJson<FileMetadata>(
this as FileMetadata,
);
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return FileMetadataMapper.ensureInitialized().encodeMap<FileMetadata>(this as FileMetadata); return FileMetadataMapper.ensureInitialized().encodeMap<FileMetadata>(
this as FileMetadata,
);
} }
FileMetadataCopyWith<FileMetadata, FileMetadata, FileMetadata> get copyWith => FileMetadataCopyWith<FileMetadata, FileMetadata, FileMetadata> get copyWith =>
_FileMetadataCopyWithImpl(this as FileMetadata, $identity, $identity); _FileMetadataCopyWithImpl<FileMetadata, FileMetadata>(
this as FileMetadata,
$identity,
$identity,
);
@override @override
String toString() { String toString() {
return FileMetadataMapper.ensureInitialized().stringifyValue(this as FileMetadata); return FileMetadataMapper.ensureInitialized().stringifyValue(
this as FileMetadata,
);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return FileMetadataMapper.ensureInitialized().equalsValue(this as FileMetadata, other); return FileMetadataMapper.ensureInitialized().equalsValue(
this as FileMetadata,
other,
);
} }
@override @override
int get hashCode { int get hashCode {
return FileMetadataMapper.ensureInitialized().hashValue(this as FileMetadata); return FileMetadataMapper.ensureInitialized().hashValue(
this as FileMetadata,
);
} }
} }
extension FileMetadataValueCopy<$R, $Out> on ObjectCopyWith<$R, FileMetadata, $Out> { extension FileMetadataValueCopy<$R, $Out>
FileMetadataCopyWith<$R, FileMetadata, $Out> get $asFileMetadata => $base.as((v, t, t2) => _FileMetadataCopyWithImpl(v, t, t2)); on ObjectCopyWith<$R, FileMetadata, $Out> {
FileMetadataCopyWith<$R, FileMetadata, $Out> get $asFileMetadata =>
$base.as((v, t, t2) => _FileMetadataCopyWithImpl<$R, $Out>(v, t, t2));
} }
abstract class FileMetadataCopyWith<$R, $In extends FileMetadata, $Out> implements ClassCopyWith<$R, $In, $Out> { abstract class FileMetadataCopyWith<$R, $In extends FileMetadata, $Out>
implements ClassCopyWith<$R, $In, $Out> {
$R call({DateTime? lastModified, DateTime? lastAccessed}); $R call({DateTime? lastModified, DateTime? lastAccessed});
FileMetadataCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); FileMetadataCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
} }
class _FileMetadataCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, FileMetadata, $Out> implements FileMetadataCopyWith<$R, FileMetadata, $Out> { class _FileMetadataCopyWithImpl<$R, $Out>
extends ClassCopyWithBase<$R, FileMetadata, $Out>
implements FileMetadataCopyWith<$R, FileMetadata, $Out> {
_FileMetadataCopyWithImpl(super.value, super.then, super.then2); _FileMetadataCopyWithImpl(super.value, super.then, super.then2);
@override @override
late final ClassMapperBase<FileMetadata> $mapper = FileMetadataMapper.ensureInitialized(); late final ClassMapperBase<FileMetadata> $mapper =
FileMetadataMapper.ensureInitialized();
@override @override
$R call({Object? lastModified = $none, Object? lastAccessed = $none}) => $R call({Object? lastModified = $none, Object? lastAccessed = $none}) =>
$apply(FieldCopyWithData({if (lastModified != $none) #lastModified: lastModified, if (lastAccessed != $none) #lastAccessed: lastAccessed})); $apply(
FieldCopyWithData({
if (lastModified != $none) #lastModified: lastModified,
if (lastAccessed != $none) #lastAccessed: lastAccessed,
}),
);
@override @override
FileMetadata $make(CopyWithData data) => FileMetadata( FileMetadata $make(CopyWithData data) => FileMetadata(
lastModified: data.get(#lastModified, or: $value.lastModified), lastModified: data.get(#lastModified, or: $value.lastModified),
@@ -100,5 +139,8 @@ class _FileMetadataCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, FileMeta
); );
@override @override
FileMetadataCopyWith<$R2, FileMetadata, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _FileMetadataCopyWithImpl($value, $cast, t); FileMetadataCopyWith<$R2, FileMetadata, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
) => _FileMetadataCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
+50 -13
View File
@@ -1,6 +1,8 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// dart format off
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: invalid_use_of_protected_member
// ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member // ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member
// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter // ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter
@@ -26,11 +28,20 @@ class InfoDtoMapper extends ClassMapperBase<InfoDto> {
static String? _$version(InfoDto v) => v.version; static String? _$version(InfoDto v) => v.version;
static const Field<InfoDto, String> _f$version = Field('version', _$version); static const Field<InfoDto, String> _f$version = Field('version', _$version);
static String? _$deviceModel(InfoDto v) => v.deviceModel; static String? _$deviceModel(InfoDto v) => v.deviceModel;
static const Field<InfoDto, String> _f$deviceModel = Field('deviceModel', _$deviceModel); static const Field<InfoDto, String> _f$deviceModel = Field(
'deviceModel',
_$deviceModel,
);
static DeviceType? _$deviceType(InfoDto v) => v.deviceType; static DeviceType? _$deviceType(InfoDto v) => v.deviceType;
static const Field<InfoDto, DeviceType> _f$deviceType = Field('deviceType', _$deviceType); static const Field<InfoDto, DeviceType> _f$deviceType = Field(
'deviceType',
_$deviceType,
);
static String? _$fingerprint(InfoDto v) => v.fingerprint; static String? _$fingerprint(InfoDto v) => v.fingerprint;
static const Field<InfoDto, String> _f$fingerprint = Field('fingerprint', _$fingerprint); static const Field<InfoDto, String> _f$fingerprint = Field(
'fingerprint',
_$fingerprint,
);
static bool? _$download(InfoDto v) => v.download; static bool? _$download(InfoDto v) => v.download;
static const Field<InfoDto, bool> _f$download = Field('download', _$download); static const Field<InfoDto, bool> _f$download = Field('download', _$download);
@@ -69,14 +80,23 @@ class InfoDtoMapper extends ClassMapperBase<InfoDto> {
mixin InfoDtoMappable { mixin InfoDtoMappable {
String serialize() { String serialize() {
return InfoDtoMapper.ensureInitialized().encodeJson<InfoDto>(this as InfoDto); return InfoDtoMapper.ensureInitialized().encodeJson<InfoDto>(
this as InfoDto,
);
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return InfoDtoMapper.ensureInitialized().encodeMap<InfoDto>(this as InfoDto); return InfoDtoMapper.ensureInitialized().encodeMap<InfoDto>(
this as InfoDto,
);
} }
InfoDtoCopyWith<InfoDto, InfoDto, InfoDto> get copyWith => _InfoDtoCopyWithImpl(this as InfoDto, $identity, $identity); InfoDtoCopyWith<InfoDto, InfoDto, InfoDto> get copyWith =>
_InfoDtoCopyWithImpl<InfoDto, InfoDto>(
this as InfoDto,
$identity,
$identity,
);
@override @override
String toString() { String toString() {
return InfoDtoMapper.ensureInitialized().stringifyValue(this as InfoDto); return InfoDtoMapper.ensureInitialized().stringifyValue(this as InfoDto);
@@ -84,7 +104,10 @@ mixin InfoDtoMappable {
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return InfoDtoMapper.ensureInitialized().equalsValue(this as InfoDto, other); return InfoDtoMapper.ensureInitialized().equalsValue(
this as InfoDto,
other,
);
} }
@override @override
@@ -94,19 +117,31 @@ mixin InfoDtoMappable {
} }
extension InfoDtoValueCopy<$R, $Out> on ObjectCopyWith<$R, InfoDto, $Out> { extension InfoDtoValueCopy<$R, $Out> on ObjectCopyWith<$R, InfoDto, $Out> {
InfoDtoCopyWith<$R, InfoDto, $Out> get $asInfoDto => $base.as((v, t, t2) => _InfoDtoCopyWithImpl(v, t, t2)); InfoDtoCopyWith<$R, InfoDto, $Out> get $asInfoDto =>
$base.as((v, t, t2) => _InfoDtoCopyWithImpl<$R, $Out>(v, t, t2));
} }
abstract class InfoDtoCopyWith<$R, $In extends InfoDto, $Out> implements ClassCopyWith<$R, $In, $Out> { abstract class InfoDtoCopyWith<$R, $In extends InfoDto, $Out>
$R call({String? alias, String? version, String? deviceModel, DeviceType? deviceType, String? fingerprint, bool? download}); implements ClassCopyWith<$R, $In, $Out> {
$R call({
String? alias,
String? version,
String? deviceModel,
DeviceType? deviceType,
String? fingerprint,
bool? download,
});
InfoDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); InfoDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
} }
class _InfoDtoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, InfoDto, $Out> implements InfoDtoCopyWith<$R, InfoDto, $Out> { class _InfoDtoCopyWithImpl<$R, $Out>
extends ClassCopyWithBase<$R, InfoDto, $Out>
implements InfoDtoCopyWith<$R, InfoDto, $Out> {
_InfoDtoCopyWithImpl(super.value, super.then, super.then2); _InfoDtoCopyWithImpl(super.value, super.then, super.then2);
@override @override
late final ClassMapperBase<InfoDto> $mapper = InfoDtoMapper.ensureInitialized(); late final ClassMapperBase<InfoDto> $mapper =
InfoDtoMapper.ensureInitialized();
@override @override
$R call({ $R call({
String? alias, String? alias,
@@ -136,5 +171,7 @@ class _InfoDtoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, InfoDto, $Out
); );
@override @override
InfoDtoCopyWith<$R2, InfoDto, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _InfoDtoCopyWithImpl($value, $cast, t); InfoDtoCopyWith<$R2, InfoDto, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) =>
_InfoDtoCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
@@ -1,6 +1,8 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// dart format off
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: invalid_use_of_protected_member
// ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member // ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member
// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter // ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter
@@ -23,21 +25,42 @@ class InfoRegisterDtoMapper extends ClassMapperBase<InfoRegisterDto> {
final String id = 'InfoRegisterDto'; final String id = 'InfoRegisterDto';
static String _$alias(InfoRegisterDto v) => v.alias; static String _$alias(InfoRegisterDto v) => v.alias;
static const Field<InfoRegisterDto, String> _f$alias = Field('alias', _$alias); static const Field<InfoRegisterDto, String> _f$alias = Field(
'alias',
_$alias,
);
static String? _$version(InfoRegisterDto v) => v.version; static String? _$version(InfoRegisterDto v) => v.version;
static const Field<InfoRegisterDto, String> _f$version = Field('version', _$version); static const Field<InfoRegisterDto, String> _f$version = Field(
'version',
_$version,
);
static String? _$deviceModel(InfoRegisterDto v) => v.deviceModel; static String? _$deviceModel(InfoRegisterDto v) => v.deviceModel;
static const Field<InfoRegisterDto, String> _f$deviceModel = Field('deviceModel', _$deviceModel); static const Field<InfoRegisterDto, String> _f$deviceModel = Field(
'deviceModel',
_$deviceModel,
);
static DeviceType? _$deviceType(InfoRegisterDto v) => v.deviceType; static DeviceType? _$deviceType(InfoRegisterDto v) => v.deviceType;
static const Field<InfoRegisterDto, DeviceType> _f$deviceType = Field('deviceType', _$deviceType); static const Field<InfoRegisterDto, DeviceType> _f$deviceType = Field(
'deviceType',
_$deviceType,
);
static String? _$fingerprint(InfoRegisterDto v) => v.fingerprint; static String? _$fingerprint(InfoRegisterDto v) => v.fingerprint;
static const Field<InfoRegisterDto, String> _f$fingerprint = Field('fingerprint', _$fingerprint); static const Field<InfoRegisterDto, String> _f$fingerprint = Field(
'fingerprint',
_$fingerprint,
);
static int? _$port(InfoRegisterDto v) => v.port; static int? _$port(InfoRegisterDto v) => v.port;
static const Field<InfoRegisterDto, int> _f$port = Field('port', _$port); static const Field<InfoRegisterDto, int> _f$port = Field('port', _$port);
static ProtocolType? _$protocol(InfoRegisterDto v) => v.protocol; static ProtocolType? _$protocol(InfoRegisterDto v) => v.protocol;
static const Field<InfoRegisterDto, ProtocolType> _f$protocol = Field('protocol', _$protocol); static const Field<InfoRegisterDto, ProtocolType> _f$protocol = Field(
'protocol',
_$protocol,
);
static bool? _$download(InfoRegisterDto v) => v.download; static bool? _$download(InfoRegisterDto v) => v.download;
static const Field<InfoRegisterDto, bool> _f$download = Field('download', _$download); static const Field<InfoRegisterDto, bool> _f$download = Field(
'download',
_$download,
);
@override @override
final MappableFields<InfoRegisterDto> fields = const { final MappableFields<InfoRegisterDto> fields = const {
@@ -78,36 +101,54 @@ class InfoRegisterDtoMapper extends ClassMapperBase<InfoRegisterDto> {
mixin InfoRegisterDtoMappable { mixin InfoRegisterDtoMappable {
String serialize() { String serialize() {
return InfoRegisterDtoMapper.ensureInitialized().encodeJson<InfoRegisterDto>(this as InfoRegisterDto); return InfoRegisterDtoMapper.ensureInitialized()
.encodeJson<InfoRegisterDto>(this as InfoRegisterDto);
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return InfoRegisterDtoMapper.ensureInitialized().encodeMap<InfoRegisterDto>(this as InfoRegisterDto); return InfoRegisterDtoMapper.ensureInitialized().encodeMap<InfoRegisterDto>(
this as InfoRegisterDto,
);
} }
InfoRegisterDtoCopyWith<InfoRegisterDto, InfoRegisterDto, InfoRegisterDto> get copyWith => InfoRegisterDtoCopyWith<InfoRegisterDto, InfoRegisterDto, InfoRegisterDto>
_InfoRegisterDtoCopyWithImpl(this as InfoRegisterDto, $identity, $identity); get copyWith =>
_InfoRegisterDtoCopyWithImpl<InfoRegisterDto, InfoRegisterDto>(
this as InfoRegisterDto,
$identity,
$identity,
);
@override @override
String toString() { String toString() {
return InfoRegisterDtoMapper.ensureInitialized().stringifyValue(this as InfoRegisterDto); return InfoRegisterDtoMapper.ensureInitialized().stringifyValue(
this as InfoRegisterDto,
);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return InfoRegisterDtoMapper.ensureInitialized().equalsValue(this as InfoRegisterDto, other); return InfoRegisterDtoMapper.ensureInitialized().equalsValue(
this as InfoRegisterDto,
other,
);
} }
@override @override
int get hashCode { int get hashCode {
return InfoRegisterDtoMapper.ensureInitialized().hashValue(this as InfoRegisterDto); return InfoRegisterDtoMapper.ensureInitialized().hashValue(
this as InfoRegisterDto,
);
} }
} }
extension InfoRegisterDtoValueCopy<$R, $Out> on ObjectCopyWith<$R, InfoRegisterDto, $Out> { extension InfoRegisterDtoValueCopy<$R, $Out>
InfoRegisterDtoCopyWith<$R, InfoRegisterDto, $Out> get $asInfoRegisterDto => $base.as((v, t, t2) => _InfoRegisterDtoCopyWithImpl(v, t, t2)); on ObjectCopyWith<$R, InfoRegisterDto, $Out> {
InfoRegisterDtoCopyWith<$R, InfoRegisterDto, $Out> get $asInfoRegisterDto =>
$base.as((v, t, t2) => _InfoRegisterDtoCopyWithImpl<$R, $Out>(v, t, t2));
} }
abstract class InfoRegisterDtoCopyWith<$R, $In extends InfoRegisterDto, $Out> implements ClassCopyWith<$R, $In, $Out> { abstract class InfoRegisterDtoCopyWith<$R, $In extends InfoRegisterDto, $Out>
implements ClassCopyWith<$R, $In, $Out> {
$R call({ $R call({
String? alias, String? alias,
String? version, String? version,
@@ -118,15 +159,19 @@ abstract class InfoRegisterDtoCopyWith<$R, $In extends InfoRegisterDto, $Out> im
ProtocolType? protocol, ProtocolType? protocol,
bool? download, bool? download,
}); });
InfoRegisterDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); InfoRegisterDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
);
} }
class _InfoRegisterDtoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, InfoRegisterDto, $Out> class _InfoRegisterDtoCopyWithImpl<$R, $Out>
extends ClassCopyWithBase<$R, InfoRegisterDto, $Out>
implements InfoRegisterDtoCopyWith<$R, InfoRegisterDto, $Out> { implements InfoRegisterDtoCopyWith<$R, InfoRegisterDto, $Out> {
_InfoRegisterDtoCopyWithImpl(super.value, super.then, super.then2); _InfoRegisterDtoCopyWithImpl(super.value, super.then, super.then2);
@override @override
late final ClassMapperBase<InfoRegisterDto> $mapper = InfoRegisterDtoMapper.ensureInitialized(); late final ClassMapperBase<InfoRegisterDto> $mapper =
InfoRegisterDtoMapper.ensureInitialized();
@override @override
$R call({ $R call({
String? alias, String? alias,
@@ -162,5 +207,8 @@ class _InfoRegisterDtoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, InfoR
); );
@override @override
InfoRegisterDtoCopyWith<$R2, InfoRegisterDto, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _InfoRegisterDtoCopyWithImpl($value, $cast, t); InfoRegisterDtoCopyWith<$R2, InfoRegisterDto, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
) => _InfoRegisterDtoCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
@@ -1,6 +1,8 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// dart format off
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: invalid_use_of_protected_member
// ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member // ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member
// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter // ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter
@@ -25,9 +27,9 @@ class ProtocolTypeMapper extends EnumMapper<ProtocolType> {
@override @override
ProtocolType decode(dynamic value) { ProtocolType decode(dynamic value) {
switch (value) { switch (value) {
case 'http': case r'http':
return ProtocolType.http; return ProtocolType.http;
case 'https': case r'https':
return ProtocolType.https; return ProtocolType.https;
default: default:
return ProtocolType.values[1]; return ProtocolType.values[1];
@@ -38,9 +40,9 @@ class ProtocolTypeMapper extends EnumMapper<ProtocolType> {
dynamic encode(ProtocolType self) { dynamic encode(ProtocolType self) {
switch (self) { switch (self) {
case ProtocolType.http: case ProtocolType.http:
return 'http'; return r'http';
case ProtocolType.https: case ProtocolType.https:
return 'https'; return r'https';
} }
} }
} }
@@ -71,23 +73,47 @@ class MulticastDtoMapper extends ClassMapperBase<MulticastDto> {
static String _$alias(MulticastDto v) => v.alias; static String _$alias(MulticastDto v) => v.alias;
static const Field<MulticastDto, String> _f$alias = Field('alias', _$alias); static const Field<MulticastDto, String> _f$alias = Field('alias', _$alias);
static String? _$version(MulticastDto v) => v.version; static String? _$version(MulticastDto v) => v.version;
static const Field<MulticastDto, String> _f$version = Field('version', _$version); static const Field<MulticastDto, String> _f$version = Field(
'version',
_$version,
);
static String? _$deviceModel(MulticastDto v) => v.deviceModel; static String? _$deviceModel(MulticastDto v) => v.deviceModel;
static const Field<MulticastDto, String> _f$deviceModel = Field('deviceModel', _$deviceModel); static const Field<MulticastDto, String> _f$deviceModel = Field(
'deviceModel',
_$deviceModel,
);
static DeviceType? _$deviceType(MulticastDto v) => v.deviceType; static DeviceType? _$deviceType(MulticastDto v) => v.deviceType;
static const Field<MulticastDto, DeviceType> _f$deviceType = Field('deviceType', _$deviceType); static const Field<MulticastDto, DeviceType> _f$deviceType = Field(
'deviceType',
_$deviceType,
);
static String _$fingerprint(MulticastDto v) => v.fingerprint; static String _$fingerprint(MulticastDto v) => v.fingerprint;
static const Field<MulticastDto, String> _f$fingerprint = Field('fingerprint', _$fingerprint); static const Field<MulticastDto, String> _f$fingerprint = Field(
'fingerprint',
_$fingerprint,
);
static int? _$port(MulticastDto v) => v.port; static int? _$port(MulticastDto v) => v.port;
static const Field<MulticastDto, int> _f$port = Field('port', _$port); static const Field<MulticastDto, int> _f$port = Field('port', _$port);
static ProtocolType? _$protocol(MulticastDto v) => v.protocol; static ProtocolType? _$protocol(MulticastDto v) => v.protocol;
static const Field<MulticastDto, ProtocolType> _f$protocol = Field('protocol', _$protocol); static const Field<MulticastDto, ProtocolType> _f$protocol = Field(
'protocol',
_$protocol,
);
static bool? _$download(MulticastDto v) => v.download; static bool? _$download(MulticastDto v) => v.download;
static const Field<MulticastDto, bool> _f$download = Field('download', _$download); static const Field<MulticastDto, bool> _f$download = Field(
'download',
_$download,
);
static bool? _$announcement(MulticastDto v) => v.announcement; static bool? _$announcement(MulticastDto v) => v.announcement;
static const Field<MulticastDto, bool> _f$announcement = Field('announcement', _$announcement); static const Field<MulticastDto, bool> _f$announcement = Field(
'announcement',
_$announcement,
);
static bool? _$announce(MulticastDto v) => v.announce; static bool? _$announce(MulticastDto v) => v.announce;
static const Field<MulticastDto, bool> _f$announce = Field('announce', _$announce); static const Field<MulticastDto, bool> _f$announce = Field(
'announce',
_$announce,
);
@override @override
final MappableFields<MulticastDto> fields = const { final MappableFields<MulticastDto> fields = const {
@@ -132,36 +158,54 @@ class MulticastDtoMapper extends ClassMapperBase<MulticastDto> {
mixin MulticastDtoMappable { mixin MulticastDtoMappable {
String serialize() { String serialize() {
return MulticastDtoMapper.ensureInitialized().encodeJson<MulticastDto>(this as MulticastDto); return MulticastDtoMapper.ensureInitialized().encodeJson<MulticastDto>(
this as MulticastDto,
);
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return MulticastDtoMapper.ensureInitialized().encodeMap<MulticastDto>(this as MulticastDto); return MulticastDtoMapper.ensureInitialized().encodeMap<MulticastDto>(
this as MulticastDto,
);
} }
MulticastDtoCopyWith<MulticastDto, MulticastDto, MulticastDto> get copyWith => MulticastDtoCopyWith<MulticastDto, MulticastDto, MulticastDto> get copyWith =>
_MulticastDtoCopyWithImpl(this as MulticastDto, $identity, $identity); _MulticastDtoCopyWithImpl<MulticastDto, MulticastDto>(
this as MulticastDto,
$identity,
$identity,
);
@override @override
String toString() { String toString() {
return MulticastDtoMapper.ensureInitialized().stringifyValue(this as MulticastDto); return MulticastDtoMapper.ensureInitialized().stringifyValue(
this as MulticastDto,
);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return MulticastDtoMapper.ensureInitialized().equalsValue(this as MulticastDto, other); return MulticastDtoMapper.ensureInitialized().equalsValue(
this as MulticastDto,
other,
);
} }
@override @override
int get hashCode { int get hashCode {
return MulticastDtoMapper.ensureInitialized().hashValue(this as MulticastDto); return MulticastDtoMapper.ensureInitialized().hashValue(
this as MulticastDto,
);
} }
} }
extension MulticastDtoValueCopy<$R, $Out> on ObjectCopyWith<$R, MulticastDto, $Out> { extension MulticastDtoValueCopy<$R, $Out>
MulticastDtoCopyWith<$R, MulticastDto, $Out> get $asMulticastDto => $base.as((v, t, t2) => _MulticastDtoCopyWithImpl(v, t, t2)); on ObjectCopyWith<$R, MulticastDto, $Out> {
MulticastDtoCopyWith<$R, MulticastDto, $Out> get $asMulticastDto =>
$base.as((v, t, t2) => _MulticastDtoCopyWithImpl<$R, $Out>(v, t, t2));
} }
abstract class MulticastDtoCopyWith<$R, $In extends MulticastDto, $Out> implements ClassCopyWith<$R, $In, $Out> { abstract class MulticastDtoCopyWith<$R, $In extends MulticastDto, $Out>
implements ClassCopyWith<$R, $In, $Out> {
$R call({ $R call({
String? alias, String? alias,
String? version, String? version,
@@ -177,11 +221,14 @@ abstract class MulticastDtoCopyWith<$R, $In extends MulticastDto, $Out> implemen
MulticastDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); MulticastDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
} }
class _MulticastDtoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, MulticastDto, $Out> implements MulticastDtoCopyWith<$R, MulticastDto, $Out> { class _MulticastDtoCopyWithImpl<$R, $Out>
extends ClassCopyWithBase<$R, MulticastDto, $Out>
implements MulticastDtoCopyWith<$R, MulticastDto, $Out> {
_MulticastDtoCopyWithImpl(super.value, super.then, super.then2); _MulticastDtoCopyWithImpl(super.value, super.then, super.then2);
@override @override
late final ClassMapperBase<MulticastDto> $mapper = MulticastDtoMapper.ensureInitialized(); late final ClassMapperBase<MulticastDto> $mapper =
MulticastDtoMapper.ensureInitialized();
@override @override
$R call({ $R call({
String? alias, String? alias,
@@ -223,5 +270,8 @@ class _MulticastDtoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Multicas
); );
@override @override
MulticastDtoCopyWith<$R2, MulticastDto, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _MulticastDtoCopyWithImpl($value, $cast, t); MulticastDtoCopyWith<$R2, MulticastDto, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
) => _MulticastDtoCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
@@ -1,18 +1,23 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// dart format off
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: invalid_use_of_protected_member
// ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member // ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member
// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter // ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter
part of 'prepare_upload_request_dto.dart'; part of 'prepare_upload_request_dto.dart';
class PrepareUploadRequestDtoMapper extends ClassMapperBase<PrepareUploadRequestDto> { class PrepareUploadRequestDtoMapper
extends ClassMapperBase<PrepareUploadRequestDto> {
PrepareUploadRequestDtoMapper._(); PrepareUploadRequestDtoMapper._();
static PrepareUploadRequestDtoMapper? _instance; static PrepareUploadRequestDtoMapper? _instance;
static PrepareUploadRequestDtoMapper ensureInitialized() { static PrepareUploadRequestDtoMapper ensureInitialized() {
if (_instance == null) { if (_instance == null) {
MapperContainer.globals.use(_instance = PrepareUploadRequestDtoMapper._()); MapperContainer.globals.use(
_instance = PrepareUploadRequestDtoMapper._(),
);
InfoRegisterDtoMapper.ensureInitialized(); InfoRegisterDtoMapper.ensureInitialized();
} }
return _instance!; return _instance!;
@@ -22,9 +27,13 @@ class PrepareUploadRequestDtoMapper extends ClassMapperBase<PrepareUploadRequest
final String id = 'PrepareUploadRequestDto'; final String id = 'PrepareUploadRequestDto';
static InfoRegisterDto _$info(PrepareUploadRequestDto v) => v.info; static InfoRegisterDto _$info(PrepareUploadRequestDto v) => v.info;
static const Field<PrepareUploadRequestDto, InfoRegisterDto> _f$info = Field('info', _$info); static const Field<PrepareUploadRequestDto, InfoRegisterDto> _f$info = Field(
'info',
_$info,
);
static Map<String, FileDto> _$files(PrepareUploadRequestDto v) => v.files; static Map<String, FileDto> _$files(PrepareUploadRequestDto v) => v.files;
static const Field<PrepareUploadRequestDto, Map<String, FileDto>> _f$files = Field('files', _$files); static const Field<PrepareUploadRequestDto, Map<String, FileDto>> _f$files =
Field('files', _$files);
@override @override
final MappableFields<PrepareUploadRequestDto> fields = const { final MappableFields<PrepareUploadRequestDto> fields = const {
@@ -33,7 +42,10 @@ class PrepareUploadRequestDtoMapper extends ClassMapperBase<PrepareUploadRequest
}; };
static PrepareUploadRequestDto _instantiate(DecodingData data) { static PrepareUploadRequestDto _instantiate(DecodingData data) {
return PrepareUploadRequestDto(info: data.dec(_f$info), files: data.dec(_f$files)); return PrepareUploadRequestDto(
info: data.dec(_f$info),
files: data.dec(_f$files),
);
} }
@override @override
@@ -50,57 +62,97 @@ class PrepareUploadRequestDtoMapper extends ClassMapperBase<PrepareUploadRequest
mixin PrepareUploadRequestDtoMappable { mixin PrepareUploadRequestDtoMappable {
String serialize() { String serialize() {
return PrepareUploadRequestDtoMapper.ensureInitialized().encodeJson<PrepareUploadRequestDto>(this as PrepareUploadRequestDto); return PrepareUploadRequestDtoMapper.ensureInitialized()
.encodeJson<PrepareUploadRequestDto>(this as PrepareUploadRequestDto);
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return PrepareUploadRequestDtoMapper.ensureInitialized().encodeMap<PrepareUploadRequestDto>(this as PrepareUploadRequestDto); return PrepareUploadRequestDtoMapper.ensureInitialized()
.encodeMap<PrepareUploadRequestDto>(this as PrepareUploadRequestDto);
} }
PrepareUploadRequestDtoCopyWith<PrepareUploadRequestDto, PrepareUploadRequestDto, PrepareUploadRequestDto> get copyWith => PrepareUploadRequestDtoCopyWith<
_PrepareUploadRequestDtoCopyWithImpl(this as PrepareUploadRequestDto, $identity, $identity); PrepareUploadRequestDto,
PrepareUploadRequestDto,
PrepareUploadRequestDto
>
get copyWith =>
_PrepareUploadRequestDtoCopyWithImpl<
PrepareUploadRequestDto,
PrepareUploadRequestDto
>(this as PrepareUploadRequestDto, $identity, $identity);
@override @override
String toString() { String toString() {
return PrepareUploadRequestDtoMapper.ensureInitialized().stringifyValue(this as PrepareUploadRequestDto); return PrepareUploadRequestDtoMapper.ensureInitialized().stringifyValue(
this as PrepareUploadRequestDto,
);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return PrepareUploadRequestDtoMapper.ensureInitialized().equalsValue(this as PrepareUploadRequestDto, other); return PrepareUploadRequestDtoMapper.ensureInitialized().equalsValue(
this as PrepareUploadRequestDto,
other,
);
} }
@override @override
int get hashCode { int get hashCode {
return PrepareUploadRequestDtoMapper.ensureInitialized().hashValue(this as PrepareUploadRequestDto); return PrepareUploadRequestDtoMapper.ensureInitialized().hashValue(
this as PrepareUploadRequestDto,
);
} }
} }
extension PrepareUploadRequestDtoValueCopy<$R, $Out> on ObjectCopyWith<$R, PrepareUploadRequestDto, $Out> { extension PrepareUploadRequestDtoValueCopy<$R, $Out>
PrepareUploadRequestDtoCopyWith<$R, PrepareUploadRequestDto, $Out> get $asPrepareUploadRequestDto => on ObjectCopyWith<$R, PrepareUploadRequestDto, $Out> {
$base.as((v, t, t2) => _PrepareUploadRequestDtoCopyWithImpl(v, t, t2)); PrepareUploadRequestDtoCopyWith<$R, PrepareUploadRequestDto, $Out>
get $asPrepareUploadRequestDto => $base.as(
(v, t, t2) => _PrepareUploadRequestDtoCopyWithImpl<$R, $Out>(v, t, t2),
);
} }
abstract class PrepareUploadRequestDtoCopyWith<$R, $In extends PrepareUploadRequestDto, $Out> implements ClassCopyWith<$R, $In, $Out> { abstract class PrepareUploadRequestDtoCopyWith<
$R,
$In extends PrepareUploadRequestDto,
$Out
>
implements ClassCopyWith<$R, $In, $Out> {
InfoRegisterDtoCopyWith<$R, InfoRegisterDto, InfoRegisterDto> get info; InfoRegisterDtoCopyWith<$R, InfoRegisterDto, InfoRegisterDto> get info;
MapCopyWith<$R, String, FileDto, ObjectCopyWith<$R, FileDto, FileDto>> get files; MapCopyWith<$R, String, FileDto, ObjectCopyWith<$R, FileDto, FileDto>>
get files;
$R call({InfoRegisterDto? info, Map<String, FileDto>? files}); $R call({InfoRegisterDto? info, Map<String, FileDto>? files});
PrepareUploadRequestDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); PrepareUploadRequestDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
);
} }
class _PrepareUploadRequestDtoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, PrepareUploadRequestDto, $Out> class _PrepareUploadRequestDtoCopyWithImpl<$R, $Out>
implements PrepareUploadRequestDtoCopyWith<$R, PrepareUploadRequestDto, $Out> { extends ClassCopyWithBase<$R, PrepareUploadRequestDto, $Out>
implements
PrepareUploadRequestDtoCopyWith<$R, PrepareUploadRequestDto, $Out> {
_PrepareUploadRequestDtoCopyWithImpl(super.value, super.then, super.then2); _PrepareUploadRequestDtoCopyWithImpl(super.value, super.then, super.then2);
@override @override
late final ClassMapperBase<PrepareUploadRequestDto> $mapper = PrepareUploadRequestDtoMapper.ensureInitialized(); late final ClassMapperBase<PrepareUploadRequestDto> $mapper =
PrepareUploadRequestDtoMapper.ensureInitialized();
@override @override
InfoRegisterDtoCopyWith<$R, InfoRegisterDto, InfoRegisterDto> get info => $value.info.copyWith.$chain((v) => call(info: v)); InfoRegisterDtoCopyWith<$R, InfoRegisterDto, InfoRegisterDto> get info =>
$value.info.copyWith.$chain((v) => call(info: v));
@override @override
MapCopyWith<$R, String, FileDto, ObjectCopyWith<$R, FileDto, FileDto>> get files => MapCopyWith<$R, String, FileDto, ObjectCopyWith<$R, FileDto, FileDto>>
MapCopyWith($value.files, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(files: v)); get files => MapCopyWith(
$value.files,
(v, t) => ObjectCopyWith(v, $identity, t),
(v) => call(files: v),
);
@override @override
$R call({InfoRegisterDto? info, Map<String, FileDto>? files}) => $R call({InfoRegisterDto? info, Map<String, FileDto>? files}) => $apply(
$apply(FieldCopyWithData({if (info != null) #info: info, if (files != null) #files: files})); FieldCopyWithData({
if (info != null) #info: info,
if (files != null) #files: files,
}),
);
@override @override
PrepareUploadRequestDto $make(CopyWithData data) => PrepareUploadRequestDto( PrepareUploadRequestDto $make(CopyWithData data) => PrepareUploadRequestDto(
info: data.get(#info, or: $value.info), info: data.get(#info, or: $value.info),
@@ -108,6 +160,8 @@ class _PrepareUploadRequestDtoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$
); );
@override @override
PrepareUploadRequestDtoCopyWith<$R2, PrepareUploadRequestDto, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => PrepareUploadRequestDtoCopyWith<$R2, PrepareUploadRequestDto, $Out2>
_PrepareUploadRequestDtoCopyWithImpl($value, $cast, t); $chain<$R2, $Out2>(Then<$Out2, $R2> t) =>
_PrepareUploadRequestDtoCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
@@ -1,18 +1,23 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// dart format off
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: invalid_use_of_protected_member
// ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member // ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member
// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter // ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter
part of 'prepare_upload_response_dto.dart'; part of 'prepare_upload_response_dto.dart';
class PrepareUploadResponseDtoMapper extends ClassMapperBase<PrepareUploadResponseDto> { class PrepareUploadResponseDtoMapper
extends ClassMapperBase<PrepareUploadResponseDto> {
PrepareUploadResponseDtoMapper._(); PrepareUploadResponseDtoMapper._();
static PrepareUploadResponseDtoMapper? _instance; static PrepareUploadResponseDtoMapper? _instance;
static PrepareUploadResponseDtoMapper ensureInitialized() { static PrepareUploadResponseDtoMapper ensureInitialized() {
if (_instance == null) { if (_instance == null) {
MapperContainer.globals.use(_instance = PrepareUploadResponseDtoMapper._()); MapperContainer.globals.use(
_instance = PrepareUploadResponseDtoMapper._(),
);
} }
return _instance!; return _instance!;
} }
@@ -21,9 +26,13 @@ class PrepareUploadResponseDtoMapper extends ClassMapperBase<PrepareUploadRespon
final String id = 'PrepareUploadResponseDto'; final String id = 'PrepareUploadResponseDto';
static String _$sessionId(PrepareUploadResponseDto v) => v.sessionId; static String _$sessionId(PrepareUploadResponseDto v) => v.sessionId;
static const Field<PrepareUploadResponseDto, String> _f$sessionId = Field('sessionId', _$sessionId); static const Field<PrepareUploadResponseDto, String> _f$sessionId = Field(
'sessionId',
_$sessionId,
);
static Map<String, String> _$files(PrepareUploadResponseDto v) => v.files; static Map<String, String> _$files(PrepareUploadResponseDto v) => v.files;
static const Field<PrepareUploadResponseDto, Map<String, String>> _f$files = Field('files', _$files); static const Field<PrepareUploadResponseDto, Map<String, String>> _f$files =
Field('files', _$files);
@override @override
final MappableFields<PrepareUploadResponseDto> fields = const { final MappableFields<PrepareUploadResponseDto> fields = const {
@@ -32,7 +41,10 @@ class PrepareUploadResponseDtoMapper extends ClassMapperBase<PrepareUploadRespon
}; };
static PrepareUploadResponseDto _instantiate(DecodingData data) { static PrepareUploadResponseDto _instantiate(DecodingData data) {
return PrepareUploadResponseDto(sessionId: data.dec(_f$sessionId), files: data.dec(_f$files)); return PrepareUploadResponseDto(
sessionId: data.dec(_f$sessionId),
files: data.dec(_f$files),
);
} }
@override @override
@@ -49,54 +61,92 @@ class PrepareUploadResponseDtoMapper extends ClassMapperBase<PrepareUploadRespon
mixin PrepareUploadResponseDtoMappable { mixin PrepareUploadResponseDtoMappable {
String serialize() { String serialize() {
return PrepareUploadResponseDtoMapper.ensureInitialized().encodeJson<PrepareUploadResponseDto>(this as PrepareUploadResponseDto); return PrepareUploadResponseDtoMapper.ensureInitialized()
.encodeJson<PrepareUploadResponseDto>(this as PrepareUploadResponseDto);
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return PrepareUploadResponseDtoMapper.ensureInitialized().encodeMap<PrepareUploadResponseDto>(this as PrepareUploadResponseDto); return PrepareUploadResponseDtoMapper.ensureInitialized()
.encodeMap<PrepareUploadResponseDto>(this as PrepareUploadResponseDto);
} }
PrepareUploadResponseDtoCopyWith<PrepareUploadResponseDto, PrepareUploadResponseDto, PrepareUploadResponseDto> get copyWith => PrepareUploadResponseDtoCopyWith<
_PrepareUploadResponseDtoCopyWithImpl(this as PrepareUploadResponseDto, $identity, $identity); PrepareUploadResponseDto,
PrepareUploadResponseDto,
PrepareUploadResponseDto
>
get copyWith =>
_PrepareUploadResponseDtoCopyWithImpl<
PrepareUploadResponseDto,
PrepareUploadResponseDto
>(this as PrepareUploadResponseDto, $identity, $identity);
@override @override
String toString() { String toString() {
return PrepareUploadResponseDtoMapper.ensureInitialized().stringifyValue(this as PrepareUploadResponseDto); return PrepareUploadResponseDtoMapper.ensureInitialized().stringifyValue(
this as PrepareUploadResponseDto,
);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return PrepareUploadResponseDtoMapper.ensureInitialized().equalsValue(this as PrepareUploadResponseDto, other); return PrepareUploadResponseDtoMapper.ensureInitialized().equalsValue(
this as PrepareUploadResponseDto,
other,
);
} }
@override @override
int get hashCode { int get hashCode {
return PrepareUploadResponseDtoMapper.ensureInitialized().hashValue(this as PrepareUploadResponseDto); return PrepareUploadResponseDtoMapper.ensureInitialized().hashValue(
this as PrepareUploadResponseDto,
);
} }
} }
extension PrepareUploadResponseDtoValueCopy<$R, $Out> on ObjectCopyWith<$R, PrepareUploadResponseDto, $Out> { extension PrepareUploadResponseDtoValueCopy<$R, $Out>
PrepareUploadResponseDtoCopyWith<$R, PrepareUploadResponseDto, $Out> get $asPrepareUploadResponseDto => on ObjectCopyWith<$R, PrepareUploadResponseDto, $Out> {
$base.as((v, t, t2) => _PrepareUploadResponseDtoCopyWithImpl(v, t, t2)); PrepareUploadResponseDtoCopyWith<$R, PrepareUploadResponseDto, $Out>
get $asPrepareUploadResponseDto => $base.as(
(v, t, t2) => _PrepareUploadResponseDtoCopyWithImpl<$R, $Out>(v, t, t2),
);
} }
abstract class PrepareUploadResponseDtoCopyWith<$R, $In extends PrepareUploadResponseDto, $Out> implements ClassCopyWith<$R, $In, $Out> { abstract class PrepareUploadResponseDtoCopyWith<
$R,
$In extends PrepareUploadResponseDto,
$Out
>
implements ClassCopyWith<$R, $In, $Out> {
MapCopyWith<$R, String, String, ObjectCopyWith<$R, String, String>> get files; MapCopyWith<$R, String, String, ObjectCopyWith<$R, String, String>> get files;
$R call({String? sessionId, Map<String, String>? files}); $R call({String? sessionId, Map<String, String>? files});
PrepareUploadResponseDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); PrepareUploadResponseDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
);
} }
class _PrepareUploadResponseDtoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, PrepareUploadResponseDto, $Out> class _PrepareUploadResponseDtoCopyWithImpl<$R, $Out>
implements PrepareUploadResponseDtoCopyWith<$R, PrepareUploadResponseDto, $Out> { extends ClassCopyWithBase<$R, PrepareUploadResponseDto, $Out>
implements
PrepareUploadResponseDtoCopyWith<$R, PrepareUploadResponseDto, $Out> {
_PrepareUploadResponseDtoCopyWithImpl(super.value, super.then, super.then2); _PrepareUploadResponseDtoCopyWithImpl(super.value, super.then, super.then2);
@override @override
late final ClassMapperBase<PrepareUploadResponseDto> $mapper = PrepareUploadResponseDtoMapper.ensureInitialized(); late final ClassMapperBase<PrepareUploadResponseDto> $mapper =
PrepareUploadResponseDtoMapper.ensureInitialized();
@override @override
MapCopyWith<$R, String, String, ObjectCopyWith<$R, String, String>> get files => MapCopyWith<$R, String, String, ObjectCopyWith<$R, String, String>>
MapCopyWith($value.files, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(files: v)); get files => MapCopyWith(
$value.files,
(v, t) => ObjectCopyWith(v, $identity, t),
(v) => call(files: v),
);
@override @override
$R call({String? sessionId, Map<String, String>? files}) => $R call({String? sessionId, Map<String, String>? files}) => $apply(
$apply(FieldCopyWithData({if (sessionId != null) #sessionId: sessionId, if (files != null) #files: files})); FieldCopyWithData({
if (sessionId != null) #sessionId: sessionId,
if (files != null) #files: files,
}),
);
@override @override
PrepareUploadResponseDto $make(CopyWithData data) => PrepareUploadResponseDto( PrepareUploadResponseDto $make(CopyWithData data) => PrepareUploadResponseDto(
sessionId: data.get(#sessionId, or: $value.sessionId), sessionId: data.get(#sessionId, or: $value.sessionId),
@@ -104,6 +154,8 @@ class _PrepareUploadResponseDtoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<
); );
@override @override
PrepareUploadResponseDtoCopyWith<$R2, PrepareUploadResponseDto, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => PrepareUploadResponseDtoCopyWith<$R2, PrepareUploadResponseDto, $Out2>
_PrepareUploadResponseDtoCopyWithImpl($value, $cast, t); $chain<$R2, $Out2>(Then<$Out2, $R2> t) =>
_PrepareUploadResponseDtoCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
@@ -1,18 +1,23 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// dart format off
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: invalid_use_of_protected_member
// ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member // ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member
// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter // ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter
part of 'receive_request_response_dto.dart'; part of 'receive_request_response_dto.dart';
class ReceiveRequestResponseDtoMapper extends ClassMapperBase<ReceiveRequestResponseDto> { class ReceiveRequestResponseDtoMapper
extends ClassMapperBase<ReceiveRequestResponseDto> {
ReceiveRequestResponseDtoMapper._(); ReceiveRequestResponseDtoMapper._();
static ReceiveRequestResponseDtoMapper? _instance; static ReceiveRequestResponseDtoMapper? _instance;
static ReceiveRequestResponseDtoMapper ensureInitialized() { static ReceiveRequestResponseDtoMapper ensureInitialized() {
if (_instance == null) { if (_instance == null) {
MapperContainer.globals.use(_instance = ReceiveRequestResponseDtoMapper._()); MapperContainer.globals.use(
_instance = ReceiveRequestResponseDtoMapper._(),
);
InfoDtoMapper.ensureInitialized(); InfoDtoMapper.ensureInitialized();
} }
return _instance!; return _instance!;
@@ -22,11 +27,18 @@ class ReceiveRequestResponseDtoMapper extends ClassMapperBase<ReceiveRequestResp
final String id = 'ReceiveRequestResponseDto'; final String id = 'ReceiveRequestResponseDto';
static InfoDto _$info(ReceiveRequestResponseDto v) => v.info; static InfoDto _$info(ReceiveRequestResponseDto v) => v.info;
static const Field<ReceiveRequestResponseDto, InfoDto> _f$info = Field('info', _$info); static const Field<ReceiveRequestResponseDto, InfoDto> _f$info = Field(
'info',
_$info,
);
static String _$sessionId(ReceiveRequestResponseDto v) => v.sessionId; static String _$sessionId(ReceiveRequestResponseDto v) => v.sessionId;
static const Field<ReceiveRequestResponseDto, String> _f$sessionId = Field('sessionId', _$sessionId); static const Field<ReceiveRequestResponseDto, String> _f$sessionId = Field(
'sessionId',
_$sessionId,
);
static Map<String, FileDto> _$files(ReceiveRequestResponseDto v) => v.files; static Map<String, FileDto> _$files(ReceiveRequestResponseDto v) => v.files;
static const Field<ReceiveRequestResponseDto, Map<String, FileDto>> _f$files = Field('files', _$files); static const Field<ReceiveRequestResponseDto, Map<String, FileDto>> _f$files =
Field('files', _$files);
@override @override
final MappableFields<ReceiveRequestResponseDto> fields = const { final MappableFields<ReceiveRequestResponseDto> fields = const {
@@ -36,7 +48,11 @@ class ReceiveRequestResponseDtoMapper extends ClassMapperBase<ReceiveRequestResp
}; };
static ReceiveRequestResponseDto _instantiate(DecodingData data) { static ReceiveRequestResponseDto _instantiate(DecodingData data) {
return ReceiveRequestResponseDto(info: data.dec(_f$info), sessionId: data.dec(_f$sessionId), files: data.dec(_f$files)); return ReceiveRequestResponseDto(
info: data.dec(_f$info),
sessionId: data.dec(_f$sessionId),
files: data.dec(_f$files),
);
} }
@override @override
@@ -53,65 +69,114 @@ class ReceiveRequestResponseDtoMapper extends ClassMapperBase<ReceiveRequestResp
mixin ReceiveRequestResponseDtoMappable { mixin ReceiveRequestResponseDtoMappable {
String serialize() { String serialize() {
return ReceiveRequestResponseDtoMapper.ensureInitialized().encodeJson<ReceiveRequestResponseDto>(this as ReceiveRequestResponseDto); return ReceiveRequestResponseDtoMapper.ensureInitialized()
.encodeJson<ReceiveRequestResponseDto>(
this as ReceiveRequestResponseDto,
);
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return ReceiveRequestResponseDtoMapper.ensureInitialized().encodeMap<ReceiveRequestResponseDto>(this as ReceiveRequestResponseDto); return ReceiveRequestResponseDtoMapper.ensureInitialized()
.encodeMap<ReceiveRequestResponseDto>(
this as ReceiveRequestResponseDto,
);
} }
ReceiveRequestResponseDtoCopyWith<ReceiveRequestResponseDto, ReceiveRequestResponseDto, ReceiveRequestResponseDto> get copyWith => ReceiveRequestResponseDtoCopyWith<
_ReceiveRequestResponseDtoCopyWithImpl(this as ReceiveRequestResponseDto, $identity, $identity); ReceiveRequestResponseDto,
ReceiveRequestResponseDto,
ReceiveRequestResponseDto
>
get copyWith =>
_ReceiveRequestResponseDtoCopyWithImpl<
ReceiveRequestResponseDto,
ReceiveRequestResponseDto
>(this as ReceiveRequestResponseDto, $identity, $identity);
@override @override
String toString() { String toString() {
return ReceiveRequestResponseDtoMapper.ensureInitialized().stringifyValue(this as ReceiveRequestResponseDto); return ReceiveRequestResponseDtoMapper.ensureInitialized().stringifyValue(
this as ReceiveRequestResponseDto,
);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return ReceiveRequestResponseDtoMapper.ensureInitialized().equalsValue(this as ReceiveRequestResponseDto, other); return ReceiveRequestResponseDtoMapper.ensureInitialized().equalsValue(
this as ReceiveRequestResponseDto,
other,
);
} }
@override @override
int get hashCode { int get hashCode {
return ReceiveRequestResponseDtoMapper.ensureInitialized().hashValue(this as ReceiveRequestResponseDto); return ReceiveRequestResponseDtoMapper.ensureInitialized().hashValue(
this as ReceiveRequestResponseDto,
);
} }
} }
extension ReceiveRequestResponseDtoValueCopy<$R, $Out> on ObjectCopyWith<$R, ReceiveRequestResponseDto, $Out> { extension ReceiveRequestResponseDtoValueCopy<$R, $Out>
ReceiveRequestResponseDtoCopyWith<$R, ReceiveRequestResponseDto, $Out> get $asReceiveRequestResponseDto => on ObjectCopyWith<$R, ReceiveRequestResponseDto, $Out> {
$base.as((v, t, t2) => _ReceiveRequestResponseDtoCopyWithImpl(v, t, t2)); ReceiveRequestResponseDtoCopyWith<$R, ReceiveRequestResponseDto, $Out>
get $asReceiveRequestResponseDto => $base.as(
(v, t, t2) => _ReceiveRequestResponseDtoCopyWithImpl<$R, $Out>(v, t, t2),
);
} }
abstract class ReceiveRequestResponseDtoCopyWith<$R, $In extends ReceiveRequestResponseDto, $Out> implements ClassCopyWith<$R, $In, $Out> { abstract class ReceiveRequestResponseDtoCopyWith<
$R,
$In extends ReceiveRequestResponseDto,
$Out
>
implements ClassCopyWith<$R, $In, $Out> {
InfoDtoCopyWith<$R, InfoDto, InfoDto> get info; InfoDtoCopyWith<$R, InfoDto, InfoDto> get info;
MapCopyWith<$R, String, FileDto, ObjectCopyWith<$R, FileDto, FileDto>> get files; MapCopyWith<$R, String, FileDto, ObjectCopyWith<$R, FileDto, FileDto>>
get files;
$R call({InfoDto? info, String? sessionId, Map<String, FileDto>? files}); $R call({InfoDto? info, String? sessionId, Map<String, FileDto>? files});
ReceiveRequestResponseDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); ReceiveRequestResponseDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
);
} }
class _ReceiveRequestResponseDtoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ReceiveRequestResponseDto, $Out> class _ReceiveRequestResponseDtoCopyWithImpl<$R, $Out>
implements ReceiveRequestResponseDtoCopyWith<$R, ReceiveRequestResponseDto, $Out> { extends ClassCopyWithBase<$R, ReceiveRequestResponseDto, $Out>
implements
ReceiveRequestResponseDtoCopyWith<$R, ReceiveRequestResponseDto, $Out> {
_ReceiveRequestResponseDtoCopyWithImpl(super.value, super.then, super.then2); _ReceiveRequestResponseDtoCopyWithImpl(super.value, super.then, super.then2);
@override @override
late final ClassMapperBase<ReceiveRequestResponseDto> $mapper = ReceiveRequestResponseDtoMapper.ensureInitialized(); late final ClassMapperBase<ReceiveRequestResponseDto> $mapper =
ReceiveRequestResponseDtoMapper.ensureInitialized();
@override @override
InfoDtoCopyWith<$R, InfoDto, InfoDto> get info => $value.info.copyWith.$chain((v) => call(info: v)); InfoDtoCopyWith<$R, InfoDto, InfoDto> get info =>
$value.info.copyWith.$chain((v) => call(info: v));
@override @override
MapCopyWith<$R, String, FileDto, ObjectCopyWith<$R, FileDto, FileDto>> get files => MapCopyWith<$R, String, FileDto, ObjectCopyWith<$R, FileDto, FileDto>>
MapCopyWith($value.files, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(files: v)); get files => MapCopyWith(
$value.files,
(v, t) => ObjectCopyWith(v, $identity, t),
(v) => call(files: v),
);
@override @override
$R call({InfoDto? info, String? sessionId, Map<String, FileDto>? files}) => $R call({InfoDto? info, String? sessionId, Map<String, FileDto>? files}) =>
$apply(FieldCopyWithData({if (info != null) #info: info, if (sessionId != null) #sessionId: sessionId, if (files != null) #files: files})); $apply(
FieldCopyWithData({
if (info != null) #info: info,
if (sessionId != null) #sessionId: sessionId,
if (files != null) #files: files,
}),
);
@override @override
ReceiveRequestResponseDto $make(CopyWithData data) => ReceiveRequestResponseDto( ReceiveRequestResponseDto $make(CopyWithData data) =>
info: data.get(#info, or: $value.info), ReceiveRequestResponseDto(
sessionId: data.get(#sessionId, or: $value.sessionId), info: data.get(#info, or: $value.info),
files: data.get(#files, or: $value.files), sessionId: data.get(#sessionId, or: $value.sessionId),
); files: data.get(#files, or: $value.files),
);
@override @override
ReceiveRequestResponseDtoCopyWith<$R2, ReceiveRequestResponseDto, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => ReceiveRequestResponseDtoCopyWith<$R2, ReceiveRequestResponseDto, $Out2>
_ReceiveRequestResponseDtoCopyWithImpl($value, $cast, t); $chain<$R2, $Out2>(Then<$Out2, $R2> t) =>
_ReceiveRequestResponseDtoCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
@@ -1,6 +1,8 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// dart format off
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: invalid_use_of_protected_member
// ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member // ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member
// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter // ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter
@@ -25,19 +27,37 @@ class RegisterDtoMapper extends ClassMapperBase<RegisterDto> {
static String _$alias(RegisterDto v) => v.alias; static String _$alias(RegisterDto v) => v.alias;
static const Field<RegisterDto, String> _f$alias = Field('alias', _$alias); static const Field<RegisterDto, String> _f$alias = Field('alias', _$alias);
static String? _$version(RegisterDto v) => v.version; static String? _$version(RegisterDto v) => v.version;
static const Field<RegisterDto, String> _f$version = Field('version', _$version); static const Field<RegisterDto, String> _f$version = Field(
'version',
_$version,
);
static String? _$deviceModel(RegisterDto v) => v.deviceModel; static String? _$deviceModel(RegisterDto v) => v.deviceModel;
static const Field<RegisterDto, String> _f$deviceModel = Field('deviceModel', _$deviceModel); static const Field<RegisterDto, String> _f$deviceModel = Field(
'deviceModel',
_$deviceModel,
);
static DeviceType? _$deviceType(RegisterDto v) => v.deviceType; static DeviceType? _$deviceType(RegisterDto v) => v.deviceType;
static const Field<RegisterDto, DeviceType> _f$deviceType = Field('deviceType', _$deviceType); static const Field<RegisterDto, DeviceType> _f$deviceType = Field(
'deviceType',
_$deviceType,
);
static String _$fingerprint(RegisterDto v) => v.fingerprint; static String _$fingerprint(RegisterDto v) => v.fingerprint;
static const Field<RegisterDto, String> _f$fingerprint = Field('fingerprint', _$fingerprint); static const Field<RegisterDto, String> _f$fingerprint = Field(
'fingerprint',
_$fingerprint,
);
static int? _$port(RegisterDto v) => v.port; static int? _$port(RegisterDto v) => v.port;
static const Field<RegisterDto, int> _f$port = Field('port', _$port); static const Field<RegisterDto, int> _f$port = Field('port', _$port);
static ProtocolType? _$protocol(RegisterDto v) => v.protocol; static ProtocolType? _$protocol(RegisterDto v) => v.protocol;
static const Field<RegisterDto, ProtocolType> _f$protocol = Field('protocol', _$protocol); static const Field<RegisterDto, ProtocolType> _f$protocol = Field(
'protocol',
_$protocol,
);
static bool? _$download(RegisterDto v) => v.download; static bool? _$download(RegisterDto v) => v.download;
static const Field<RegisterDto, bool> _f$download = Field('download', _$download); static const Field<RegisterDto, bool> _f$download = Field(
'download',
_$download,
);
@override @override
final MappableFields<RegisterDto> fields = const { final MappableFields<RegisterDto> fields = const {
@@ -78,22 +98,36 @@ class RegisterDtoMapper extends ClassMapperBase<RegisterDto> {
mixin RegisterDtoMappable { mixin RegisterDtoMappable {
String serialize() { String serialize() {
return RegisterDtoMapper.ensureInitialized().encodeJson<RegisterDto>(this as RegisterDto); return RegisterDtoMapper.ensureInitialized().encodeJson<RegisterDto>(
this as RegisterDto,
);
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return RegisterDtoMapper.ensureInitialized().encodeMap<RegisterDto>(this as RegisterDto); return RegisterDtoMapper.ensureInitialized().encodeMap<RegisterDto>(
this as RegisterDto,
);
} }
RegisterDtoCopyWith<RegisterDto, RegisterDto, RegisterDto> get copyWith => _RegisterDtoCopyWithImpl(this as RegisterDto, $identity, $identity); RegisterDtoCopyWith<RegisterDto, RegisterDto, RegisterDto> get copyWith =>
_RegisterDtoCopyWithImpl<RegisterDto, RegisterDto>(
this as RegisterDto,
$identity,
$identity,
);
@override @override
String toString() { String toString() {
return RegisterDtoMapper.ensureInitialized().stringifyValue(this as RegisterDto); return RegisterDtoMapper.ensureInitialized().stringifyValue(
this as RegisterDto,
);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return RegisterDtoMapper.ensureInitialized().equalsValue(this as RegisterDto, other); return RegisterDtoMapper.ensureInitialized().equalsValue(
this as RegisterDto,
other,
);
} }
@override @override
@@ -102,11 +136,14 @@ mixin RegisterDtoMappable {
} }
} }
extension RegisterDtoValueCopy<$R, $Out> on ObjectCopyWith<$R, RegisterDto, $Out> { extension RegisterDtoValueCopy<$R, $Out>
RegisterDtoCopyWith<$R, RegisterDto, $Out> get $asRegisterDto => $base.as((v, t, t2) => _RegisterDtoCopyWithImpl(v, t, t2)); on ObjectCopyWith<$R, RegisterDto, $Out> {
RegisterDtoCopyWith<$R, RegisterDto, $Out> get $asRegisterDto =>
$base.as((v, t, t2) => _RegisterDtoCopyWithImpl<$R, $Out>(v, t, t2));
} }
abstract class RegisterDtoCopyWith<$R, $In extends RegisterDto, $Out> implements ClassCopyWith<$R, $In, $Out> { abstract class RegisterDtoCopyWith<$R, $In extends RegisterDto, $Out>
implements ClassCopyWith<$R, $In, $Out> {
$R call({ $R call({
String? alias, String? alias,
String? version, String? version,
@@ -120,11 +157,14 @@ abstract class RegisterDtoCopyWith<$R, $In extends RegisterDto, $Out> implements
RegisterDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); RegisterDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
} }
class _RegisterDtoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, RegisterDto, $Out> implements RegisterDtoCopyWith<$R, RegisterDto, $Out> { class _RegisterDtoCopyWithImpl<$R, $Out>
extends ClassCopyWithBase<$R, RegisterDto, $Out>
implements RegisterDtoCopyWith<$R, RegisterDto, $Out> {
_RegisterDtoCopyWithImpl(super.value, super.then, super.then2); _RegisterDtoCopyWithImpl(super.value, super.then, super.then2);
@override @override
late final ClassMapperBase<RegisterDto> $mapper = RegisterDtoMapper.ensureInitialized(); late final ClassMapperBase<RegisterDto> $mapper =
RegisterDtoMapper.ensureInitialized();
@override @override
$R call({ $R call({
String? alias, String? alias,
@@ -160,5 +200,8 @@ class _RegisterDtoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, RegisterD
); );
@override @override
RegisterDtoCopyWith<$R2, RegisterDto, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _RegisterDtoCopyWithImpl($value, $cast, t); RegisterDtoCopyWith<$R2, RegisterDto, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
) => _RegisterDtoCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
+15 -12
View File
@@ -1,6 +1,8 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// dart format off
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: invalid_use_of_protected_member
// ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member // ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member
// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter // ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter
@@ -25,17 +27,17 @@ class FileTypeMapper extends EnumMapper<FileType> {
@override @override
FileType decode(dynamic value) { FileType decode(dynamic value) {
switch (value) { switch (value) {
case 'image': case r'image':
return FileType.image; return FileType.image;
case 'video': case r'video':
return FileType.video; return FileType.video;
case 'pdf': case r'pdf':
return FileType.pdf; return FileType.pdf;
case 'text': case r'text':
return FileType.text; return FileType.text;
case 'apk': case r'apk':
return FileType.apk; return FileType.apk;
case 'other': case r'other':
return FileType.other; return FileType.other;
default: default:
return FileType.values[5]; return FileType.values[5];
@@ -46,17 +48,17 @@ class FileTypeMapper extends EnumMapper<FileType> {
dynamic encode(FileType self) { dynamic encode(FileType self) {
switch (self) { switch (self) {
case FileType.image: case FileType.image:
return 'image'; return r'image';
case FileType.video: case FileType.video:
return 'video'; return r'video';
case FileType.pdf: case FileType.pdf:
return 'pdf'; return r'pdf';
case FileType.text: case FileType.text:
return 'text'; return r'text';
case FileType.apk: case FileType.apk:
return 'apk'; return r'apk';
case FileType.other: case FileType.other:
return 'other'; return r'other';
} }
} }
} }
@@ -67,3 +69,4 @@ extension FileTypeMapperExtension on FileType {
return MapperContainer.globals.toValue<FileType>(this) as String; return MapperContainer.globals.toValue<FileType>(this) as String;
} }
} }
@@ -1,12 +1,15 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// dart format off
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: invalid_use_of_protected_member
// ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member // ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member
// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter // ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter
part of 'stored_security_context.dart'; part of 'stored_security_context.dart';
class StoredSecurityContextMapper extends ClassMapperBase<StoredSecurityContext> { class StoredSecurityContextMapper
extends ClassMapperBase<StoredSecurityContext> {
StoredSecurityContextMapper._(); StoredSecurityContextMapper._();
static StoredSecurityContextMapper? _instance; static StoredSecurityContextMapper? _instance;
@@ -21,13 +24,25 @@ class StoredSecurityContextMapper extends ClassMapperBase<StoredSecurityContext>
final String id = 'StoredSecurityContext'; final String id = 'StoredSecurityContext';
static String _$privateKey(StoredSecurityContext v) => v.privateKey; static String _$privateKey(StoredSecurityContext v) => v.privateKey;
static const Field<StoredSecurityContext, String> _f$privateKey = Field('privateKey', _$privateKey); static const Field<StoredSecurityContext, String> _f$privateKey = Field(
'privateKey',
_$privateKey,
);
static String _$publicKey(StoredSecurityContext v) => v.publicKey; static String _$publicKey(StoredSecurityContext v) => v.publicKey;
static const Field<StoredSecurityContext, String> _f$publicKey = Field('publicKey', _$publicKey); static const Field<StoredSecurityContext, String> _f$publicKey = Field(
'publicKey',
_$publicKey,
);
static String _$certificate(StoredSecurityContext v) => v.certificate; static String _$certificate(StoredSecurityContext v) => v.certificate;
static const Field<StoredSecurityContext, String> _f$certificate = Field('certificate', _$certificate); static const Field<StoredSecurityContext, String> _f$certificate = Field(
'certificate',
_$certificate,
);
static String _$certificateHash(StoredSecurityContext v) => v.certificateHash; static String _$certificateHash(StoredSecurityContext v) => v.certificateHash;
static const Field<StoredSecurityContext, String> _f$certificateHash = Field('certificateHash', _$certificateHash); static const Field<StoredSecurityContext, String> _f$certificateHash = Field(
'certificateHash',
_$certificateHash,
);
@override @override
final MappableFields<StoredSecurityContext> fields = const { final MappableFields<StoredSecurityContext> fields = const {
@@ -60,49 +75,88 @@ class StoredSecurityContextMapper extends ClassMapperBase<StoredSecurityContext>
mixin StoredSecurityContextMappable { mixin StoredSecurityContextMappable {
String serialize() { String serialize() {
return StoredSecurityContextMapper.ensureInitialized().encodeJson<StoredSecurityContext>(this as StoredSecurityContext); return StoredSecurityContextMapper.ensureInitialized()
.encodeJson<StoredSecurityContext>(this as StoredSecurityContext);
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return StoredSecurityContextMapper.ensureInitialized().encodeMap<StoredSecurityContext>(this as StoredSecurityContext); return StoredSecurityContextMapper.ensureInitialized()
.encodeMap<StoredSecurityContext>(this as StoredSecurityContext);
} }
StoredSecurityContextCopyWith<StoredSecurityContext, StoredSecurityContext, StoredSecurityContext> get copyWith => StoredSecurityContextCopyWith<
_StoredSecurityContextCopyWithImpl(this as StoredSecurityContext, $identity, $identity); StoredSecurityContext,
StoredSecurityContext,
StoredSecurityContext
>
get copyWith =>
_StoredSecurityContextCopyWithImpl<
StoredSecurityContext,
StoredSecurityContext
>(this as StoredSecurityContext, $identity, $identity);
@override @override
String toString() { String toString() {
return StoredSecurityContextMapper.ensureInitialized().stringifyValue(this as StoredSecurityContext); return StoredSecurityContextMapper.ensureInitialized().stringifyValue(
this as StoredSecurityContext,
);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return StoredSecurityContextMapper.ensureInitialized().equalsValue(this as StoredSecurityContext, other); return StoredSecurityContextMapper.ensureInitialized().equalsValue(
this as StoredSecurityContext,
other,
);
} }
@override @override
int get hashCode { int get hashCode {
return StoredSecurityContextMapper.ensureInitialized().hashValue(this as StoredSecurityContext); return StoredSecurityContextMapper.ensureInitialized().hashValue(
this as StoredSecurityContext,
);
} }
} }
extension StoredSecurityContextValueCopy<$R, $Out> on ObjectCopyWith<$R, StoredSecurityContext, $Out> { extension StoredSecurityContextValueCopy<$R, $Out>
StoredSecurityContextCopyWith<$R, StoredSecurityContext, $Out> get $asStoredSecurityContext => on ObjectCopyWith<$R, StoredSecurityContext, $Out> {
$base.as((v, t, t2) => _StoredSecurityContextCopyWithImpl(v, t, t2)); StoredSecurityContextCopyWith<$R, StoredSecurityContext, $Out>
get $asStoredSecurityContext => $base.as(
(v, t, t2) => _StoredSecurityContextCopyWithImpl<$R, $Out>(v, t, t2),
);
} }
abstract class StoredSecurityContextCopyWith<$R, $In extends StoredSecurityContext, $Out> implements ClassCopyWith<$R, $In, $Out> { abstract class StoredSecurityContextCopyWith<
$R call({String? privateKey, String? publicKey, String? certificate, String? certificateHash}); $R,
StoredSecurityContextCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); $In extends StoredSecurityContext,
$Out
>
implements ClassCopyWith<$R, $In, $Out> {
$R call({
String? privateKey,
String? publicKey,
String? certificate,
String? certificateHash,
});
StoredSecurityContextCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
);
} }
class _StoredSecurityContextCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, StoredSecurityContext, $Out> class _StoredSecurityContextCopyWithImpl<$R, $Out>
extends ClassCopyWithBase<$R, StoredSecurityContext, $Out>
implements StoredSecurityContextCopyWith<$R, StoredSecurityContext, $Out> { implements StoredSecurityContextCopyWith<$R, StoredSecurityContext, $Out> {
_StoredSecurityContextCopyWithImpl(super.value, super.then, super.then2); _StoredSecurityContextCopyWithImpl(super.value, super.then, super.then2);
@override @override
late final ClassMapperBase<StoredSecurityContext> $mapper = StoredSecurityContextMapper.ensureInitialized(); late final ClassMapperBase<StoredSecurityContext> $mapper =
StoredSecurityContextMapper.ensureInitialized();
@override @override
$R call({String? privateKey, String? publicKey, String? certificate, String? certificateHash}) => $apply( $R call({
String? privateKey,
String? publicKey,
String? certificate,
String? certificateHash,
}) => $apply(
FieldCopyWithData({ FieldCopyWithData({
if (privateKey != null) #privateKey: privateKey, if (privateKey != null) #privateKey: privateKey,
if (publicKey != null) #publicKey: publicKey, if (publicKey != null) #publicKey: publicKey,
@@ -119,6 +173,8 @@ class _StoredSecurityContextCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R,
); );
@override @override
StoredSecurityContextCopyWith<$R2, StoredSecurityContext, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => StoredSecurityContextCopyWith<$R2, StoredSecurityContext, $Out2>
_StoredSecurityContextCopyWithImpl($value, $cast, t); $chain<$R2, $Out2>(Then<$Out2, $R2> t) =>
_StoredSecurityContextCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
@@ -1,6 +1,8 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// dart format off
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: invalid_use_of_protected_member
// ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member // ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member
// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter // ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter
@@ -24,34 +26,73 @@ class SyncStateMapper extends ClassMapperBase<SyncState> {
static Function _$init(SyncState v) => (v as dynamic).init as Function; static Function _$init(SyncState v) => (v as dynamic).init as Function;
static dynamic _arg$init(f) => f<Future<void> Function()>(); static dynamic _arg$init(f) => f<Future<void> Function()>();
static const Field<SyncState, Function> _f$init = Field('init', _$init, arg: _arg$init); static const Field<SyncState, Function> _f$init = Field(
'init',
_$init,
arg: _arg$init,
);
static Object _$rootIsolateToken(SyncState v) => v.rootIsolateToken; static Object _$rootIsolateToken(SyncState v) => v.rootIsolateToken;
static const Field<SyncState, Object> _f$rootIsolateToken = Field('rootIsolateToken', _$rootIsolateToken); static const Field<SyncState, Object> _f$rootIsolateToken = Field(
static Function _$httpClientFactory(SyncState v) => (v as dynamic).httpClientFactory as Function; 'rootIsolateToken',
static dynamic _arg$httpClientFactory(f) => f<CustomHttpClient Function(Duration, StoredSecurityContext)>(); _$rootIsolateToken,
static const Field<SyncState, Function> _f$httpClientFactory = Field('httpClientFactory', _$httpClientFactory, arg: _arg$httpClientFactory); );
static StoredSecurityContext _$securityContext(SyncState v) => v.securityContext; static Function _$httpClientFactory(SyncState v) =>
static const Field<SyncState, StoredSecurityContext> _f$securityContext = Field('securityContext', _$securityContext); (v as dynamic).httpClientFactory as Function;
static dynamic _arg$httpClientFactory(f) =>
f<CustomHttpClient Function(Duration, StoredSecurityContext)>();
static const Field<SyncState, Function> _f$httpClientFactory = Field(
'httpClientFactory',
_$httpClientFactory,
arg: _arg$httpClientFactory,
);
static StoredSecurityContext _$securityContext(SyncState v) =>
v.securityContext;
static const Field<SyncState, StoredSecurityContext> _f$securityContext =
Field('securityContext', _$securityContext);
static DeviceInfoResult _$deviceInfo(SyncState v) => v.deviceInfo; static DeviceInfoResult _$deviceInfo(SyncState v) => v.deviceInfo;
static const Field<SyncState, DeviceInfoResult> _f$deviceInfo = Field('deviceInfo', _$deviceInfo); static const Field<SyncState, DeviceInfoResult> _f$deviceInfo = Field(
'deviceInfo',
_$deviceInfo,
);
static String _$alias(SyncState v) => v.alias; static String _$alias(SyncState v) => v.alias;
static const Field<SyncState, String> _f$alias = Field('alias', _$alias); static const Field<SyncState, String> _f$alias = Field('alias', _$alias);
static int _$port(SyncState v) => v.port; static int _$port(SyncState v) => v.port;
static const Field<SyncState, int> _f$port = Field('port', _$port); static const Field<SyncState, int> _f$port = Field('port', _$port);
static List<String>? _$networkWhitelist(SyncState v) => v.networkWhitelist; static List<String>? _$networkWhitelist(SyncState v) => v.networkWhitelist;
static const Field<SyncState, List<String>> _f$networkWhitelist = Field('networkWhitelist', _$networkWhitelist); static const Field<SyncState, List<String>> _f$networkWhitelist = Field(
'networkWhitelist',
_$networkWhitelist,
);
static List<String>? _$networkBlacklist(SyncState v) => v.networkBlacklist; static List<String>? _$networkBlacklist(SyncState v) => v.networkBlacklist;
static const Field<SyncState, List<String>> _f$networkBlacklist = Field('networkBlacklist', _$networkBlacklist); static const Field<SyncState, List<String>> _f$networkBlacklist = Field(
'networkBlacklist',
_$networkBlacklist,
);
static ProtocolType _$protocol(SyncState v) => v.protocol; static ProtocolType _$protocol(SyncState v) => v.protocol;
static const Field<SyncState, ProtocolType> _f$protocol = Field('protocol', _$protocol); static const Field<SyncState, ProtocolType> _f$protocol = Field(
'protocol',
_$protocol,
);
static String _$multicastGroup(SyncState v) => v.multicastGroup; static String _$multicastGroup(SyncState v) => v.multicastGroup;
static const Field<SyncState, String> _f$multicastGroup = Field('multicastGroup', _$multicastGroup); static const Field<SyncState, String> _f$multicastGroup = Field(
'multicastGroup',
_$multicastGroup,
);
static int _$discoveryTimeout(SyncState v) => v.discoveryTimeout; static int _$discoveryTimeout(SyncState v) => v.discoveryTimeout;
static const Field<SyncState, int> _f$discoveryTimeout = Field('discoveryTimeout', _$discoveryTimeout); static const Field<SyncState, int> _f$discoveryTimeout = Field(
'discoveryTimeout',
_$discoveryTimeout,
);
static bool _$serverRunning(SyncState v) => v.serverRunning; static bool _$serverRunning(SyncState v) => v.serverRunning;
static const Field<SyncState, bool> _f$serverRunning = Field('serverRunning', _$serverRunning); static const Field<SyncState, bool> _f$serverRunning = Field(
'serverRunning',
_$serverRunning,
);
static bool _$download(SyncState v) => v.download; static bool _$download(SyncState v) => v.download;
static const Field<SyncState, bool> _f$download = Field('download', _$download); static const Field<SyncState, bool> _f$download = Field(
'download',
_$download,
);
@override @override
final MappableFields<SyncState> fields = const { final MappableFields<SyncState> fields = const {
@@ -104,22 +145,36 @@ class SyncStateMapper extends ClassMapperBase<SyncState> {
mixin SyncStateMappable { mixin SyncStateMappable {
String serialize() { String serialize() {
return SyncStateMapper.ensureInitialized().encodeJson<SyncState>(this as SyncState); return SyncStateMapper.ensureInitialized().encodeJson<SyncState>(
this as SyncState,
);
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return SyncStateMapper.ensureInitialized().encodeMap<SyncState>(this as SyncState); return SyncStateMapper.ensureInitialized().encodeMap<SyncState>(
this as SyncState,
);
} }
SyncStateCopyWith<SyncState, SyncState, SyncState> get copyWith => _SyncStateCopyWithImpl(this as SyncState, $identity, $identity); SyncStateCopyWith<SyncState, SyncState, SyncState> get copyWith =>
_SyncStateCopyWithImpl<SyncState, SyncState>(
this as SyncState,
$identity,
$identity,
);
@override @override
String toString() { String toString() {
return SyncStateMapper.ensureInitialized().stringifyValue(this as SyncState); return SyncStateMapper.ensureInitialized().stringifyValue(
this as SyncState,
);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return SyncStateMapper.ensureInitialized().equalsValue(this as SyncState, other); return SyncStateMapper.ensureInitialized().equalsValue(
this as SyncState,
other,
);
} }
@override @override
@@ -129,17 +184,27 @@ mixin SyncStateMappable {
} }
extension SyncStateValueCopy<$R, $Out> on ObjectCopyWith<$R, SyncState, $Out> { extension SyncStateValueCopy<$R, $Out> on ObjectCopyWith<$R, SyncState, $Out> {
SyncStateCopyWith<$R, SyncState, $Out> get $asSyncState => $base.as((v, t, t2) => _SyncStateCopyWithImpl(v, t, t2)); SyncStateCopyWith<$R, SyncState, $Out> get $asSyncState =>
$base.as((v, t, t2) => _SyncStateCopyWithImpl<$R, $Out>(v, t, t2));
} }
abstract class SyncStateCopyWith<$R, $In extends SyncState, $Out> implements ClassCopyWith<$R, $In, $Out> { abstract class SyncStateCopyWith<$R, $In extends SyncState, $Out>
StoredSecurityContextCopyWith<$R, StoredSecurityContext, StoredSecurityContext> get securityContext; implements ClassCopyWith<$R, $In, $Out> {
ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>? get networkWhitelist; StoredSecurityContextCopyWith<
ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>? get networkBlacklist; $R,
StoredSecurityContext,
StoredSecurityContext
>
get securityContext;
ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>?
get networkWhitelist;
ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>?
get networkBlacklist;
$R call({ $R call({
Future<void> Function()? init, Future<void> Function()? init,
Object? rootIsolateToken, Object? rootIsolateToken,
CustomHttpClient Function(Duration, StoredSecurityContext)? httpClientFactory, CustomHttpClient Function(Duration, StoredSecurityContext)?
httpClientFactory,
StoredSecurityContext? securityContext, StoredSecurityContext? securityContext,
DeviceInfoResult? deviceInfo, DeviceInfoResult? deviceInfo,
String? alias, String? alias,
@@ -155,27 +220,46 @@ abstract class SyncStateCopyWith<$R, $In extends SyncState, $Out> implements Cla
SyncStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); SyncStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
} }
class _SyncStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SyncState, $Out> implements SyncStateCopyWith<$R, SyncState, $Out> { class _SyncStateCopyWithImpl<$R, $Out>
extends ClassCopyWithBase<$R, SyncState, $Out>
implements SyncStateCopyWith<$R, SyncState, $Out> {
_SyncStateCopyWithImpl(super.value, super.then, super.then2); _SyncStateCopyWithImpl(super.value, super.then, super.then2);
@override @override
late final ClassMapperBase<SyncState> $mapper = SyncStateMapper.ensureInitialized(); late final ClassMapperBase<SyncState> $mapper =
SyncStateMapper.ensureInitialized();
@override @override
StoredSecurityContextCopyWith<$R, StoredSecurityContext, StoredSecurityContext> get securityContext => StoredSecurityContextCopyWith<
$R,
StoredSecurityContext,
StoredSecurityContext
>
get securityContext =>
$value.securityContext.copyWith.$chain((v) => call(securityContext: v)); $value.securityContext.copyWith.$chain((v) => call(securityContext: v));
@override @override
ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>? get networkWhitelist => $value.networkWhitelist != null ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>?
? ListCopyWith($value.networkWhitelist!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(networkWhitelist: v)) get networkWhitelist => $value.networkWhitelist != null
? ListCopyWith(
$value.networkWhitelist!,
(v, t) => ObjectCopyWith(v, $identity, t),
(v) => call(networkWhitelist: v),
)
: null; : null;
@override @override
ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>? get networkBlacklist => $value.networkBlacklist != null ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>?
? ListCopyWith($value.networkBlacklist!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(networkBlacklist: v)) get networkBlacklist => $value.networkBlacklist != null
? ListCopyWith(
$value.networkBlacklist!,
(v, t) => ObjectCopyWith(v, $identity, t),
(v) => call(networkBlacklist: v),
)
: null; : null;
@override @override
$R call({ $R call({
Future<void> Function()? init, Future<void> Function()? init,
Object? rootIsolateToken, Object? rootIsolateToken,
CustomHttpClient Function(Duration, StoredSecurityContext)? httpClientFactory, CustomHttpClient Function(Duration, StoredSecurityContext)?
httpClientFactory,
StoredSecurityContext? securityContext, StoredSecurityContext? securityContext,
DeviceInfoResult? deviceInfo, DeviceInfoResult? deviceInfo,
String? alias, String? alias,
@@ -209,7 +293,10 @@ class _SyncStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SyncState,
SyncState $make(CopyWithData data) => SyncState( SyncState $make(CopyWithData data) => SyncState(
init: data.get(#init, or: $value.init), init: data.get(#init, or: $value.init),
rootIsolateToken: data.get(#rootIsolateToken, or: $value.rootIsolateToken), rootIsolateToken: data.get(#rootIsolateToken, or: $value.rootIsolateToken),
httpClientFactory: data.get(#httpClientFactory, or: $value.httpClientFactory), httpClientFactory: data.get(
#httpClientFactory,
or: $value.httpClientFactory,
),
securityContext: data.get(#securityContext, or: $value.securityContext), securityContext: data.get(#securityContext, or: $value.securityContext),
deviceInfo: data.get(#deviceInfo, or: $value.deviceInfo), deviceInfo: data.get(#deviceInfo, or: $value.deviceInfo),
alias: data.get(#alias, or: $value.alias), alias: data.get(#alias, or: $value.alias),
@@ -224,5 +311,8 @@ class _SyncStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SyncState,
); );
@override @override
SyncStateCopyWith<$R2, SyncState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _SyncStateCopyWithImpl($value, $cast, t); SyncStateCopyWith<$R2, SyncState, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
) => _SyncStateCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
@@ -1,6 +1,8 @@
// coverage:ignore-file // coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND // GENERATED CODE - DO NOT MODIFY BY HAND
// dart format off
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: invalid_use_of_protected_member
// ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member // ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member
// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter // ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter
@@ -23,20 +25,46 @@ class ParentIsolateStateMapper extends ClassMapperBase<ParentIsolateState> {
final String id = 'ParentIsolateState'; final String id = 'ParentIsolateState';
static SyncState _$syncState(ParentIsolateState v) => v.syncState; static SyncState _$syncState(ParentIsolateState v) => v.syncState;
static const Field<ParentIsolateState, SyncState> _f$syncState = Field('syncState', _$syncState); static const Field<ParentIsolateState, SyncState> _f$syncState = Field(
static IsolateConnector<IsolateTaskStreamResult<Device>, SendToIsolateData<IsolateTask<HttpScanTask>>>? _$httpScanDiscovery(ParentIsolateState v) => 'syncState',
v.httpScanDiscovery; _$syncState,
static const Field<ParentIsolateState, IsolateConnector<IsolateTaskStreamResult<Device>, SendToIsolateData<IsolateTask<HttpScanTask>>>>
_f$httpScanDiscovery = Field('httpScanDiscovery', _$httpScanDiscovery);
static IsolateConnector<Device, SendToIsolateData<MulticastTask>>? _$multicastDiscovery(ParentIsolateState v) => v.multicastDiscovery;
static const Field<ParentIsolateState, IsolateConnector<Device, SendToIsolateData<MulticastTask>>> _f$multicastDiscovery = Field(
'multicastDiscovery',
_$multicastDiscovery,
); );
static List<IsolateConnector<IsolateTaskStreamResult<double>, SendToIsolateData<IsolateTask<BaseHttpUploadTask>>>> _$httpUpload( static IsolateConnector<
ParentIsolateState v, IsolateTaskStreamResult<Device>,
) => v.httpUpload; SendToIsolateData<IsolateTask<HttpScanTask>>
static const Field<ParentIsolateState, List<IsolateConnector<IsolateTaskStreamResult<double>, SendToIsolateData<IsolateTask<BaseHttpUploadTask>>>>> >?
_$httpScanDiscovery(ParentIsolateState v) => v.httpScanDiscovery;
static const Field<
ParentIsolateState,
IsolateConnector<
IsolateTaskStreamResult<Device>,
SendToIsolateData<IsolateTask<HttpScanTask>>
>
>
_f$httpScanDiscovery = Field('httpScanDiscovery', _$httpScanDiscovery);
static IsolateConnector<Device, SendToIsolateData<MulticastTask>>?
_$multicastDiscovery(ParentIsolateState v) => v.multicastDiscovery;
static const Field<
ParentIsolateState,
IsolateConnector<Device, SendToIsolateData<MulticastTask>>
>
_f$multicastDiscovery = Field('multicastDiscovery', _$multicastDiscovery);
static List<
IsolateConnector<
IsolateTaskStreamResult<double>,
SendToIsolateData<IsolateTask<BaseHttpUploadTask>>
>
>
_$httpUpload(ParentIsolateState v) => v.httpUpload;
static const Field<
ParentIsolateState,
List<
IsolateConnector<
IsolateTaskStreamResult<double>,
SendToIsolateData<IsolateTask<BaseHttpUploadTask>>
>
>
>
_f$httpUpload = Field('httpUpload', _$httpUpload); _f$httpUpload = Field('httpUpload', _$httpUpload);
@override @override
@@ -70,82 +98,152 @@ class ParentIsolateStateMapper extends ClassMapperBase<ParentIsolateState> {
mixin ParentIsolateStateMappable { mixin ParentIsolateStateMappable {
String serialize() { String serialize() {
return ParentIsolateStateMapper.ensureInitialized().encodeJson<ParentIsolateState>(this as ParentIsolateState); return ParentIsolateStateMapper.ensureInitialized()
.encodeJson<ParentIsolateState>(this as ParentIsolateState);
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return ParentIsolateStateMapper.ensureInitialized().encodeMap<ParentIsolateState>(this as ParentIsolateState); return ParentIsolateStateMapper.ensureInitialized()
.encodeMap<ParentIsolateState>(this as ParentIsolateState);
} }
ParentIsolateStateCopyWith<ParentIsolateState, ParentIsolateState, ParentIsolateState> get copyWith => ParentIsolateStateCopyWith<
_ParentIsolateStateCopyWithImpl(this as ParentIsolateState, $identity, $identity); ParentIsolateState,
ParentIsolateState,
ParentIsolateState
>
get copyWith =>
_ParentIsolateStateCopyWithImpl<ParentIsolateState, ParentIsolateState>(
this as ParentIsolateState,
$identity,
$identity,
);
@override @override
String toString() { String toString() {
return ParentIsolateStateMapper.ensureInitialized().stringifyValue(this as ParentIsolateState); return ParentIsolateStateMapper.ensureInitialized().stringifyValue(
this as ParentIsolateState,
);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return ParentIsolateStateMapper.ensureInitialized().equalsValue(this as ParentIsolateState, other); return ParentIsolateStateMapper.ensureInitialized().equalsValue(
this as ParentIsolateState,
other,
);
} }
@override @override
int get hashCode { int get hashCode {
return ParentIsolateStateMapper.ensureInitialized().hashValue(this as ParentIsolateState); return ParentIsolateStateMapper.ensureInitialized().hashValue(
this as ParentIsolateState,
);
} }
} }
extension ParentIsolateStateValueCopy<$R, $Out> on ObjectCopyWith<$R, ParentIsolateState, $Out> { extension ParentIsolateStateValueCopy<$R, $Out>
ParentIsolateStateCopyWith<$R, ParentIsolateState, $Out> get $asParentIsolateState => on ObjectCopyWith<$R, ParentIsolateState, $Out> {
$base.as((v, t, t2) => _ParentIsolateStateCopyWithImpl(v, t, t2)); ParentIsolateStateCopyWith<$R, ParentIsolateState, $Out>
get $asParentIsolateState => $base.as(
(v, t, t2) => _ParentIsolateStateCopyWithImpl<$R, $Out>(v, t, t2),
);
} }
abstract class ParentIsolateStateCopyWith<$R, $In extends ParentIsolateState, $Out> implements ClassCopyWith<$R, $In, $Out> { abstract class ParentIsolateStateCopyWith<
$R,
$In extends ParentIsolateState,
$Out
>
implements ClassCopyWith<$R, $In, $Out> {
SyncStateCopyWith<$R, SyncState, SyncState> get syncState; SyncStateCopyWith<$R, SyncState, SyncState> get syncState;
ListCopyWith< ListCopyWith<
$R, $R,
IsolateConnector<IsolateTaskStreamResult<double>, SendToIsolateData<IsolateTask<BaseHttpUploadTask>>>, IsolateConnector<
IsolateTaskStreamResult<double>,
SendToIsolateData<IsolateTask<BaseHttpUploadTask>>
>,
ObjectCopyWith< ObjectCopyWith<
$R, $R,
IsolateConnector<IsolateTaskStreamResult<double>, SendToIsolateData<IsolateTask<BaseHttpUploadTask>>>, IsolateConnector<
IsolateConnector<IsolateTaskStreamResult<double>, SendToIsolateData<IsolateTask<BaseHttpUploadTask>>> IsolateTaskStreamResult<double>,
SendToIsolateData<IsolateTask<BaseHttpUploadTask>>
>,
IsolateConnector<
IsolateTaskStreamResult<double>,
SendToIsolateData<IsolateTask<BaseHttpUploadTask>>
>
> >
> >
get httpUpload; get httpUpload;
$R call({ $R call({
SyncState? syncState, SyncState? syncState,
IsolateConnector<IsolateTaskStreamResult<Device>, SendToIsolateData<IsolateTask<HttpScanTask>>>? httpScanDiscovery, IsolateConnector<
IsolateConnector<Device, SendToIsolateData<MulticastTask>>? multicastDiscovery, IsolateTaskStreamResult<Device>,
List<IsolateConnector<IsolateTaskStreamResult<double>, SendToIsolateData<IsolateTask<BaseHttpUploadTask>>>>? httpUpload, SendToIsolateData<IsolateTask<HttpScanTask>>
>?
httpScanDiscovery,
IsolateConnector<Device, SendToIsolateData<MulticastTask>>?
multicastDiscovery,
List<
IsolateConnector<
IsolateTaskStreamResult<double>,
SendToIsolateData<IsolateTask<BaseHttpUploadTask>>
>
>?
httpUpload,
}); });
ParentIsolateStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); ParentIsolateStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
Then<$Out2, $R2> t,
);
} }
class _ParentIsolateStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ParentIsolateState, $Out> class _ParentIsolateStateCopyWithImpl<$R, $Out>
extends ClassCopyWithBase<$R, ParentIsolateState, $Out>
implements ParentIsolateStateCopyWith<$R, ParentIsolateState, $Out> { implements ParentIsolateStateCopyWith<$R, ParentIsolateState, $Out> {
_ParentIsolateStateCopyWithImpl(super.value, super.then, super.then2); _ParentIsolateStateCopyWithImpl(super.value, super.then, super.then2);
@override @override
late final ClassMapperBase<ParentIsolateState> $mapper = ParentIsolateStateMapper.ensureInitialized(); late final ClassMapperBase<ParentIsolateState> $mapper =
ParentIsolateStateMapper.ensureInitialized();
@override @override
SyncStateCopyWith<$R, SyncState, SyncState> get syncState => $value.syncState.copyWith.$chain((v) => call(syncState: v)); SyncStateCopyWith<$R, SyncState, SyncState> get syncState =>
$value.syncState.copyWith.$chain((v) => call(syncState: v));
@override @override
ListCopyWith< ListCopyWith<
$R, $R,
IsolateConnector<IsolateTaskStreamResult<double>, SendToIsolateData<IsolateTask<BaseHttpUploadTask>>>, IsolateConnector<
IsolateTaskStreamResult<double>,
SendToIsolateData<IsolateTask<BaseHttpUploadTask>>
>,
ObjectCopyWith< ObjectCopyWith<
$R, $R,
IsolateConnector<IsolateTaskStreamResult<double>, SendToIsolateData<IsolateTask<BaseHttpUploadTask>>>, IsolateConnector<
IsolateConnector<IsolateTaskStreamResult<double>, SendToIsolateData<IsolateTask<BaseHttpUploadTask>>> IsolateTaskStreamResult<double>,
SendToIsolateData<IsolateTask<BaseHttpUploadTask>>
>,
IsolateConnector<
IsolateTaskStreamResult<double>,
SendToIsolateData<IsolateTask<BaseHttpUploadTask>>
>
> >
> >
get httpUpload => ListCopyWith($value.httpUpload, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(httpUpload: v)); get httpUpload => ListCopyWith(
$value.httpUpload,
(v, t) => ObjectCopyWith(v, $identity, t),
(v) => call(httpUpload: v),
);
@override @override
$R call({ $R call({
SyncState? syncState, SyncState? syncState,
Object? httpScanDiscovery = $none, Object? httpScanDiscovery = $none,
Object? multicastDiscovery = $none, Object? multicastDiscovery = $none,
List<IsolateConnector<IsolateTaskStreamResult<double>, SendToIsolateData<IsolateTask<BaseHttpUploadTask>>>>? httpUpload, List<
IsolateConnector<
IsolateTaskStreamResult<double>,
SendToIsolateData<IsolateTask<BaseHttpUploadTask>>
>
>?
httpUpload,
}) => $apply( }) => $apply(
FieldCopyWithData({ FieldCopyWithData({
if (syncState != null) #syncState: syncState, if (syncState != null) #syncState: syncState,
@@ -157,12 +255,20 @@ class _ParentIsolateStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Pa
@override @override
ParentIsolateState $make(CopyWithData data) => ParentIsolateState( ParentIsolateState $make(CopyWithData data) => ParentIsolateState(
syncState: data.get(#syncState, or: $value.syncState), syncState: data.get(#syncState, or: $value.syncState),
httpScanDiscovery: data.get(#httpScanDiscovery, or: $value.httpScanDiscovery), httpScanDiscovery: data.get(
multicastDiscovery: data.get(#multicastDiscovery, or: $value.multicastDiscovery), #httpScanDiscovery,
or: $value.httpScanDiscovery,
),
multicastDiscovery: data.get(
#multicastDiscovery,
or: $value.multicastDiscovery,
),
httpUpload: data.get(#httpUpload, or: $value.httpUpload), httpUpload: data.get(#httpUpload, or: $value.httpUpload),
); );
@override @override
ParentIsolateStateCopyWith<$R2, ParentIsolateState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => ParentIsolateStateCopyWith<$R2, ParentIsolateState, $Out2> $chain<$R2, $Out2>(
_ParentIsolateStateCopyWithImpl($value, $cast, t); Then<$Out2, $R2> t,
) => _ParentIsolateStateCopyWithImpl<$R2, $Out2>($value, $cast, t);
} }
+1 -1
View File
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.11.1. // @generated by `flutter_rust_bridge`@ 2.12.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
+1 -1
View File
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.11.1. // @generated by `flutter_rust_bridge`@ 2.12.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
+1 -1
View File
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.11.1. // @generated by `flutter_rust_bridge`@ 2.12.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
+1 -1
View File
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.11.1. // @generated by `flutter_rust_bridge`@ 2.12.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
+1 -1
View File
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.11.1. // @generated by `flutter_rust_bridge`@ 2.12.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
+1 -1
View File
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.11.1. // @generated by `flutter_rust_bridge`@ 2.12.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
+3 -2
View File
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.11.1. // @generated by `flutter_rust_bridge`@ 2.12.0.
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
@@ -68,7 +68,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
ExternalLibraryLoaderConfig get defaultExternalLibraryLoaderConfig => kDefaultExternalLibraryLoaderConfig; ExternalLibraryLoaderConfig get defaultExternalLibraryLoaderConfig => kDefaultExternalLibraryLoaderConfig;
@override @override
String get codegenVersion => '2.11.1'; String get codegenVersion => '2.12.0';
@override @override
int get rustContentHash => -137920352; int get rustContentHash => -137920352;
@@ -77,6 +77,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
stem: 'rust_lib_localsend_app', stem: 'rust_lib_localsend_app',
ioDirectory: 'rust/target/release/', ioDirectory: 'rust/target/release/',
webPrefix: 'pkg/', webPrefix: 'pkg/',
wasmBindgenName: 'wasm_bindgen',
); );
} }
+1 -1
View File
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.11.1. // @generated by `flutter_rust_bridge`@ 2.12.0.
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
+1 -1
View File
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.11.1. // @generated by `flutter_rust_bridge`@ 2.12.0.
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
+4 -4
View File
@@ -568,10 +568,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: flutter_rust_bridge name: flutter_rust_bridge
sha256: "37ef40bc6f863652e865f0b2563ea07f0d3c58d8efad803cc01933a4b2ee067e" sha256: e87d6b9ee934dcd24a128ccb2bd91905d2d5fe5c06245d6a8f5477d4907a437a
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.11.1" version: "2.12.0"
flutter_test: flutter_test:
dependency: transitive dependency: transitive
description: flutter description: flutter
@@ -1404,10 +1404,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: rhttp name: rhttp
sha256: e8f0a8756a931598b7d9c4107a4afe93c2b81cbf8c45e532ba9dc52e12bbaa35 sha256: "954d5a9aa5a4f1e2a8612e8cb9ecbe4fc0826fcbf0406f40115573e2e92b7dde"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.13.0" version: "0.18.0"
routerino: routerino:
dependency: "direct main" dependency: "direct main"
description: description:
+2 -2
View File
@@ -28,7 +28,7 @@ dependencies:
flutter_localizations: flutter_localizations:
sdk: flutter sdk: flutter
flutter_markdown: 0.7.7+1 flutter_markdown: 0.7.7+1
flutter_rust_bridge: 2.11.1 flutter_rust_bridge: 2.12.0
freezed_annotation: 3.1.0 freezed_annotation: 3.1.0
gal: 2.3.2 gal: 2.3.2
glob: 2.1.3 glob: 2.1.3
@@ -56,7 +56,7 @@ dependencies:
pretty_qr_code: 3.6.0 pretty_qr_code: 3.6.0
refena_flutter: 3.2.1 refena_flutter: 3.2.1
refena_inspector_client: 2.1.1 refena_inspector_client: 2.1.1
rhttp: 0.13.0 rhttp: 0.18.0
routerino: 0.8.1 routerino: 0.8.1
rust_lib_localsend_app: rust_lib_localsend_app:
path: rust_builder path: rust_builder
+469 -701
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -9,9 +9,10 @@ crate-type = ["cdylib", "staticlib"]
[dependencies] [dependencies]
anyhow = "1.0" anyhow = "1.0"
bytes = "1.9" bytes = "1.9"
flutter_rust_bridge = { version = "=2.11.1", features = ["uuid"] } flutter_rust_bridge = { version = "=2.12.0", features = ["uuid"] }
localsend = { path = "../../packages/core", features = ["full"] } localsend = { path = "../../packages/core", features = ["full"] }
tokio = { version = "1.49", features = ["full"] } tokio = { version = "1.49", features = ["full"] }
tokio-util = "0.7.16"
tracing = "0.1.44" tracing = "0.1.44"
tracing-subscriber = { version = "0.3.22" } tracing-subscriber = { version = "0.3.22" }
uuid = { version = "1.11.1", features = ["v4"] } uuid = { version = "1.11.1", features = ["v4"] }
+3 -1
View File
@@ -80,7 +80,8 @@ impl RsHttpClient {
session_id, session_id,
file_id, file_id,
token, token,
binary.receiver, localsend::model::transfer::FileContent::Stream(binary.receiver),
tokio_util::sync::CancellationToken::new(),
) )
.await .await
.map_err(RsHttpClientError::from)?; .map_err(RsHttpClientError::from)?;
@@ -126,6 +127,7 @@ impl From<ClientError> for RsHttpClientError {
ClientError::Json(e) => RsHttpClientError::Json(e.to_string()), ClientError::Json(e) => RsHttpClientError::Json(e.to_string()),
ClientError::Io(e) => RsHttpClientError::Io(e.to_string()), ClientError::Io(e) => RsHttpClientError::Io(e.to_string()),
ClientError::Other(e) => RsHttpClientError::Other(e.to_string()), ClientError::Other(e) => RsHttpClientError::Other(e.to_string()),
ClientError::Cancelled => RsHttpClientError::Other("Upload cancelled".to_string()),
} }
} }
} }
+4 -3
View File
@@ -1,11 +1,12 @@
use bytes::Bytes;
use tokio::sync::mpsc; use tokio::sync::mpsc;
pub struct Dart2RustStreamSink { pub struct Dart2RustStreamSink {
sender: mpsc::Sender<Vec<u8>>, sender: mpsc::Sender<Bytes>,
} }
pub struct Dart2RustStreamReceiver { pub struct Dart2RustStreamReceiver {
pub(crate) receiver: mpsc::Receiver<Vec<u8>>, pub(crate) receiver: mpsc::Receiver<Bytes>,
} }
pub fn create_stream() -> (Dart2RustStreamSink, Dart2RustStreamReceiver) { pub fn create_stream() -> (Dart2RustStreamSink, Dart2RustStreamReceiver) {
@@ -21,7 +22,7 @@ pub fn create_stream() -> (Dart2RustStreamSink, Dart2RustStreamReceiver) {
impl Dart2RustStreamSink { impl Dart2RustStreamSink {
pub async fn add(&mut self, data: Vec<u8>) -> Result<(), String> { pub async fn add(&mut self, data: Vec<u8>) -> Result<(), String> {
self.sender self.sender
.send(data) .send(Bytes::from(data))
.await .await
.map_err(|_| "Failed to send data".to_string()) .map_err(|_| "Failed to send data".to_string())
} }
+11 -10
View File
@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.11.1. // @generated by `flutter_rust_bridge`@ 2.12.0.
#![allow( #![allow(
non_camel_case_types, non_camel_case_types,
@@ -20,6 +20,7 @@
clippy::deref_addrof, clippy::deref_addrof,
clippy::explicit_auto_deref, clippy::explicit_auto_deref,
clippy::borrow_deref_ref, clippy::borrow_deref_ref,
clippy::uninlined_format_args,
clippy::needless_borrow clippy::needless_borrow
)] )]
@@ -39,7 +40,7 @@ flutter_rust_bridge::frb_generated_boilerplate!(
default_rust_opaque = RustOpaqueMoi, default_rust_opaque = RustOpaqueMoi,
default_rust_auto_opaque = RustAutoOpaqueMoi, default_rust_auto_opaque = RustAutoOpaqueMoi,
); );
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.11.1"; pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.12.0";
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = -137920352; pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = -137920352;
// Section: executor // Section: executor
@@ -2345,7 +2346,7 @@ impl SseDecode for Vec<String> {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
let mut len_ = <i32>::sse_decode(deserializer); let mut len_ = <i32>::sse_decode(deserializer);
let mut ans_ = vec![]; let mut ans_ = Vec::with_capacity(len_ as usize);
for idx_ in 0..len_ { for idx_ in 0..len_ {
ans_.push(<String>::sse_decode(deserializer)); ans_.push(<String>::sse_decode(deserializer));
} }
@@ -2357,7 +2358,7 @@ impl SseDecode for Vec<crate::api::webrtc::ClientInfo> {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
let mut len_ = <i32>::sse_decode(deserializer); let mut len_ = <i32>::sse_decode(deserializer);
let mut ans_ = vec![]; let mut ans_ = Vec::with_capacity(len_ as usize);
for idx_ in 0..len_ { for idx_ in 0..len_ {
ans_.push(<crate::api::webrtc::ClientInfo>::sse_decode(deserializer)); ans_.push(<crate::api::webrtc::ClientInfo>::sse_decode(deserializer));
} }
@@ -2369,7 +2370,7 @@ impl SseDecode for Vec<crate::api::model::FileDto> {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
let mut len_ = <i32>::sse_decode(deserializer); let mut len_ = <i32>::sse_decode(deserializer);
let mut ans_ = vec![]; let mut ans_ = Vec::with_capacity(len_ as usize);
for idx_ in 0..len_ { for idx_ in 0..len_ {
ans_.push(<crate::api::model::FileDto>::sse_decode(deserializer)); ans_.push(<crate::api::model::FileDto>::sse_decode(deserializer));
} }
@@ -2381,7 +2382,7 @@ impl SseDecode for Vec<u8> {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
let mut len_ = <i32>::sse_decode(deserializer); let mut len_ = <i32>::sse_decode(deserializer);
let mut ans_ = vec![]; let mut ans_ = Vec::with_capacity(len_ as usize);
for idx_ in 0..len_ { for idx_ in 0..len_ {
ans_.push(<u8>::sse_decode(deserializer)); ans_.push(<u8>::sse_decode(deserializer));
} }
@@ -2393,7 +2394,7 @@ impl SseDecode for Vec<(String, crate::api::model::FileDto)> {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
let mut len_ = <i32>::sse_decode(deserializer); let mut len_ = <i32>::sse_decode(deserializer);
let mut ans_ = vec![]; let mut ans_ = Vec::with_capacity(len_ as usize);
for idx_ in 0..len_ { for idx_ in 0..len_ {
ans_.push(<(String, crate::api::model::FileDto)>::sse_decode( ans_.push(<(String, crate::api::model::FileDto)>::sse_decode(
deserializer, deserializer,
@@ -2407,7 +2408,7 @@ impl SseDecode for Vec<(String, String)> {
// Codec=Sse (Serialization based), see doc to use other codecs // Codec=Sse (Serialization based), see doc to use other codecs
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
let mut len_ = <i32>::sse_decode(deserializer); let mut len_ = <i32>::sse_decode(deserializer);
let mut ans_ = vec![]; let mut ans_ = Vec::with_capacity(len_ as usize);
for idx_ in 0..len_ { for idx_ in 0..len_ {
ans_.push(<(String, String)>::sse_decode(deserializer)); ans_.push(<(String, String)>::sse_decode(deserializer));
} }
@@ -4503,7 +4504,7 @@ impl SseEncode for crate::api::webrtc::WsServerSdpMessage {
#[cfg(not(target_family = "wasm"))] #[cfg(not(target_family = "wasm"))]
mod io { mod io {
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.11.1. // @generated by `flutter_rust_bridge`@ 2.12.0.
// Section: imports // Section: imports
@@ -4640,7 +4641,7 @@ pub use io::*;
#[cfg(target_family = "wasm")] #[cfg(target_family = "wasm")]
mod web { mod web {
// This file is automatically generated, so please do not edit it. // This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.11.1. // @generated by `flutter_rust_bridge`@ 2.12.0.
// Section: imports // Section: imports
+1 -1
View File
@@ -5,9 +5,9 @@
// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4; import 'dart:async' as _i4;
import 'package:flutter/material.dart' as _i8;
import 'package:localsend_app/common/model/device.dart' as _i12; import 'package:localsend_app/common/model/device.dart' as _i12;
import 'package:localsend_app/common/model/stored_security_context.dart' as _i2; import 'package:localsend_app/common/model/stored_security_context.dart' as _i2;
import 'package:flutter/material.dart' as _i8;
import 'package:localsend_app/gen/strings.g.dart' as _i10; import 'package:localsend_app/gen/strings.g.dart' as _i10;
import 'package:localsend_app/model/persistence/color_mode.dart' as _i9; import 'package:localsend_app/model/persistence/color_mode.dart' as _i9;
import 'package:localsend_app/model/persistence/favorite_device.dart' as _i6; import 'package:localsend_app/model/persistence/favorite_device.dart' as _i6;