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