mirror of
https://github.com/localsend/localsend.git
synced 2026-06-23 04:10:07 +00:00
feat: keep timestamps of transferred files (#1505)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
- feat: add clear button in the send tab (@Caesarovich)
|
||||
- feat: save text messages to history (@Tienisto)
|
||||
- feat: keep timestamps of transferred files (@Tienisto)
|
||||
- feat: add option to require PIN when sharing via link (@Tienisto)
|
||||
- feat: add option to require PIN when receiving files (@Tienisto)
|
||||
- feat: add option to open parent folder of received files in history (@Tienisto)
|
||||
|
||||
@@ -17,6 +17,8 @@ class CrossFile with CrossFileMappable {
|
||||
final AssetEntity? asset; // for thumbnails
|
||||
final String? path;
|
||||
final List<int>? bytes; // if type message, then UTF-8 encoded
|
||||
final DateTime? lastModified;
|
||||
final DateTime? lastAccessed;
|
||||
|
||||
const CrossFile({
|
||||
required this.name,
|
||||
@@ -26,6 +28,8 @@ class CrossFile with CrossFileMappable {
|
||||
required this.asset,
|
||||
required this.path,
|
||||
required this.bytes,
|
||||
required this.lastModified,
|
||||
required this.lastAccessed,
|
||||
});
|
||||
|
||||
/// Custom toString() to avoid printing the bytes.
|
||||
|
||||
@@ -35,6 +35,10 @@ class CrossFileMapper extends ClassMapperBase<CrossFile> {
|
||||
static const Field<CrossFile, String> _f$path = Field('path', _$path);
|
||||
static List<int>? _$bytes(CrossFile v) => v.bytes;
|
||||
static const Field<CrossFile, List<int>> _f$bytes = Field('bytes', _$bytes);
|
||||
static DateTime? _$lastModified(CrossFile v) => v.lastModified;
|
||||
static const Field<CrossFile, DateTime> _f$lastModified = Field('lastModified', _$lastModified);
|
||||
static DateTime? _$lastAccessed(CrossFile v) => v.lastAccessed;
|
||||
static const Field<CrossFile, DateTime> _f$lastAccessed = Field('lastAccessed', _$lastAccessed);
|
||||
|
||||
@override
|
||||
final MappableFields<CrossFile> fields = const {
|
||||
@@ -45,6 +49,8 @@ class CrossFileMapper extends ClassMapperBase<CrossFile> {
|
||||
#asset: _f$asset,
|
||||
#path: _f$path,
|
||||
#bytes: _f$bytes,
|
||||
#lastModified: _f$lastModified,
|
||||
#lastAccessed: _f$lastAccessed,
|
||||
};
|
||||
|
||||
static CrossFile _instantiate(DecodingData data) {
|
||||
@@ -55,7 +61,9 @@ class CrossFileMapper extends ClassMapperBase<CrossFile> {
|
||||
thumbnail: data.dec(_f$thumbnail),
|
||||
asset: data.dec(_f$asset),
|
||||
path: data.dec(_f$path),
|
||||
bytes: data.dec(_f$bytes));
|
||||
bytes: data.dec(_f$bytes),
|
||||
lastModified: data.dec(_f$lastModified),
|
||||
lastAccessed: data.dec(_f$lastAccessed));
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -102,7 +110,16 @@ extension CrossFileValueCopy<$R, $Out> on ObjectCopyWith<$R, CrossFile, $Out> {
|
||||
|
||||
abstract class CrossFileCopyWith<$R, $In extends CrossFile, $Out> implements ClassCopyWith<$R, $In, $Out> {
|
||||
ListCopyWith<$R, int, ObjectCopyWith<$R, int, int>>? get bytes;
|
||||
$R call({String? name, FileType? fileType, int? size, Uint8List? thumbnail, AssetEntity? asset, String? path, List<int>? bytes});
|
||||
$R call(
|
||||
{String? name,
|
||||
FileType? fileType,
|
||||
int? size,
|
||||
Uint8List? thumbnail,
|
||||
AssetEntity? asset,
|
||||
String? path,
|
||||
List<int>? bytes,
|
||||
DateTime? lastModified,
|
||||
DateTime? lastAccessed});
|
||||
CrossFileCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
|
||||
}
|
||||
|
||||
@@ -122,7 +139,9 @@ class _CrossFileCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, CrossFile,
|
||||
Object? thumbnail = $none,
|
||||
Object? asset = $none,
|
||||
Object? path = $none,
|
||||
Object? bytes = $none}) =>
|
||||
Object? bytes = $none,
|
||||
Object? lastModified = $none,
|
||||
Object? lastAccessed = $none}) =>
|
||||
$apply(FieldCopyWithData({
|
||||
if (name != null) #name: name,
|
||||
if (fileType != null) #fileType: fileType,
|
||||
@@ -130,7 +149,9 @@ class _CrossFileCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, CrossFile,
|
||||
if (thumbnail != $none) #thumbnail: thumbnail,
|
||||
if (asset != $none) #asset: asset,
|
||||
if (path != $none) #path: path,
|
||||
if (bytes != $none) #bytes: bytes
|
||||
if (bytes != $none) #bytes: bytes,
|
||||
if (lastModified != $none) #lastModified: lastModified,
|
||||
if (lastAccessed != $none) #lastAccessed: lastAccessed
|
||||
}));
|
||||
@override
|
||||
CrossFile $make(CopyWithData data) => CrossFile(
|
||||
@@ -140,7 +161,9 @@ class _CrossFileCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, CrossFile,
|
||||
thumbnail: data.get(#thumbnail, or: $value.thumbnail),
|
||||
asset: data.get(#asset, or: $value.asset),
|
||||
path: data.get(#path, or: $value.path),
|
||||
bytes: data.get(#bytes, or: $value.bytes));
|
||||
bytes: data.get(#bytes, or: $value.bytes),
|
||||
lastModified: data.get(#lastModified, or: $value.lastModified),
|
||||
lastAccessed: data.get(#lastAccessed, or: $value.lastAccessed));
|
||||
|
||||
@override
|
||||
CrossFileCopyWith<$R2, CrossFile, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _CrossFileCopyWithImpl($value, $cast, t);
|
||||
|
||||
@@ -78,6 +78,12 @@ class SendNotifier extends Notifier<Map<String, SendSessionState>> {
|
||||
preview: files.length == 1 && files.first.fileType == FileType.text && files.first.bytes != null
|
||||
? utf8.decode(files.first.bytes!) // send simple message by embedding it into the preview
|
||||
: null,
|
||||
metadata: file.lastModified != null || file.lastAccessed != null
|
||||
? FileMetadata(
|
||||
lastModified: file.lastModified,
|
||||
lastAccessed: file.lastAccessed,
|
||||
)
|
||||
: null,
|
||||
legacy: target.version == '1.0',
|
||||
),
|
||||
status: FileStatus.queue,
|
||||
|
||||
@@ -445,6 +445,8 @@ class ReceiveController {
|
||||
isImage: fileType == FileType.image,
|
||||
stream: request.read(),
|
||||
androidSdkInt: server.ref.read(deviceInfoProvider).androidSdkInt,
|
||||
lastModified: receivingFile.file.metadata?.lastModified,
|
||||
lastAccessed: receivingFile.file.metadata?.lastAccessed,
|
||||
onProgress: (savedBytes) {
|
||||
if (receivingFile.file.size != 0) {
|
||||
server.ref.notifier(progressProvider).setProgress(
|
||||
|
||||
@@ -247,6 +247,12 @@ class SendController {
|
||||
preview: files.first.fileType == FileType.text && files.first.bytes != null
|
||||
? utf8.decode(files.first.bytes!) // send simple message by embedding it into the preview
|
||||
: null,
|
||||
metadata: file.lastModified != null || file.lastAccessed != null
|
||||
? FileMetadata(
|
||||
lastModified: file.lastModified,
|
||||
lastAccessed: file.lastAccessed,
|
||||
)
|
||||
: null,
|
||||
legacy: false,
|
||||
),
|
||||
asset: file.asset,
|
||||
|
||||
@@ -49,6 +49,8 @@ class AddMessageAction extends ReduxAction<SelectedSendingFilesNotifier, List<Cr
|
||||
asset: null,
|
||||
path: null,
|
||||
bytes: bytes,
|
||||
lastModified: null,
|
||||
lastAccessed: null,
|
||||
);
|
||||
|
||||
return List.unmodifiable([
|
||||
@@ -98,6 +100,8 @@ class AddBinaryAction extends ReduxAction<SelectedSendingFilesNotifier, List<Cro
|
||||
asset: null,
|
||||
path: null,
|
||||
bytes: bytes,
|
||||
lastModified: null,
|
||||
lastAccessed: null,
|
||||
);
|
||||
|
||||
return List.unmodifiable([
|
||||
@@ -160,6 +164,8 @@ class AddDirectoryAction extends AsyncReduxAction<SelectedSendingFilesNotifier,
|
||||
asset: null,
|
||||
path: entity.path,
|
||||
bytes: null,
|
||||
lastModified: entity.lastModifiedSync().toUtc(),
|
||||
lastAccessed: entity.lastAccessedSync().toUtc(),
|
||||
);
|
||||
|
||||
final isAlreadySelect = state.any((element) => element.isSameFile(otherFile: file));
|
||||
@@ -219,6 +225,8 @@ class AddAndroidDirectoryAction extends AsyncReduxAction<SelectedSendingFilesNot
|
||||
asset: null,
|
||||
path: file.uri,
|
||||
bytes: null,
|
||||
lastModified: DateTime.fromMillisecondsSinceEpoch(file.lastModified, isUtc: true),
|
||||
lastAccessed: null,
|
||||
);
|
||||
|
||||
final isAlreadySelect = state.any((element) => element.isSameFile(otherFile: crossFile));
|
||||
|
||||
@@ -2,7 +2,6 @@ import 'dart:io';
|
||||
|
||||
import 'package:common/common.dart';
|
||||
import 'package:device_apps/device_apps.dart';
|
||||
import 'package:file_picker/file_picker.dart' as file_picker;
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
import 'package:localsend_app/model/cross_file.dart';
|
||||
@@ -13,18 +12,6 @@ import 'package:wechat_assets_picker/wechat_assets_picker.dart';
|
||||
|
||||
/// Utility functions to convert third party models to common [CrossFile] model.
|
||||
class CrossFileConverters {
|
||||
static Future<CrossFile> convertPlatformFile(file_picker.PlatformFile file) async {
|
||||
return CrossFile(
|
||||
name: file.name,
|
||||
fileType: file.name.guessFileType(),
|
||||
size: file.size,
|
||||
thumbnail: null,
|
||||
asset: null,
|
||||
path: kIsWeb ? null : file.path,
|
||||
bytes: kIsWeb ? file.bytes! : null,
|
||||
);
|
||||
}
|
||||
|
||||
static Future<CrossFile> convertAssetEntity(AssetEntity asset) async {
|
||||
final file = (await asset.originFile)!;
|
||||
return CrossFile(
|
||||
@@ -35,6 +22,8 @@ class CrossFileConverters {
|
||||
asset: asset,
|
||||
path: file.path,
|
||||
bytes: null,
|
||||
lastModified: file.lastModifiedSync().toUtc(),
|
||||
lastAccessed: file.lastAccessedSync().toUtc(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -47,6 +36,8 @@ class CrossFileConverters {
|
||||
asset: null,
|
||||
path: kIsWeb ? null : file.path,
|
||||
bytes: kIsWeb ? await file.readAsBytes() : null, // we can fetch it now because in Web it is already there
|
||||
lastModified: kIsWeb ? null : await file.lastModified(),
|
||||
lastAccessed: null,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -59,6 +50,8 @@ class CrossFileConverters {
|
||||
asset: null,
|
||||
path: file.path,
|
||||
bytes: null,
|
||||
lastModified: file.lastModifiedSync().toUtc(),
|
||||
lastAccessed: file.lastAccessedSync().toUtc(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -71,6 +64,8 @@ class CrossFileConverters {
|
||||
asset: null,
|
||||
path: file.uri,
|
||||
bytes: null,
|
||||
lastModified: DateTime.fromMillisecondsSinceEpoch(file.lastModified, isUtc: true),
|
||||
lastAccessed: null,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -85,6 +80,8 @@ class CrossFileConverters {
|
||||
asset: null,
|
||||
path: file.path,
|
||||
bytes: null,
|
||||
lastModified: file.lastModifiedSync().toUtc(),
|
||||
lastAccessed: file.lastAccessedSync().toUtc(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -98,6 +95,8 @@ class CrossFileConverters {
|
||||
asset: null,
|
||||
path: app.apkFilePath,
|
||||
bytes: null,
|
||||
lastModified: null,
|
||||
lastAccessed: null,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,8 @@ Future<void> saveFile({
|
||||
required bool isImage,
|
||||
required Stream<List<int>> stream,
|
||||
required int? androidSdkInt,
|
||||
required DateTime? lastModified,
|
||||
required DateTime? lastAccessed,
|
||||
required void Function(int savedBytes) onProgress,
|
||||
}) async {
|
||||
if (!saveToGallery && androidSdkInt != null && androidSdkInt <= 29) {
|
||||
@@ -51,7 +53,8 @@ Future<void> saveFile({
|
||||
}
|
||||
}
|
||||
|
||||
final sink = File(destinationPath).openWrite();
|
||||
final file = File(destinationPath);
|
||||
final sink = file.openWrite();
|
||||
await _saveFile(
|
||||
destinationPath: destinationPath,
|
||||
saveToGallery: saveToGallery,
|
||||
@@ -60,7 +63,19 @@ Future<void> saveFile({
|
||||
onProgress: onProgress,
|
||||
write: sink.add,
|
||||
writeAsync: null,
|
||||
close: sink.close,
|
||||
close: () async {
|
||||
await sink.close();
|
||||
if (lastModified != null) {
|
||||
try {
|
||||
await file.setLastModified(lastModified);
|
||||
} catch (_) {}
|
||||
}
|
||||
if (lastAccessed != null) {
|
||||
try {
|
||||
await file.setLastAccessed(lastAccessed);
|
||||
} catch (_) {}
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -156,6 +156,7 @@ void main() {
|
||||
hash: '*hash*',
|
||||
preview: '*preview data*',
|
||||
legacy: true,
|
||||
metadata: null,
|
||||
),
|
||||
'some id 2': FileDto(
|
||||
id: 'some id 2',
|
||||
@@ -165,6 +166,7 @@ void main() {
|
||||
hash: '*hash*',
|
||||
preview: '*preview data*',
|
||||
legacy: true,
|
||||
metadata: null,
|
||||
),
|
||||
},
|
||||
);
|
||||
@@ -176,10 +178,10 @@ void main() {
|
||||
});
|
||||
|
||||
test('should serialize in mime mode', () {
|
||||
const dto = PrepareUploadRequestDto(
|
||||
final dto = PrepareUploadRequestDto(
|
||||
info: info,
|
||||
files: {
|
||||
'some id': FileDto(
|
||||
'some id': const FileDto(
|
||||
id: 'some id',
|
||||
fileName: 'another image.jpg',
|
||||
size: 1234,
|
||||
@@ -187,6 +189,7 @@ void main() {
|
||||
hash: '*hash*',
|
||||
preview: '*preview data*',
|
||||
legacy: false,
|
||||
metadata: null,
|
||||
),
|
||||
'some id 2': FileDto(
|
||||
id: 'some id 2',
|
||||
@@ -196,6 +199,10 @@ void main() {
|
||||
hash: '*hash*',
|
||||
preview: '*preview data*',
|
||||
legacy: false,
|
||||
metadata: FileMetadata(
|
||||
lastModified: DateTime.utc(2020),
|
||||
lastAccessed: DateTime.utc(2021),
|
||||
),
|
||||
),
|
||||
},
|
||||
);
|
||||
@@ -205,6 +212,10 @@ void main() {
|
||||
expect(serialized['files'].length, 2);
|
||||
expect(serialized['files']['some id']['fileType'], 'image/jpeg');
|
||||
expect(serialized['files']['some id 2']['fileType'], 'application/vnd.android.package-archive');
|
||||
expect(serialized['files']['some id 2']['metadata'], {
|
||||
'modified': '2020-01-01T00:00:00.000Z',
|
||||
'accessed': '2021-01-01T00:00:00.000Z',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -88,16 +88,13 @@ 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);
|
||||
|
||||
@@ -148,8 +145,7 @@ 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(this as Device, $identity, $identity);
|
||||
@override
|
||||
String toString() {
|
||||
return DeviceMapper.ensureInitialized().stringifyValue(this as Device);
|
||||
@@ -167,12 +163,10 @@ 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(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? ip,
|
||||
String? version,
|
||||
@@ -186,8 +180,7 @@ abstract class DeviceCopyWith<$R, $In extends Device, $Out>
|
||||
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
|
||||
@@ -227,6 +220,5 @@ class _DeviceCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Device, $Out>
|
||||
download: data.get(#download, or: $value.download));
|
||||
|
||||
@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($value, $cast, t);
|
||||
}
|
||||
|
||||
@@ -3,6 +3,22 @@ import 'package:common/src/model/file_type.dart';
|
||||
import 'package:dart_mappable/dart_mappable.dart';
|
||||
import 'package:mime/mime.dart';
|
||||
|
||||
part 'file_dto.mapper.dart';
|
||||
|
||||
@MappableClass(ignoreNull: true)
|
||||
class FileMetadata with FileMetadataMappable {
|
||||
@MappableField(key: 'modified')
|
||||
final DateTime? lastModified;
|
||||
|
||||
@MappableField(key: 'accessed')
|
||||
final DateTime? lastAccessed;
|
||||
|
||||
const FileMetadata({
|
||||
required this.lastModified,
|
||||
required this.lastAccessed,
|
||||
});
|
||||
}
|
||||
|
||||
/// The file DTO that is sent between server and client.
|
||||
class FileDto {
|
||||
final String id; // unique inside session
|
||||
@@ -11,6 +27,7 @@ class FileDto {
|
||||
final FileType fileType;
|
||||
final String? hash;
|
||||
final String? preview;
|
||||
final FileMetadata? metadata;
|
||||
|
||||
/// This is only used internally to determine if fileType is a mime type or a legacy enum.
|
||||
/// It is not serialized.
|
||||
@@ -24,6 +41,7 @@ class FileDto {
|
||||
required this.hash,
|
||||
required this.preview,
|
||||
required this.legacy,
|
||||
required this.metadata,
|
||||
});
|
||||
|
||||
String lookupMime() => lookupMimeType(fileName) ?? 'application/octet-stream';
|
||||
@@ -81,6 +99,10 @@ class FileDtoMapper extends SimpleMapper<FileDto> {
|
||||
hash: map['hash'] as String?,
|
||||
preview: map['preview'] as String?,
|
||||
legacy: false,
|
||||
metadata: switch (map['metadata']) {
|
||||
Map<String, dynamic> metadata => FileMetadataMapper.fromJson(metadata),
|
||||
_ => null,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -93,6 +115,7 @@ class FileDtoMapper extends SimpleMapper<FileDto> {
|
||||
'fileType': self.legacy ? self.fileType.name : self.lookupMime(),
|
||||
if (self.hash != null) 'hash': self.hash,
|
||||
if (self.preview != null) 'preview': self.preview,
|
||||
if (self.metadata != null) 'metadata': self.metadata!.toJson(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
// coverage:ignore-file
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint
|
||||
// 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 'file_dto.dart';
|
||||
|
||||
class FileMetadataMapper extends ClassMapperBase<FileMetadata> {
|
||||
FileMetadataMapper._();
|
||||
|
||||
static FileMetadataMapper? _instance;
|
||||
static FileMetadataMapper ensureInitialized() {
|
||||
if (_instance == null) {
|
||||
MapperContainer.globals.use(_instance = FileMetadataMapper._());
|
||||
}
|
||||
return _instance!;
|
||||
}
|
||||
|
||||
@override
|
||||
final String id = 'FileMetadata';
|
||||
|
||||
static DateTime? _$lastModified(FileMetadata v) => v.lastModified;
|
||||
static const Field<FileMetadata, DateTime> _f$lastModified = Field('lastModified', _$lastModified, key: 'modified');
|
||||
static DateTime? _$lastAccessed(FileMetadata v) => v.lastAccessed;
|
||||
static const Field<FileMetadata, DateTime> _f$lastAccessed = Field('lastAccessed', _$lastAccessed, key: 'accessed');
|
||||
|
||||
@override
|
||||
final MappableFields<FileMetadata> fields = const {
|
||||
#lastModified: _f$lastModified,
|
||||
#lastAccessed: _f$lastAccessed,
|
||||
};
|
||||
@override
|
||||
final bool ignoreNull = true;
|
||||
|
||||
static FileMetadata _instantiate(DecodingData data) {
|
||||
return FileMetadata(lastModified: data.dec(_f$lastModified), lastAccessed: data.dec(_f$lastAccessed));
|
||||
}
|
||||
|
||||
@override
|
||||
final Function instantiate = _instantiate;
|
||||
|
||||
static FileMetadata fromJson(Map<String, dynamic> map) {
|
||||
return ensureInitialized().decodeMap<FileMetadata>(map);
|
||||
}
|
||||
|
||||
static FileMetadata deserialize(String json) {
|
||||
return ensureInitialized().decodeJson<FileMetadata>(json);
|
||||
}
|
||||
}
|
||||
|
||||
mixin FileMetadataMappable {
|
||||
String serialize() {
|
||||
return FileMetadataMapper.ensureInitialized().encodeJson<FileMetadata>(this as FileMetadata);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return FileMetadataMapper.ensureInitialized().encodeMap<FileMetadata>(this as FileMetadata);
|
||||
}
|
||||
|
||||
FileMetadataCopyWith<FileMetadata, FileMetadata, FileMetadata> get copyWith =>
|
||||
_FileMetadataCopyWithImpl(this as FileMetadata, $identity, $identity);
|
||||
@override
|
||||
String toString() {
|
||||
return FileMetadataMapper.ensureInitialized().stringifyValue(this as FileMetadata);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return FileMetadataMapper.ensureInitialized().equalsValue(this as FileMetadata, other);
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
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));
|
||||
}
|
||||
|
||||
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> {
|
||||
_FileMetadataCopyWithImpl(super.value, super.then, super.then2);
|
||||
|
||||
@override
|
||||
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}));
|
||||
@override
|
||||
FileMetadata $make(CopyWithData data) =>
|
||||
FileMetadata(lastModified: data.get(#lastModified, or: $value.lastModified), lastAccessed: data.get(#lastAccessed, or: $value.lastAccessed));
|
||||
|
||||
@override
|
||||
FileMetadataCopyWith<$R2, FileMetadata, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _FileMetadataCopyWithImpl($value, $cast, t);
|
||||
}
|
||||
@@ -26,14 +26,11 @@ 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);
|
||||
|
||||
@@ -71,17 +68,14 @@ 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(this as InfoDto, $identity, $identity);
|
||||
@override
|
||||
String toString() {
|
||||
return InfoDtoMapper.ensureInitialized().stringifyValue(this as InfoDto);
|
||||
@@ -89,8 +83,7 @@ mixin InfoDtoMappable {
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return InfoDtoMapper.ensureInitialized()
|
||||
.equalsValue(this as InfoDto, other);
|
||||
return InfoDtoMapper.ensureInitialized().equalsValue(this as InfoDto, other);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -100,30 +93,19 @@ 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(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,
|
||||
@@ -150,6 +132,5 @@ class _InfoDtoCopyWithImpl<$R, $Out>
|
||||
download: data.get(#download, or: $value.download));
|
||||
|
||||
@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($value, $cast, t);
|
||||
}
|
||||
|
||||
@@ -23,28 +23,21 @@ 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 {
|
||||
@@ -84,45 +77,36 @@ 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(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(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,
|
||||
@@ -132,18 +116,15 @@ abstract class InfoRegisterDtoCopyWith<$R, $In extends InfoRegisterDto, $Out>
|
||||
int? port,
|
||||
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,
|
||||
@@ -176,7 +157,5 @@ class _InfoRegisterDtoCopyWithImpl<$R, $Out>
|
||||
download: data.get(#download, or: $value.download));
|
||||
|
||||
@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($value, $cast, t);
|
||||
}
|
||||
|
||||
@@ -71,31 +71,23 @@ 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 {
|
||||
@@ -139,44 +131,36 @@ 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);
|
||||
@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(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,
|
||||
@@ -191,14 +175,11 @@ abstract class MulticastDtoCopyWith<$R, $In extends MulticastDto, $Out>
|
||||
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,
|
||||
@@ -237,7 +218,5 @@ class _MulticastDtoCopyWithImpl<$R, $Out>
|
||||
announce: data.get(#announce, or: $value.announce));
|
||||
|
||||
@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($value, $cast, t);
|
||||
}
|
||||
|
||||
@@ -6,15 +6,13 @@
|
||||
|
||||
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!;
|
||||
@@ -24,11 +22,9 @@ class PrepareUploadRequestDtoMapper
|
||||
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 {
|
||||
@@ -37,8 +33,7 @@ class PrepareUploadRequestDtoMapper
|
||||
};
|
||||
|
||||
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
|
||||
@@ -55,84 +50,62 @@ class PrepareUploadRequestDtoMapper
|
||||
|
||||
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(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(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}));
|
||||
$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),
|
||||
files: data.get(#files, or: $value.files));
|
||||
PrepareUploadRequestDto $make(CopyWithData data) =>
|
||||
PrepareUploadRequestDto(info: data.get(#info, or: $value.info), files: data.get(#files, or: $value.files));
|
||||
|
||||
@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($value, $cast, t);
|
||||
}
|
||||
|
||||
@@ -6,15 +6,13 @@
|
||||
|
||||
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!;
|
||||
}
|
||||
@@ -23,11 +21,9 @@ class PrepareUploadResponseDtoMapper
|
||||
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 {
|
||||
@@ -36,8 +32,7 @@ class PrepareUploadResponseDtoMapper
|
||||
};
|
||||
|
||||
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
|
||||
@@ -54,81 +49,59 @@ class PrepareUploadResponseDtoMapper
|
||||
|
||||
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(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(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
|
||||
}));
|
||||
$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),
|
||||
files: data.get(#files, or: $value.files));
|
||||
PrepareUploadResponseDto $make(CopyWithData data) =>
|
||||
PrepareUploadResponseDto(sessionId: data.get(#sessionId, or: $value.sessionId), files: data.get(#files, or: $value.files));
|
||||
|
||||
@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($value, $cast, t);
|
||||
}
|
||||
|
||||
@@ -6,15 +6,13 @@
|
||||
|
||||
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!;
|
||||
@@ -24,14 +22,11 @@ class ReceiveRequestResponseDtoMapper
|
||||
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 {
|
||||
@@ -41,10 +36,7 @@ class ReceiveRequestResponseDtoMapper
|
||||
};
|
||||
|
||||
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
|
||||
@@ -61,91 +53,62 @@ class ReceiveRequestResponseDtoMapper
|
||||
|
||||
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(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(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($value, $cast, t);
|
||||
}
|
||||
|
||||
@@ -25,25 +25,19 @@ 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 {
|
||||
@@ -83,27 +77,22 @@ 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(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
|
||||
@@ -112,14 +101,11 @@ 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(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,
|
||||
@@ -132,14 +118,11 @@ abstract class RegisterDtoCopyWith<$R, $In extends RegisterDto, $Out>
|
||||
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,
|
||||
@@ -172,7 +155,5 @@ class _RegisterDtoCopyWithImpl<$R, $Out>
|
||||
download: data.get(#download, or: $value.download));
|
||||
|
||||
@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($value, $cast, t);
|
||||
}
|
||||
|
||||
@@ -23,11 +23,9 @@ class IsolateChildStateMapper extends ClassMapperBase<IsolateChildState> {
|
||||
final String id = 'IsolateChildState';
|
||||
|
||||
static IsolateCommonState _$commonState(IsolateChildState v) => v.commonState;
|
||||
static const Field<IsolateChildState, IsolateCommonState> _f$commonState =
|
||||
Field('commonState', _$commonState);
|
||||
static const Field<IsolateChildState, IsolateCommonState> _f$commonState = Field('commonState', _$commonState);
|
||||
static IsolateState _$isolateState(IsolateChildState v) => v.isolateState;
|
||||
static const Field<IsolateChildState, IsolateState> _f$isolateState =
|
||||
Field('isolateState', _$isolateState);
|
||||
static const Field<IsolateChildState, IsolateState> _f$isolateState = Field('isolateState', _$isolateState);
|
||||
|
||||
@override
|
||||
final MappableFields<IsolateChildState> fields = const {
|
||||
@@ -36,9 +34,7 @@ class IsolateChildStateMapper extends ClassMapperBase<IsolateChildState> {
|
||||
};
|
||||
|
||||
static IsolateChildState _instantiate(DecodingData data) {
|
||||
return IsolateChildState(
|
||||
commonState: data.dec(_f$commonState),
|
||||
isolateState: data.dec(_f$isolateState));
|
||||
return IsolateChildState(commonState: data.dec(_f$commonState), isolateState: data.dec(_f$isolateState));
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -55,83 +51,60 @@ class IsolateChildStateMapper extends ClassMapperBase<IsolateChildState> {
|
||||
|
||||
mixin IsolateChildStateMappable {
|
||||
String serialize() {
|
||||
return IsolateChildStateMapper.ensureInitialized()
|
||||
.encodeJson<IsolateChildState>(this as IsolateChildState);
|
||||
return IsolateChildStateMapper.ensureInitialized().encodeJson<IsolateChildState>(this as IsolateChildState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return IsolateChildStateMapper.ensureInitialized()
|
||||
.encodeMap<IsolateChildState>(this as IsolateChildState);
|
||||
return IsolateChildStateMapper.ensureInitialized().encodeMap<IsolateChildState>(this as IsolateChildState);
|
||||
}
|
||||
|
||||
IsolateChildStateCopyWith<IsolateChildState, IsolateChildState,
|
||||
IsolateChildState>
|
||||
get copyWith => _IsolateChildStateCopyWithImpl(
|
||||
this as IsolateChildState, $identity, $identity);
|
||||
IsolateChildStateCopyWith<IsolateChildState, IsolateChildState, IsolateChildState> get copyWith =>
|
||||
_IsolateChildStateCopyWithImpl(this as IsolateChildState, $identity, $identity);
|
||||
@override
|
||||
String toString() {
|
||||
return IsolateChildStateMapper.ensureInitialized()
|
||||
.stringifyValue(this as IsolateChildState);
|
||||
return IsolateChildStateMapper.ensureInitialized().stringifyValue(this as IsolateChildState);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return IsolateChildStateMapper.ensureInitialized()
|
||||
.equalsValue(this as IsolateChildState, other);
|
||||
return IsolateChildStateMapper.ensureInitialized().equalsValue(this as IsolateChildState, other);
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return IsolateChildStateMapper.ensureInitialized()
|
||||
.hashValue(this as IsolateChildState);
|
||||
return IsolateChildStateMapper.ensureInitialized().hashValue(this as IsolateChildState);
|
||||
}
|
||||
}
|
||||
|
||||
extension IsolateChildStateValueCopy<$R, $Out>
|
||||
on ObjectCopyWith<$R, IsolateChildState, $Out> {
|
||||
IsolateChildStateCopyWith<$R, IsolateChildState, $Out>
|
||||
get $asIsolateChildState =>
|
||||
$base.as((v, t, t2) => _IsolateChildStateCopyWithImpl(v, t, t2));
|
||||
extension IsolateChildStateValueCopy<$R, $Out> on ObjectCopyWith<$R, IsolateChildState, $Out> {
|
||||
IsolateChildStateCopyWith<$R, IsolateChildState, $Out> get $asIsolateChildState => $base.as((v, t, t2) => _IsolateChildStateCopyWithImpl(v, t, t2));
|
||||
}
|
||||
|
||||
abstract class IsolateChildStateCopyWith<$R, $In extends IsolateChildState,
|
||||
$Out> implements ClassCopyWith<$R, $In, $Out> {
|
||||
IsolateCommonStateCopyWith<$R, IsolateCommonState, IsolateCommonState>
|
||||
get commonState;
|
||||
abstract class IsolateChildStateCopyWith<$R, $In extends IsolateChildState, $Out> implements ClassCopyWith<$R, $In, $Out> {
|
||||
IsolateCommonStateCopyWith<$R, IsolateCommonState, IsolateCommonState> get commonState;
|
||||
IsolateStateCopyWith<$R, IsolateState, IsolateState> get isolateState;
|
||||
$R call({IsolateCommonState? commonState, IsolateState? isolateState});
|
||||
IsolateChildStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
|
||||
Then<$Out2, $R2> t);
|
||||
IsolateChildStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
|
||||
}
|
||||
|
||||
class _IsolateChildStateCopyWithImpl<$R, $Out>
|
||||
extends ClassCopyWithBase<$R, IsolateChildState, $Out>
|
||||
class _IsolateChildStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, IsolateChildState, $Out>
|
||||
implements IsolateChildStateCopyWith<$R, IsolateChildState, $Out> {
|
||||
_IsolateChildStateCopyWithImpl(super.value, super.then, super.then2);
|
||||
|
||||
@override
|
||||
late final ClassMapperBase<IsolateChildState> $mapper =
|
||||
IsolateChildStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<IsolateChildState> $mapper = IsolateChildStateMapper.ensureInitialized();
|
||||
@override
|
||||
IsolateCommonStateCopyWith<$R, IsolateCommonState, IsolateCommonState>
|
||||
get commonState =>
|
||||
$value.commonState.copyWith.$chain((v) => call(commonState: v));
|
||||
IsolateCommonStateCopyWith<$R, IsolateCommonState, IsolateCommonState> get commonState =>
|
||||
$value.commonState.copyWith.$chain((v) => call(commonState: v));
|
||||
@override
|
||||
IsolateStateCopyWith<$R, IsolateState, IsolateState> get isolateState =>
|
||||
$value.isolateState.copyWith.$chain((v) => call(isolateState: v));
|
||||
IsolateStateCopyWith<$R, IsolateState, IsolateState> get isolateState => $value.isolateState.copyWith.$chain((v) => call(isolateState: v));
|
||||
@override
|
||||
$R call({IsolateCommonState? commonState, IsolateState? isolateState}) =>
|
||||
$apply(FieldCopyWithData({
|
||||
if (commonState != null) #commonState: commonState,
|
||||
if (isolateState != null) #isolateState: isolateState
|
||||
}));
|
||||
$apply(FieldCopyWithData({if (commonState != null) #commonState: commonState, if (isolateState != null) #isolateState: isolateState}));
|
||||
@override
|
||||
IsolateChildState $make(CopyWithData data) => IsolateChildState(
|
||||
commonState: data.get(#commonState, or: $value.commonState),
|
||||
isolateState: data.get(#isolateState, or: $value.isolateState));
|
||||
IsolateChildState $make(CopyWithData data) =>
|
||||
IsolateChildState(commonState: data.get(#commonState, or: $value.commonState), isolateState: data.get(#isolateState, or: $value.isolateState));
|
||||
|
||||
@override
|
||||
IsolateChildStateCopyWith<$R2, IsolateChildState, $Out2> $chain<$R2, $Out2>(
|
||||
Then<$Out2, $R2> t) =>
|
||||
_IsolateChildStateCopyWithImpl($value, $cast, t);
|
||||
IsolateChildStateCopyWith<$R2, IsolateChildState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _IsolateChildStateCopyWithImpl($value, $cast, t);
|
||||
}
|
||||
|
||||
@@ -21,10 +21,8 @@ class IsolateCommonStateMapper extends ClassMapperBase<IsolateCommonState> {
|
||||
@override
|
||||
final String id = 'IsolateCommonState';
|
||||
|
||||
static StoredSecurityContext? _$securityContext(IsolateCommonState v) =>
|
||||
v.securityContext;
|
||||
static const Field<IsolateCommonState, StoredSecurityContext>
|
||||
_f$securityContext = Field('securityContext', _$securityContext);
|
||||
static StoredSecurityContext? _$securityContext(IsolateCommonState v) => v.securityContext;
|
||||
static const Field<IsolateCommonState, StoredSecurityContext> _f$securityContext = Field('securityContext', _$securityContext);
|
||||
|
||||
@override
|
||||
final MappableFields<IsolateCommonState> fields = const {
|
||||
@@ -49,76 +47,57 @@ class IsolateCommonStateMapper extends ClassMapperBase<IsolateCommonState> {
|
||||
|
||||
mixin IsolateCommonStateMappable {
|
||||
String serialize() {
|
||||
return IsolateCommonStateMapper.ensureInitialized()
|
||||
.encodeJson<IsolateCommonState>(this as IsolateCommonState);
|
||||
return IsolateCommonStateMapper.ensureInitialized().encodeJson<IsolateCommonState>(this as IsolateCommonState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return IsolateCommonStateMapper.ensureInitialized()
|
||||
.encodeMap<IsolateCommonState>(this as IsolateCommonState);
|
||||
return IsolateCommonStateMapper.ensureInitialized().encodeMap<IsolateCommonState>(this as IsolateCommonState);
|
||||
}
|
||||
|
||||
IsolateCommonStateCopyWith<IsolateCommonState, IsolateCommonState,
|
||||
IsolateCommonState>
|
||||
get copyWith => _IsolateCommonStateCopyWithImpl(
|
||||
this as IsolateCommonState, $identity, $identity);
|
||||
IsolateCommonStateCopyWith<IsolateCommonState, IsolateCommonState, IsolateCommonState> get copyWith =>
|
||||
_IsolateCommonStateCopyWithImpl(this as IsolateCommonState, $identity, $identity);
|
||||
@override
|
||||
String toString() {
|
||||
return IsolateCommonStateMapper.ensureInitialized()
|
||||
.stringifyValue(this as IsolateCommonState);
|
||||
return IsolateCommonStateMapper.ensureInitialized().stringifyValue(this as IsolateCommonState);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return IsolateCommonStateMapper.ensureInitialized()
|
||||
.equalsValue(this as IsolateCommonState, other);
|
||||
return IsolateCommonStateMapper.ensureInitialized().equalsValue(this as IsolateCommonState, other);
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return IsolateCommonStateMapper.ensureInitialized()
|
||||
.hashValue(this as IsolateCommonState);
|
||||
return IsolateCommonStateMapper.ensureInitialized().hashValue(this as IsolateCommonState);
|
||||
}
|
||||
}
|
||||
|
||||
extension IsolateCommonStateValueCopy<$R, $Out>
|
||||
on ObjectCopyWith<$R, IsolateCommonState, $Out> {
|
||||
IsolateCommonStateCopyWith<$R, IsolateCommonState, $Out>
|
||||
get $asIsolateCommonState =>
|
||||
$base.as((v, t, t2) => _IsolateCommonStateCopyWithImpl(v, t, t2));
|
||||
extension IsolateCommonStateValueCopy<$R, $Out> on ObjectCopyWith<$R, IsolateCommonState, $Out> {
|
||||
IsolateCommonStateCopyWith<$R, IsolateCommonState, $Out> get $asIsolateCommonState =>
|
||||
$base.as((v, t, t2) => _IsolateCommonStateCopyWithImpl(v, t, t2));
|
||||
}
|
||||
|
||||
abstract class IsolateCommonStateCopyWith<$R, $In extends IsolateCommonState,
|
||||
$Out> implements ClassCopyWith<$R, $In, $Out> {
|
||||
StoredSecurityContextCopyWith<$R, StoredSecurityContext,
|
||||
StoredSecurityContext>? get securityContext;
|
||||
abstract class IsolateCommonStateCopyWith<$R, $In extends IsolateCommonState, $Out> implements ClassCopyWith<$R, $In, $Out> {
|
||||
StoredSecurityContextCopyWith<$R, StoredSecurityContext, StoredSecurityContext>? get securityContext;
|
||||
$R call({StoredSecurityContext? securityContext});
|
||||
IsolateCommonStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
|
||||
Then<$Out2, $R2> t);
|
||||
IsolateCommonStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
|
||||
}
|
||||
|
||||
class _IsolateCommonStateCopyWithImpl<$R, $Out>
|
||||
extends ClassCopyWithBase<$R, IsolateCommonState, $Out>
|
||||
class _IsolateCommonStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, IsolateCommonState, $Out>
|
||||
implements IsolateCommonStateCopyWith<$R, IsolateCommonState, $Out> {
|
||||
_IsolateCommonStateCopyWithImpl(super.value, super.then, super.then2);
|
||||
|
||||
@override
|
||||
late final ClassMapperBase<IsolateCommonState> $mapper =
|
||||
IsolateCommonStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<IsolateCommonState> $mapper = IsolateCommonStateMapper.ensureInitialized();
|
||||
@override
|
||||
StoredSecurityContextCopyWith<$R, StoredSecurityContext,
|
||||
StoredSecurityContext>?
|
||||
get securityContext => $value.securityContext?.copyWith
|
||||
.$chain((v) => call(securityContext: v));
|
||||
StoredSecurityContextCopyWith<$R, StoredSecurityContext, StoredSecurityContext>? get securityContext =>
|
||||
$value.securityContext?.copyWith.$chain((v) => call(securityContext: v));
|
||||
@override
|
||||
$R call({Object? securityContext = $none}) => $apply(FieldCopyWithData(
|
||||
{if (securityContext != $none) #securityContext: securityContext}));
|
||||
$R call({Object? securityContext = $none}) => $apply(FieldCopyWithData({if (securityContext != $none) #securityContext: securityContext}));
|
||||
@override
|
||||
IsolateCommonState $make(CopyWithData data) => IsolateCommonState(
|
||||
securityContext: data.get(#securityContext, or: $value.securityContext));
|
||||
IsolateCommonState $make(CopyWithData data) => IsolateCommonState(securityContext: data.get(#securityContext, or: $value.securityContext));
|
||||
|
||||
@override
|
||||
IsolateCommonStateCopyWith<$R2, IsolateCommonState, $Out2> $chain<$R2, $Out2>(
|
||||
Then<$Out2, $R2> t) =>
|
||||
IsolateCommonStateCopyWith<$R2, IsolateCommonState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) =>
|
||||
_IsolateCommonStateCopyWithImpl($value, $cast, t);
|
||||
}
|
||||
|
||||
@@ -22,14 +22,10 @@ class IsolateParentStateMapper extends ClassMapperBase<IsolateParentState> {
|
||||
@override
|
||||
final String id = 'IsolateParentState';
|
||||
|
||||
static IsolateCommonState _$commonState(IsolateParentState v) =>
|
||||
v.commonState;
|
||||
static const Field<IsolateParentState, IsolateCommonState> _f$commonState =
|
||||
Field('commonState', _$commonState);
|
||||
static Map<int, IsolateRefState> _$isolateStates(IsolateParentState v) =>
|
||||
v.isolateStates;
|
||||
static const Field<IsolateParentState, Map<int, IsolateRefState>>
|
||||
_f$isolateStates = Field('isolateStates', _$isolateStates);
|
||||
static IsolateCommonState _$commonState(IsolateParentState v) => v.commonState;
|
||||
static const Field<IsolateParentState, IsolateCommonState> _f$commonState = Field('commonState', _$commonState);
|
||||
static Map<int, IsolateRefState> _$isolateStates(IsolateParentState v) => v.isolateStates;
|
||||
static const Field<IsolateParentState, Map<int, IsolateRefState>> _f$isolateStates = Field('isolateStates', _$isolateStates);
|
||||
|
||||
@override
|
||||
final MappableFields<IsolateParentState> fields = const {
|
||||
@@ -38,9 +34,7 @@ class IsolateParentStateMapper extends ClassMapperBase<IsolateParentState> {
|
||||
};
|
||||
|
||||
static IsolateParentState _instantiate(DecodingData data) {
|
||||
return IsolateParentState(
|
||||
commonState: data.dec(_f$commonState),
|
||||
isolateStates: data.dec(_f$isolateStates));
|
||||
return IsolateParentState(commonState: data.dec(_f$commonState), isolateStates: data.dec(_f$isolateStates));
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -57,91 +51,63 @@ class IsolateParentStateMapper extends ClassMapperBase<IsolateParentState> {
|
||||
|
||||
mixin IsolateParentStateMappable {
|
||||
String serialize() {
|
||||
return IsolateParentStateMapper.ensureInitialized()
|
||||
.encodeJson<IsolateParentState>(this as IsolateParentState);
|
||||
return IsolateParentStateMapper.ensureInitialized().encodeJson<IsolateParentState>(this as IsolateParentState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return IsolateParentStateMapper.ensureInitialized()
|
||||
.encodeMap<IsolateParentState>(this as IsolateParentState);
|
||||
return IsolateParentStateMapper.ensureInitialized().encodeMap<IsolateParentState>(this as IsolateParentState);
|
||||
}
|
||||
|
||||
IsolateParentStateCopyWith<IsolateParentState, IsolateParentState,
|
||||
IsolateParentState>
|
||||
get copyWith => _IsolateParentStateCopyWithImpl(
|
||||
this as IsolateParentState, $identity, $identity);
|
||||
IsolateParentStateCopyWith<IsolateParentState, IsolateParentState, IsolateParentState> get copyWith =>
|
||||
_IsolateParentStateCopyWithImpl(this as IsolateParentState, $identity, $identity);
|
||||
@override
|
||||
String toString() {
|
||||
return IsolateParentStateMapper.ensureInitialized()
|
||||
.stringifyValue(this as IsolateParentState);
|
||||
return IsolateParentStateMapper.ensureInitialized().stringifyValue(this as IsolateParentState);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return IsolateParentStateMapper.ensureInitialized()
|
||||
.equalsValue(this as IsolateParentState, other);
|
||||
return IsolateParentStateMapper.ensureInitialized().equalsValue(this as IsolateParentState, other);
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return IsolateParentStateMapper.ensureInitialized()
|
||||
.hashValue(this as IsolateParentState);
|
||||
return IsolateParentStateMapper.ensureInitialized().hashValue(this as IsolateParentState);
|
||||
}
|
||||
}
|
||||
|
||||
extension IsolateParentStateValueCopy<$R, $Out>
|
||||
on ObjectCopyWith<$R, IsolateParentState, $Out> {
|
||||
IsolateParentStateCopyWith<$R, IsolateParentState, $Out>
|
||||
get $asIsolateParentState =>
|
||||
$base.as((v, t, t2) => _IsolateParentStateCopyWithImpl(v, t, t2));
|
||||
extension IsolateParentStateValueCopy<$R, $Out> on ObjectCopyWith<$R, IsolateParentState, $Out> {
|
||||
IsolateParentStateCopyWith<$R, IsolateParentState, $Out> get $asIsolateParentState =>
|
||||
$base.as((v, t, t2) => _IsolateParentStateCopyWithImpl(v, t, t2));
|
||||
}
|
||||
|
||||
abstract class IsolateParentStateCopyWith<$R, $In extends IsolateParentState,
|
||||
$Out> implements ClassCopyWith<$R, $In, $Out> {
|
||||
IsolateCommonStateCopyWith<$R, IsolateCommonState, IsolateCommonState>
|
||||
get commonState;
|
||||
MapCopyWith<$R, int, IsolateRefState,
|
||||
IsolateRefStateCopyWith<$R, IsolateRefState, IsolateRefState>>
|
||||
get isolateStates;
|
||||
$R call(
|
||||
{IsolateCommonState? commonState,
|
||||
Map<int, IsolateRefState>? isolateStates});
|
||||
IsolateParentStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
|
||||
Then<$Out2, $R2> t);
|
||||
abstract class IsolateParentStateCopyWith<$R, $In extends IsolateParentState, $Out> implements ClassCopyWith<$R, $In, $Out> {
|
||||
IsolateCommonStateCopyWith<$R, IsolateCommonState, IsolateCommonState> get commonState;
|
||||
MapCopyWith<$R, int, IsolateRefState, IsolateRefStateCopyWith<$R, IsolateRefState, IsolateRefState>> get isolateStates;
|
||||
$R call({IsolateCommonState? commonState, Map<int, IsolateRefState>? isolateStates});
|
||||
IsolateParentStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
|
||||
}
|
||||
|
||||
class _IsolateParentStateCopyWithImpl<$R, $Out>
|
||||
extends ClassCopyWithBase<$R, IsolateParentState, $Out>
|
||||
class _IsolateParentStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, IsolateParentState, $Out>
|
||||
implements IsolateParentStateCopyWith<$R, IsolateParentState, $Out> {
|
||||
_IsolateParentStateCopyWithImpl(super.value, super.then, super.then2);
|
||||
|
||||
@override
|
||||
late final ClassMapperBase<IsolateParentState> $mapper =
|
||||
IsolateParentStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<IsolateParentState> $mapper = IsolateParentStateMapper.ensureInitialized();
|
||||
@override
|
||||
IsolateCommonStateCopyWith<$R, IsolateCommonState, IsolateCommonState>
|
||||
get commonState =>
|
||||
$value.commonState.copyWith.$chain((v) => call(commonState: v));
|
||||
IsolateCommonStateCopyWith<$R, IsolateCommonState, IsolateCommonState> get commonState =>
|
||||
$value.commonState.copyWith.$chain((v) => call(commonState: v));
|
||||
@override
|
||||
MapCopyWith<$R, int, IsolateRefState,
|
||||
IsolateRefStateCopyWith<$R, IsolateRefState, IsolateRefState>>
|
||||
get isolateStates => MapCopyWith($value.isolateStates,
|
||||
(v, t) => v.copyWith.$chain(t), (v) => call(isolateStates: v));
|
||||
MapCopyWith<$R, int, IsolateRefState, IsolateRefStateCopyWith<$R, IsolateRefState, IsolateRefState>> get isolateStates =>
|
||||
MapCopyWith($value.isolateStates, (v, t) => v.copyWith.$chain(t), (v) => call(isolateStates: v));
|
||||
@override
|
||||
$R call(
|
||||
{IsolateCommonState? commonState,
|
||||
Map<int, IsolateRefState>? isolateStates}) =>
|
||||
$apply(FieldCopyWithData({
|
||||
if (commonState != null) #commonState: commonState,
|
||||
if (isolateStates != null) #isolateStates: isolateStates
|
||||
}));
|
||||
$R call({IsolateCommonState? commonState, Map<int, IsolateRefState>? isolateStates}) =>
|
||||
$apply(FieldCopyWithData({if (commonState != null) #commonState: commonState, if (isolateStates != null) #isolateStates: isolateStates}));
|
||||
@override
|
||||
IsolateParentState $make(CopyWithData data) => IsolateParentState(
|
||||
commonState: data.get(#commonState, or: $value.commonState),
|
||||
isolateStates: data.get(#isolateStates, or: $value.isolateStates));
|
||||
commonState: data.get(#commonState, or: $value.commonState), isolateStates: data.get(#isolateStates, or: $value.isolateStates));
|
||||
|
||||
@override
|
||||
IsolateParentStateCopyWith<$R2, IsolateParentState, $Out2> $chain<$R2, $Out2>(
|
||||
Then<$Out2, $R2> t) =>
|
||||
IsolateParentStateCopyWith<$R2, IsolateParentState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) =>
|
||||
_IsolateParentStateCopyWithImpl($value, $cast, t);
|
||||
}
|
||||
|
||||
@@ -21,14 +21,10 @@ class IsolateRefStateMapper extends ClassMapperBase<IsolateRefState> {
|
||||
@override
|
||||
final String id = 'IsolateRefState';
|
||||
|
||||
static IsolateCommunication<dynamic, dynamic> _$communication(
|
||||
IsolateRefState v) =>
|
||||
v.communication;
|
||||
static const Field<IsolateRefState, IsolateCommunication<dynamic, dynamic>>
|
||||
_f$communication = Field('communication', _$communication);
|
||||
static IsolateCommunication<dynamic, dynamic> _$communication(IsolateRefState v) => v.communication;
|
||||
static const Field<IsolateRefState, IsolateCommunication<dynamic, dynamic>> _f$communication = Field('communication', _$communication);
|
||||
static IsolateState _$isolateState(IsolateRefState v) => v.isolateState;
|
||||
static const Field<IsolateRefState, IsolateState> _f$isolateState =
|
||||
Field('isolateState', _$isolateState);
|
||||
static const Field<IsolateRefState, IsolateState> _f$isolateState = Field('isolateState', _$isolateState);
|
||||
|
||||
@override
|
||||
final MappableFields<IsolateRefState> fields = const {
|
||||
@@ -37,9 +33,7 @@ class IsolateRefStateMapper extends ClassMapperBase<IsolateRefState> {
|
||||
};
|
||||
|
||||
static IsolateRefState _instantiate(DecodingData data) {
|
||||
return IsolateRefState(
|
||||
communication: data.dec(_f$communication),
|
||||
isolateState: data.dec(_f$isolateState));
|
||||
return IsolateRefState(communication: data.dec(_f$communication), isolateState: data.dec(_f$isolateState));
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -56,79 +50,56 @@ class IsolateRefStateMapper extends ClassMapperBase<IsolateRefState> {
|
||||
|
||||
mixin IsolateRefStateMappable {
|
||||
String serialize() {
|
||||
return IsolateRefStateMapper.ensureInitialized()
|
||||
.encodeJson<IsolateRefState>(this as IsolateRefState);
|
||||
return IsolateRefStateMapper.ensureInitialized().encodeJson<IsolateRefState>(this as IsolateRefState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return IsolateRefStateMapper.ensureInitialized()
|
||||
.encodeMap<IsolateRefState>(this as IsolateRefState);
|
||||
return IsolateRefStateMapper.ensureInitialized().encodeMap<IsolateRefState>(this as IsolateRefState);
|
||||
}
|
||||
|
||||
IsolateRefStateCopyWith<IsolateRefState, IsolateRefState, IsolateRefState>
|
||||
get copyWith => _IsolateRefStateCopyWithImpl(
|
||||
this as IsolateRefState, $identity, $identity);
|
||||
IsolateRefStateCopyWith<IsolateRefState, IsolateRefState, IsolateRefState> get copyWith =>
|
||||
_IsolateRefStateCopyWithImpl(this as IsolateRefState, $identity, $identity);
|
||||
@override
|
||||
String toString() {
|
||||
return IsolateRefStateMapper.ensureInitialized()
|
||||
.stringifyValue(this as IsolateRefState);
|
||||
return IsolateRefStateMapper.ensureInitialized().stringifyValue(this as IsolateRefState);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return IsolateRefStateMapper.ensureInitialized()
|
||||
.equalsValue(this as IsolateRefState, other);
|
||||
return IsolateRefStateMapper.ensureInitialized().equalsValue(this as IsolateRefState, other);
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return IsolateRefStateMapper.ensureInitialized()
|
||||
.hashValue(this as IsolateRefState);
|
||||
return IsolateRefStateMapper.ensureInitialized().hashValue(this as IsolateRefState);
|
||||
}
|
||||
}
|
||||
|
||||
extension IsolateRefStateValueCopy<$R, $Out>
|
||||
on ObjectCopyWith<$R, IsolateRefState, $Out> {
|
||||
IsolateRefStateCopyWith<$R, IsolateRefState, $Out> get $asIsolateRefState =>
|
||||
$base.as((v, t, t2) => _IsolateRefStateCopyWithImpl(v, t, t2));
|
||||
extension IsolateRefStateValueCopy<$R, $Out> on ObjectCopyWith<$R, IsolateRefState, $Out> {
|
||||
IsolateRefStateCopyWith<$R, IsolateRefState, $Out> get $asIsolateRefState => $base.as((v, t, t2) => _IsolateRefStateCopyWithImpl(v, t, t2));
|
||||
}
|
||||
|
||||
abstract class IsolateRefStateCopyWith<$R, $In extends IsolateRefState, $Out>
|
||||
implements ClassCopyWith<$R, $In, $Out> {
|
||||
abstract class IsolateRefStateCopyWith<$R, $In extends IsolateRefState, $Out> implements ClassCopyWith<$R, $In, $Out> {
|
||||
IsolateStateCopyWith<$R, IsolateState, IsolateState> get isolateState;
|
||||
$R call(
|
||||
{IsolateCommunication<dynamic, dynamic>? communication,
|
||||
IsolateState? isolateState});
|
||||
IsolateRefStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
|
||||
Then<$Out2, $R2> t);
|
||||
$R call({IsolateCommunication<dynamic, dynamic>? communication, IsolateState? isolateState});
|
||||
IsolateRefStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
|
||||
}
|
||||
|
||||
class _IsolateRefStateCopyWithImpl<$R, $Out>
|
||||
extends ClassCopyWithBase<$R, IsolateRefState, $Out>
|
||||
class _IsolateRefStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, IsolateRefState, $Out>
|
||||
implements IsolateRefStateCopyWith<$R, IsolateRefState, $Out> {
|
||||
_IsolateRefStateCopyWithImpl(super.value, super.then, super.then2);
|
||||
|
||||
@override
|
||||
late final ClassMapperBase<IsolateRefState> $mapper =
|
||||
IsolateRefStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<IsolateRefState> $mapper = IsolateRefStateMapper.ensureInitialized();
|
||||
@override
|
||||
IsolateStateCopyWith<$R, IsolateState, IsolateState> get isolateState =>
|
||||
$value.isolateState.copyWith.$chain((v) => call(isolateState: v));
|
||||
IsolateStateCopyWith<$R, IsolateState, IsolateState> get isolateState => $value.isolateState.copyWith.$chain((v) => call(isolateState: v));
|
||||
@override
|
||||
$R call(
|
||||
{IsolateCommunication<dynamic, dynamic>? communication,
|
||||
IsolateState? isolateState}) =>
|
||||
$apply(FieldCopyWithData({
|
||||
if (communication != null) #communication: communication,
|
||||
if (isolateState != null) #isolateState: isolateState
|
||||
}));
|
||||
$R call({IsolateCommunication<dynamic, dynamic>? communication, IsolateState? isolateState}) =>
|
||||
$apply(FieldCopyWithData({if (communication != null) #communication: communication, if (isolateState != null) #isolateState: isolateState}));
|
||||
@override
|
||||
IsolateRefState $make(CopyWithData data) => IsolateRefState(
|
||||
communication: data.get(#communication, or: $value.communication),
|
||||
isolateState: data.get(#isolateState, or: $value.isolateState));
|
||||
communication: data.get(#communication, or: $value.communication), isolateState: data.get(#isolateState, or: $value.isolateState));
|
||||
|
||||
@override
|
||||
IsolateRefStateCopyWith<$R2, IsolateRefState, $Out2> $chain<$R2, $Out2>(
|
||||
Then<$Out2, $R2> t) =>
|
||||
_IsolateRefStateCopyWithImpl($value, $cast, t);
|
||||
IsolateRefStateCopyWith<$R2, IsolateRefState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _IsolateRefStateCopyWithImpl($value, $cast, t);
|
||||
}
|
||||
|
||||
@@ -21,11 +21,9 @@ class IsolateStateMapper extends ClassMapperBase<IsolateState> {
|
||||
final String id = 'IsolateState';
|
||||
|
||||
static int? _$isolateId(IsolateState v) => v.isolateId;
|
||||
static const Field<IsolateState, int> _f$isolateId =
|
||||
Field('isolateId', _$isolateId);
|
||||
static const Field<IsolateState, int> _f$isolateId = Field('isolateId', _$isolateId);
|
||||
static IsolateType? _$isolateType(IsolateState v) => v.isolateType;
|
||||
static const Field<IsolateState, IsolateType> _f$isolateType =
|
||||
Field('isolateType', _$isolateType);
|
||||
static const Field<IsolateState, IsolateType> _f$isolateType = Field('isolateType', _$isolateType);
|
||||
|
||||
@override
|
||||
final MappableFields<IsolateState> fields = const {
|
||||
@@ -34,9 +32,7 @@ class IsolateStateMapper extends ClassMapperBase<IsolateState> {
|
||||
};
|
||||
|
||||
static IsolateState _instantiate(DecodingData data) {
|
||||
return IsolateState(
|
||||
isolateId: data.dec(_f$isolateId),
|
||||
isolateType: data.dec(_f$isolateType));
|
||||
return IsolateState(isolateId: data.dec(_f$isolateId), isolateType: data.dec(_f$isolateType));
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -53,69 +49,52 @@ class IsolateStateMapper extends ClassMapperBase<IsolateState> {
|
||||
|
||||
mixin IsolateStateMappable {
|
||||
String serialize() {
|
||||
return IsolateStateMapper.ensureInitialized()
|
||||
.encodeJson<IsolateState>(this as IsolateState);
|
||||
return IsolateStateMapper.ensureInitialized().encodeJson<IsolateState>(this as IsolateState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return IsolateStateMapper.ensureInitialized()
|
||||
.encodeMap<IsolateState>(this as IsolateState);
|
||||
return IsolateStateMapper.ensureInitialized().encodeMap<IsolateState>(this as IsolateState);
|
||||
}
|
||||
|
||||
IsolateStateCopyWith<IsolateState, IsolateState, IsolateState> get copyWith =>
|
||||
_IsolateStateCopyWithImpl(this as IsolateState, $identity, $identity);
|
||||
@override
|
||||
String toString() {
|
||||
return IsolateStateMapper.ensureInitialized()
|
||||
.stringifyValue(this as IsolateState);
|
||||
return IsolateStateMapper.ensureInitialized().stringifyValue(this as IsolateState);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return IsolateStateMapper.ensureInitialized()
|
||||
.equalsValue(this as IsolateState, other);
|
||||
return IsolateStateMapper.ensureInitialized().equalsValue(this as IsolateState, other);
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return IsolateStateMapper.ensureInitialized()
|
||||
.hashValue(this as IsolateState);
|
||||
return IsolateStateMapper.ensureInitialized().hashValue(this as IsolateState);
|
||||
}
|
||||
}
|
||||
|
||||
extension IsolateStateValueCopy<$R, $Out>
|
||||
on ObjectCopyWith<$R, IsolateState, $Out> {
|
||||
IsolateStateCopyWith<$R, IsolateState, $Out> get $asIsolateState =>
|
||||
$base.as((v, t, t2) => _IsolateStateCopyWithImpl(v, t, t2));
|
||||
extension IsolateStateValueCopy<$R, $Out> on ObjectCopyWith<$R, IsolateState, $Out> {
|
||||
IsolateStateCopyWith<$R, IsolateState, $Out> get $asIsolateState => $base.as((v, t, t2) => _IsolateStateCopyWithImpl(v, t, t2));
|
||||
}
|
||||
|
||||
abstract class IsolateStateCopyWith<$R, $In extends IsolateState, $Out>
|
||||
implements ClassCopyWith<$R, $In, $Out> {
|
||||
abstract class IsolateStateCopyWith<$R, $In extends IsolateState, $Out> implements ClassCopyWith<$R, $In, $Out> {
|
||||
$R call({int? isolateId, IsolateType? isolateType});
|
||||
IsolateStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
|
||||
}
|
||||
|
||||
class _IsolateStateCopyWithImpl<$R, $Out>
|
||||
extends ClassCopyWithBase<$R, IsolateState, $Out>
|
||||
implements IsolateStateCopyWith<$R, IsolateState, $Out> {
|
||||
class _IsolateStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, IsolateState, $Out> implements IsolateStateCopyWith<$R, IsolateState, $Out> {
|
||||
_IsolateStateCopyWithImpl(super.value, super.then, super.then2);
|
||||
|
||||
@override
|
||||
late final ClassMapperBase<IsolateState> $mapper =
|
||||
IsolateStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<IsolateState> $mapper = IsolateStateMapper.ensureInitialized();
|
||||
@override
|
||||
$R call({Object? isolateId = $none, Object? isolateType = $none}) =>
|
||||
$apply(FieldCopyWithData({
|
||||
if (isolateId != $none) #isolateId: isolateId,
|
||||
if (isolateType != $none) #isolateType: isolateType
|
||||
}));
|
||||
$apply(FieldCopyWithData({if (isolateId != $none) #isolateId: isolateId, if (isolateType != $none) #isolateType: isolateType}));
|
||||
@override
|
||||
IsolateState $make(CopyWithData data) => IsolateState(
|
||||
isolateId: data.get(#isolateId, or: $value.isolateId),
|
||||
isolateType: data.get(#isolateType, or: $value.isolateType));
|
||||
IsolateState $make(CopyWithData data) =>
|
||||
IsolateState(isolateId: data.get(#isolateId, or: $value.isolateId), isolateType: data.get(#isolateType, or: $value.isolateType));
|
||||
|
||||
@override
|
||||
IsolateStateCopyWith<$R2, IsolateState, $Out2> $chain<$R2, $Out2>(
|
||||
Then<$Out2, $R2> t) =>
|
||||
_IsolateStateCopyWithImpl($value, $cast, t);
|
||||
IsolateStateCopyWith<$R2, IsolateState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _IsolateStateCopyWithImpl($value, $cast, t);
|
||||
}
|
||||
|
||||
@@ -23,12 +23,9 @@ class IsolateSyncDtoMapper extends ClassMapperBase<IsolateSyncDto> {
|
||||
final String id = 'IsolateSyncDto';
|
||||
|
||||
static IsolateState _$isolateState(IsolateSyncDto v) => v.isolateState;
|
||||
static const Field<IsolateSyncDto, IsolateState> _f$isolateState =
|
||||
Field('isolateState', _$isolateState);
|
||||
static IsolateCommonState _$isolateCommonState(IsolateSyncDto v) =>
|
||||
v.isolateCommonState;
|
||||
static const Field<IsolateSyncDto, IsolateCommonState> _f$isolateCommonState =
|
||||
Field('isolateCommonState', _$isolateCommonState);
|
||||
static const Field<IsolateSyncDto, IsolateState> _f$isolateState = Field('isolateState', _$isolateState);
|
||||
static IsolateCommonState _$isolateCommonState(IsolateSyncDto v) => v.isolateCommonState;
|
||||
static const Field<IsolateSyncDto, IsolateCommonState> _f$isolateCommonState = Field('isolateCommonState', _$isolateCommonState);
|
||||
|
||||
@override
|
||||
final MappableFields<IsolateSyncDto> fields = const {
|
||||
@@ -37,9 +34,7 @@ class IsolateSyncDtoMapper extends ClassMapperBase<IsolateSyncDto> {
|
||||
};
|
||||
|
||||
static IsolateSyncDto _instantiate(DecodingData data) {
|
||||
return IsolateSyncDto(
|
||||
isolateState: data.dec(_f$isolateState),
|
||||
isolateCommonState: data.dec(_f$isolateCommonState));
|
||||
return IsolateSyncDto(isolateState: data.dec(_f$isolateState), isolateCommonState: data.dec(_f$isolateCommonState));
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -56,84 +51,61 @@ class IsolateSyncDtoMapper extends ClassMapperBase<IsolateSyncDto> {
|
||||
|
||||
mixin IsolateSyncDtoMappable {
|
||||
String serialize() {
|
||||
return IsolateSyncDtoMapper.ensureInitialized()
|
||||
.encodeJson<IsolateSyncDto>(this as IsolateSyncDto);
|
||||
return IsolateSyncDtoMapper.ensureInitialized().encodeJson<IsolateSyncDto>(this as IsolateSyncDto);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return IsolateSyncDtoMapper.ensureInitialized()
|
||||
.encodeMap<IsolateSyncDto>(this as IsolateSyncDto);
|
||||
return IsolateSyncDtoMapper.ensureInitialized().encodeMap<IsolateSyncDto>(this as IsolateSyncDto);
|
||||
}
|
||||
|
||||
IsolateSyncDtoCopyWith<IsolateSyncDto, IsolateSyncDto, IsolateSyncDto>
|
||||
get copyWith => _IsolateSyncDtoCopyWithImpl(
|
||||
this as IsolateSyncDto, $identity, $identity);
|
||||
IsolateSyncDtoCopyWith<IsolateSyncDto, IsolateSyncDto, IsolateSyncDto> get copyWith =>
|
||||
_IsolateSyncDtoCopyWithImpl(this as IsolateSyncDto, $identity, $identity);
|
||||
@override
|
||||
String toString() {
|
||||
return IsolateSyncDtoMapper.ensureInitialized()
|
||||
.stringifyValue(this as IsolateSyncDto);
|
||||
return IsolateSyncDtoMapper.ensureInitialized().stringifyValue(this as IsolateSyncDto);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return IsolateSyncDtoMapper.ensureInitialized()
|
||||
.equalsValue(this as IsolateSyncDto, other);
|
||||
return IsolateSyncDtoMapper.ensureInitialized().equalsValue(this as IsolateSyncDto, other);
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return IsolateSyncDtoMapper.ensureInitialized()
|
||||
.hashValue(this as IsolateSyncDto);
|
||||
return IsolateSyncDtoMapper.ensureInitialized().hashValue(this as IsolateSyncDto);
|
||||
}
|
||||
}
|
||||
|
||||
extension IsolateSyncDtoValueCopy<$R, $Out>
|
||||
on ObjectCopyWith<$R, IsolateSyncDto, $Out> {
|
||||
IsolateSyncDtoCopyWith<$R, IsolateSyncDto, $Out> get $asIsolateSyncDto =>
|
||||
$base.as((v, t, t2) => _IsolateSyncDtoCopyWithImpl(v, t, t2));
|
||||
extension IsolateSyncDtoValueCopy<$R, $Out> on ObjectCopyWith<$R, IsolateSyncDto, $Out> {
|
||||
IsolateSyncDtoCopyWith<$R, IsolateSyncDto, $Out> get $asIsolateSyncDto => $base.as((v, t, t2) => _IsolateSyncDtoCopyWithImpl(v, t, t2));
|
||||
}
|
||||
|
||||
abstract class IsolateSyncDtoCopyWith<$R, $In extends IsolateSyncDto, $Out>
|
||||
implements ClassCopyWith<$R, $In, $Out> {
|
||||
abstract class IsolateSyncDtoCopyWith<$R, $In extends IsolateSyncDto, $Out> implements ClassCopyWith<$R, $In, $Out> {
|
||||
IsolateStateCopyWith<$R, IsolateState, IsolateState> get isolateState;
|
||||
IsolateCommonStateCopyWith<$R, IsolateCommonState, IsolateCommonState>
|
||||
get isolateCommonState;
|
||||
IsolateCommonStateCopyWith<$R, IsolateCommonState, IsolateCommonState> get isolateCommonState;
|
||||
$R call({IsolateState? isolateState, IsolateCommonState? isolateCommonState});
|
||||
IsolateSyncDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(
|
||||
Then<$Out2, $R2> t);
|
||||
IsolateSyncDtoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
|
||||
}
|
||||
|
||||
class _IsolateSyncDtoCopyWithImpl<$R, $Out>
|
||||
extends ClassCopyWithBase<$R, IsolateSyncDto, $Out>
|
||||
class _IsolateSyncDtoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, IsolateSyncDto, $Out>
|
||||
implements IsolateSyncDtoCopyWith<$R, IsolateSyncDto, $Out> {
|
||||
_IsolateSyncDtoCopyWithImpl(super.value, super.then, super.then2);
|
||||
|
||||
@override
|
||||
late final ClassMapperBase<IsolateSyncDto> $mapper =
|
||||
IsolateSyncDtoMapper.ensureInitialized();
|
||||
late final ClassMapperBase<IsolateSyncDto> $mapper = IsolateSyncDtoMapper.ensureInitialized();
|
||||
@override
|
||||
IsolateStateCopyWith<$R, IsolateState, IsolateState> get isolateState =>
|
||||
$value.isolateState.copyWith.$chain((v) => call(isolateState: v));
|
||||
IsolateStateCopyWith<$R, IsolateState, IsolateState> get isolateState => $value.isolateState.copyWith.$chain((v) => call(isolateState: v));
|
||||
@override
|
||||
IsolateCommonStateCopyWith<$R, IsolateCommonState, IsolateCommonState>
|
||||
get isolateCommonState => $value.isolateCommonState.copyWith
|
||||
.$chain((v) => call(isolateCommonState: v));
|
||||
IsolateCommonStateCopyWith<$R, IsolateCommonState, IsolateCommonState> get isolateCommonState =>
|
||||
$value.isolateCommonState.copyWith.$chain((v) => call(isolateCommonState: v));
|
||||
@override
|
||||
$R call(
|
||||
{IsolateState? isolateState,
|
||||
IsolateCommonState? isolateCommonState}) =>
|
||||
$apply(FieldCopyWithData({
|
||||
if (isolateState != null) #isolateState: isolateState,
|
||||
if (isolateCommonState != null) #isolateCommonState: isolateCommonState
|
||||
}));
|
||||
$R call({IsolateState? isolateState, IsolateCommonState? isolateCommonState}) => $apply(FieldCopyWithData(
|
||||
{if (isolateState != null) #isolateState: isolateState, if (isolateCommonState != null) #isolateCommonState: isolateCommonState}));
|
||||
@override
|
||||
IsolateSyncDto $make(CopyWithData data) => IsolateSyncDto(
|
||||
isolateState: data.get(#isolateState, or: $value.isolateState),
|
||||
isolateCommonState:
|
||||
data.get(#isolateCommonState, or: $value.isolateCommonState));
|
||||
isolateCommonState: data.get(#isolateCommonState, or: $value.isolateCommonState));
|
||||
|
||||
@override
|
||||
IsolateSyncDtoCopyWith<$R2, IsolateSyncDto, $Out2> $chain<$R2, $Out2>(
|
||||
Then<$Out2, $R2> t) =>
|
||||
_IsolateSyncDtoCopyWithImpl($value, $cast, t);
|
||||
IsolateSyncDtoCopyWith<$R2, IsolateSyncDto, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _IsolateSyncDtoCopyWithImpl($value, $cast, t);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
part of 'stored_security_context.dart';
|
||||
|
||||
class StoredSecurityContextMapper
|
||||
extends ClassMapperBase<StoredSecurityContext> {
|
||||
class StoredSecurityContextMapper extends ClassMapperBase<StoredSecurityContext> {
|
||||
StoredSecurityContextMapper._();
|
||||
|
||||
static StoredSecurityContextMapper? _instance;
|
||||
@@ -22,17 +21,13 @@ class StoredSecurityContextMapper
|
||||
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 {
|
||||
@@ -64,73 +59,49 @@ class StoredSecurityContextMapper
|
||||
|
||||
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(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(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(FieldCopyWithData({
|
||||
$R call({String? privateKey, String? publicKey, String? certificate, String? certificateHash}) => $apply(FieldCopyWithData({
|
||||
if (privateKey != null) #privateKey: privateKey,
|
||||
if (publicKey != null) #publicKey: publicKey,
|
||||
if (certificate != null) #certificate: certificate,
|
||||
@@ -144,7 +115,6 @@ class _StoredSecurityContextCopyWithImpl<$R, $Out>
|
||||
certificateHash: data.get(#certificateHash, or: $value.certificateHash));
|
||||
|
||||
@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($value, $cast, t);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user