An open-source cross-platform alternative to AirDrop
deps: bump dart_mappable, markdown, qr code, msix
Tien Do Nama747aba6f7c5
diff --git a/app/lib/model/cross_file.mapper.dart b/app/lib/model/cross_file.mapper.dartindex 232b2fde..4d8a3f06 100644--- a/app/lib/model/cross_file.mapper.dart+++ b/app/lib/model/cross_file.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'cross_file.dart';@@ -17,11 +18,6 @@ class CrossFileMapper extends ClassMapperBase<CrossFile> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'CrossFile';@@ -68,40 +64,44 @@ class CrossFileMapper extends ClassMapperBase<CrossFile> {final Function instantiate = _instantiate;static CrossFile fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<CrossFile>(map));+ return ensureInitialized().decodeMap<CrossFile>(map);}static CrossFile deserialize(String json) {- return _guard((c) => c.fromJson<CrossFile>(json));+ return ensureInitialized().decodeJson<CrossFile>(json);}}mixin CrossFileMappable {String serialize() {- return CrossFileMapper._guard((c) => c.toJson(this as CrossFile));+ return CrossFileMapper.ensureInitialized()+ .encodeJson<CrossFile>(this as CrossFile);}Map<String, dynamic> toJson() {- return CrossFileMapper._guard((c) => c.toMap(this as CrossFile));+ return CrossFileMapper.ensureInitialized()+ .encodeMap<CrossFile>(this as CrossFile);}CrossFileCopyWith<CrossFile, CrossFile, CrossFile> get copyWith =>_CrossFileCopyWithImpl(this as CrossFile, $identity, $identity);@overrideString toString() {- return CrossFileMapper._guard((c) => c.asString(this));+ return CrossFileMapper.ensureInitialized()+ .stringifyValue(this as CrossFile);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- CrossFileMapper._guard((c) => c.isEqual(this, other)));+ CrossFileMapper.ensureInitialized()+ .isValueEqual(this as CrossFile, other));}@overrideint get hashCode {- return CrossFileMapper._guard((c) => c.hash(this));+ return CrossFileMapper.ensureInitialized().hashValue(this as CrossFile);}}diff --git a/app/lib/model/device.mapper.dart b/app/lib/model/device.mapper.dartindex 49729162..aaf546c7 100644--- a/app/lib/model/device.mapper.dart+++ b/app/lib/model/device.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'device.dart';@@ -75,11 +76,6 @@ class DeviceMapper extends ClassMapperBase<Device> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'Device';@@ -135,40 +131,41 @@ class DeviceMapper extends ClassMapperBase<Device> {final Function instantiate = _instantiate;static Device fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<Device>(map));+ return ensureInitialized().decodeMap<Device>(map);}static Device deserialize(String json) {- return _guard((c) => c.fromJson<Device>(json));+ return ensureInitialized().decodeJson<Device>(json);}}mixin DeviceMappable {String serialize() {- return DeviceMapper._guard((c) => c.toJson(this as Device));+ return DeviceMapper.ensureInitialized().encodeJson<Device>(this as Device);}Map<String, dynamic> toJson() {- return DeviceMapper._guard((c) => c.toMap(this as Device));+ return DeviceMapper.ensureInitialized().encodeMap<Device>(this as Device);}DeviceCopyWith<Device, Device, Device> get copyWith =>_DeviceCopyWithImpl(this as Device, $identity, $identity);@overrideString toString() {- return DeviceMapper._guard((c) => c.asString(this));+ return DeviceMapper.ensureInitialized().stringifyValue(this as Device);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- DeviceMapper._guard((c) => c.isEqual(this, other)));+ DeviceMapper.ensureInitialized()+ .isValueEqual(this as Device, other));}@overrideint get hashCode {- return DeviceMapper._guard((c) => c.hash(this));+ return DeviceMapper.ensureInitialized().hashValue(this as Device);}}diff --git a/app/lib/model/dto/info_dto.mapper.dart b/app/lib/model/dto/info_dto.mapper.dartindex f99b4b3a..9eb1315f 100644--- a/app/lib/model/dto/info_dto.mapper.dart+++ b/app/lib/model/dto/info_dto.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'info_dto.dart';@@ -17,11 +18,6 @@ class InfoDtoMapper extends ClassMapperBase<InfoDto> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'InfoDto';@@ -65,40 +61,43 @@ class InfoDtoMapper extends ClassMapperBase<InfoDto> {final Function instantiate = _instantiate;static InfoDto fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<InfoDto>(map));+ return ensureInitialized().decodeMap<InfoDto>(map);}static InfoDto deserialize(String json) {- return _guard((c) => c.fromJson<InfoDto>(json));+ return ensureInitialized().decodeJson<InfoDto>(json);}}mixin InfoDtoMappable {String serialize() {- return InfoDtoMapper._guard((c) => c.toJson(this as InfoDto));+ return InfoDtoMapper.ensureInitialized()+ .encodeJson<InfoDto>(this as InfoDto);}Map<String, dynamic> toJson() {- return InfoDtoMapper._guard((c) => c.toMap(this as InfoDto));+ return InfoDtoMapper.ensureInitialized()+ .encodeMap<InfoDto>(this as InfoDto);}InfoDtoCopyWith<InfoDto, InfoDto, InfoDto> get copyWith =>_InfoDtoCopyWithImpl(this as InfoDto, $identity, $identity);@overrideString toString() {- return InfoDtoMapper._guard((c) => c.asString(this));+ return InfoDtoMapper.ensureInitialized().stringifyValue(this as InfoDto);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- InfoDtoMapper._guard((c) => c.isEqual(this, other)));+ InfoDtoMapper.ensureInitialized()+ .isValueEqual(this as InfoDto, other));}@overrideint get hashCode {- return InfoDtoMapper._guard((c) => c.hash(this));+ return InfoDtoMapper.ensureInitialized().hashValue(this as InfoDto);}}diff --git a/app/lib/model/dto/info_register_dto.mapper.dart b/app/lib/model/dto/info_register_dto.mapper.dartindex 183d7df2..58d6a293 100644--- a/app/lib/model/dto/info_register_dto.mapper.dart+++ b/app/lib/model/dto/info_register_dto.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'info_register_dto.dart';@@ -18,11 +19,6 @@ class InfoRegisterDtoMapper extends ClassMapperBase<InfoRegisterDto> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'InfoRegisterDto';@@ -78,23 +74,23 @@ class InfoRegisterDtoMapper extends ClassMapperBase<InfoRegisterDto> {final Function instantiate = _instantiate;static InfoRegisterDto fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<InfoRegisterDto>(map));+ return ensureInitialized().decodeMap<InfoRegisterDto>(map);}static InfoRegisterDto deserialize(String json) {- return _guard((c) => c.fromJson<InfoRegisterDto>(json));+ return ensureInitialized().decodeJson<InfoRegisterDto>(json);}}mixin InfoRegisterDtoMappable {String serialize() {- return InfoRegisterDtoMapper._guard(- (c) => c.toJson(this as InfoRegisterDto));+ return InfoRegisterDtoMapper.ensureInitialized()+ .encodeJson<InfoRegisterDto>(this as InfoRegisterDto);}Map<String, dynamic> toJson() {- return InfoRegisterDtoMapper._guard(- (c) => c.toMap(this as InfoRegisterDto));+ return InfoRegisterDtoMapper.ensureInitialized()+ .encodeMap<InfoRegisterDto>(this as InfoRegisterDto);}InfoRegisterDtoCopyWith<InfoRegisterDto, InfoRegisterDto, InfoRegisterDto>@@ -102,19 +98,22 @@ mixin InfoRegisterDtoMappable {this as InfoRegisterDto, $identity, $identity);@overrideString toString() {- return InfoRegisterDtoMapper._guard((c) => c.asString(this));+ return InfoRegisterDtoMapper.ensureInitialized()+ .stringifyValue(this as InfoRegisterDto);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- InfoRegisterDtoMapper._guard((c) => c.isEqual(this, other)));+ InfoRegisterDtoMapper.ensureInitialized()+ .isValueEqual(this as InfoRegisterDto, other));}@overrideint get hashCode {- return InfoRegisterDtoMapper._guard((c) => c.hash(this));+ return InfoRegisterDtoMapper.ensureInitialized()+ .hashValue(this as InfoRegisterDto);}}diff --git a/app/lib/model/dto/multicast_dto.mapper.dart b/app/lib/model/dto/multicast_dto.mapper.dartindex fec59215..0b82ee57 100644--- a/app/lib/model/dto/multicast_dto.mapper.dart+++ b/app/lib/model/dto/multicast_dto.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'multicast_dto.dart';@@ -64,11 +65,6 @@ class MulticastDtoMapper extends ClassMapperBase<MulticastDto> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'MulticastDto';@@ -133,40 +129,45 @@ class MulticastDtoMapper extends ClassMapperBase<MulticastDto> {final Function instantiate = _instantiate;static MulticastDto fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<MulticastDto>(map));+ return ensureInitialized().decodeMap<MulticastDto>(map);}static MulticastDto deserialize(String json) {- return _guard((c) => c.fromJson<MulticastDto>(json));+ return ensureInitialized().decodeJson<MulticastDto>(json);}}mixin MulticastDtoMappable {String serialize() {- return MulticastDtoMapper._guard((c) => c.toJson(this as MulticastDto));+ return MulticastDtoMapper.ensureInitialized()+ .encodeJson<MulticastDto>(this as MulticastDto);}Map<String, dynamic> toJson() {- return MulticastDtoMapper._guard((c) => c.toMap(this as MulticastDto));+ return MulticastDtoMapper.ensureInitialized()+ .encodeMap<MulticastDto>(this as MulticastDto);}MulticastDtoCopyWith<MulticastDto, MulticastDto, MulticastDto> get copyWith =>_MulticastDtoCopyWithImpl(this as MulticastDto, $identity, $identity);@overrideString toString() {- return MulticastDtoMapper._guard((c) => c.asString(this));+ return MulticastDtoMapper.ensureInitialized()+ .stringifyValue(this as MulticastDto);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- MulticastDtoMapper._guard((c) => c.isEqual(this, other)));+ MulticastDtoMapper.ensureInitialized()+ .isValueEqual(this as MulticastDto, other));}@overrideint get hashCode {- return MulticastDtoMapper._guard((c) => c.hash(this));+ return MulticastDtoMapper.ensureInitialized()+ .hashValue(this as MulticastDto);}}diff --git a/app/lib/model/dto/prepare_upload_request_dto.mapper.dart b/app/lib/model/dto/prepare_upload_request_dto.mapper.dartindex 2e3e467f..44d793c5 100644--- a/app/lib/model/dto/prepare_upload_request_dto.mapper.dart+++ b/app/lib/model/dto/prepare_upload_request_dto.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'prepare_upload_request_dto.dart';@@ -19,11 +20,6 @@ class PrepareUploadRequestDtoMapperreturn _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'PrepareUploadRequestDto';@@ -49,23 +45,23 @@ class PrepareUploadRequestDtoMapperfinal Function instantiate = _instantiate;static PrepareUploadRequestDto fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<PrepareUploadRequestDto>(map));+ return ensureInitialized().decodeMap<PrepareUploadRequestDto>(map);}static PrepareUploadRequestDto deserialize(String json) {- return _guard((c) => c.fromJson<PrepareUploadRequestDto>(json));+ return ensureInitialized().decodeJson<PrepareUploadRequestDto>(json);}}mixin PrepareUploadRequestDtoMappable {String serialize() {- return PrepareUploadRequestDtoMapper._guard(- (c) => c.toJson(this as PrepareUploadRequestDto));+ return PrepareUploadRequestDtoMapper.ensureInitialized()+ .encodeJson<PrepareUploadRequestDto>(this as PrepareUploadRequestDto);}Map<String, dynamic> toJson() {- return PrepareUploadRequestDtoMapper._guard(- (c) => c.toMap(this as PrepareUploadRequestDto));+ return PrepareUploadRequestDtoMapper.ensureInitialized()+ .encodeMap<PrepareUploadRequestDto>(this as PrepareUploadRequestDto);}PrepareUploadRequestDtoCopyWith<PrepareUploadRequestDto,@@ -74,20 +70,22 @@ mixin PrepareUploadRequestDtoMappable {this as PrepareUploadRequestDto, $identity, $identity);@overrideString toString() {- return PrepareUploadRequestDtoMapper._guard((c) => c.asString(this));+ return PrepareUploadRequestDtoMapper.ensureInitialized()+ .stringifyValue(this as PrepareUploadRequestDto);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- PrepareUploadRequestDtoMapper._guard(- (c) => c.isEqual(this, other)));+ PrepareUploadRequestDtoMapper.ensureInitialized()+ .isValueEqual(this as PrepareUploadRequestDto, other));}@overrideint get hashCode {- return PrepareUploadRequestDtoMapper._guard((c) => c.hash(this));+ return PrepareUploadRequestDtoMapper.ensureInitialized()+ .hashValue(this as PrepareUploadRequestDto);}}diff --git a/app/lib/model/dto/prepare_upload_response_dto.mapper.dart b/app/lib/model/dto/prepare_upload_response_dto.mapper.dartindex 0ddc4f72..56bac69c 100644--- a/app/lib/model/dto/prepare_upload_response_dto.mapper.dart+++ b/app/lib/model/dto/prepare_upload_response_dto.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'prepare_upload_response_dto.dart';@@ -18,11 +19,6 @@ class PrepareUploadResponseDtoMapperreturn _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'PrepareUploadResponseDto';@@ -48,23 +44,23 @@ class PrepareUploadResponseDtoMapperfinal Function instantiate = _instantiate;static PrepareUploadResponseDto fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<PrepareUploadResponseDto>(map));+ return ensureInitialized().decodeMap<PrepareUploadResponseDto>(map);}static PrepareUploadResponseDto deserialize(String json) {- return _guard((c) => c.fromJson<PrepareUploadResponseDto>(json));+ return ensureInitialized().decodeJson<PrepareUploadResponseDto>(json);}}mixin PrepareUploadResponseDtoMappable {String serialize() {- return PrepareUploadResponseDtoMapper._guard(- (c) => c.toJson(this as PrepareUploadResponseDto));+ return PrepareUploadResponseDtoMapper.ensureInitialized()+ .encodeJson<PrepareUploadResponseDto>(this as PrepareUploadResponseDto);}Map<String, dynamic> toJson() {- return PrepareUploadResponseDtoMapper._guard(- (c) => c.toMap(this as PrepareUploadResponseDto));+ return PrepareUploadResponseDtoMapper.ensureInitialized()+ .encodeMap<PrepareUploadResponseDto>(this as PrepareUploadResponseDto);}PrepareUploadResponseDtoCopyWith<PrepareUploadResponseDto,@@ -73,20 +69,22 @@ mixin PrepareUploadResponseDtoMappable {this as PrepareUploadResponseDto, $identity, $identity);@overrideString toString() {- return PrepareUploadResponseDtoMapper._guard((c) => c.asString(this));+ return PrepareUploadResponseDtoMapper.ensureInitialized()+ .stringifyValue(this as PrepareUploadResponseDto);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- PrepareUploadResponseDtoMapper._guard(- (c) => c.isEqual(this, other)));+ PrepareUploadResponseDtoMapper.ensureInitialized()+ .isValueEqual(this as PrepareUploadResponseDto, other));}@overrideint get hashCode {- return PrepareUploadResponseDtoMapper._guard((c) => c.hash(this));+ return PrepareUploadResponseDtoMapper.ensureInitialized()+ .hashValue(this as PrepareUploadResponseDto);}}diff --git a/app/lib/model/dto/receive_request_response_dto.mapper.dart b/app/lib/model/dto/receive_request_response_dto.mapper.dartindex fe6bd709..c44467b7 100644--- a/app/lib/model/dto/receive_request_response_dto.mapper.dart+++ b/app/lib/model/dto/receive_request_response_dto.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'receive_request_response_dto.dart';@@ -19,11 +20,6 @@ class ReceiveRequestResponseDtoMapperreturn _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'ReceiveRequestResponseDto';@@ -55,23 +51,25 @@ class ReceiveRequestResponseDtoMapperfinal Function instantiate = _instantiate;static ReceiveRequestResponseDto fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<ReceiveRequestResponseDto>(map));+ return ensureInitialized().decodeMap<ReceiveRequestResponseDto>(map);}static ReceiveRequestResponseDto deserialize(String json) {- return _guard((c) => c.fromJson<ReceiveRequestResponseDto>(json));+ return ensureInitialized().decodeJson<ReceiveRequestResponseDto>(json);}}mixin ReceiveRequestResponseDtoMappable {String serialize() {- return ReceiveRequestResponseDtoMapper._guard(- (c) => c.toJson(this as ReceiveRequestResponseDto));+ return ReceiveRequestResponseDtoMapper.ensureInitialized()+ .encodeJson<ReceiveRequestResponseDto>(+ this as ReceiveRequestResponseDto);}Map<String, dynamic> toJson() {- return ReceiveRequestResponseDtoMapper._guard(- (c) => c.toMap(this as ReceiveRequestResponseDto));+ return ReceiveRequestResponseDtoMapper.ensureInitialized()+ .encodeMap<ReceiveRequestResponseDto>(+ this as ReceiveRequestResponseDto);}ReceiveRequestResponseDtoCopyWith<ReceiveRequestResponseDto,@@ -80,20 +78,22 @@ mixin ReceiveRequestResponseDtoMappable {this as ReceiveRequestResponseDto, $identity, $identity);@overrideString toString() {- return ReceiveRequestResponseDtoMapper._guard((c) => c.asString(this));+ return ReceiveRequestResponseDtoMapper.ensureInitialized()+ .stringifyValue(this as ReceiveRequestResponseDto);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- ReceiveRequestResponseDtoMapper._guard(- (c) => c.isEqual(this, other)));+ ReceiveRequestResponseDtoMapper.ensureInitialized()+ .isValueEqual(this as ReceiveRequestResponseDto, other));}@overrideint get hashCode {- return ReceiveRequestResponseDtoMapper._guard((c) => c.hash(this));+ return ReceiveRequestResponseDtoMapper.ensureInitialized()+ .hashValue(this as ReceiveRequestResponseDto);}}diff --git a/app/lib/model/dto/register_dto.mapper.dart b/app/lib/model/dto/register_dto.mapper.dartindex 58b96117..08e4bb1b 100644--- a/app/lib/model/dto/register_dto.mapper.dart+++ b/app/lib/model/dto/register_dto.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'register_dto.dart';@@ -18,11 +19,6 @@ class RegisterDtoMapper extends ClassMapperBase<RegisterDto> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'RegisterDto';@@ -77,40 +73,44 @@ class RegisterDtoMapper extends ClassMapperBase<RegisterDto> {final Function instantiate = _instantiate;static RegisterDto fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<RegisterDto>(map));+ return ensureInitialized().decodeMap<RegisterDto>(map);}static RegisterDto deserialize(String json) {- return _guard((c) => c.fromJson<RegisterDto>(json));+ return ensureInitialized().decodeJson<RegisterDto>(json);}}mixin RegisterDtoMappable {String serialize() {- return RegisterDtoMapper._guard((c) => c.toJson(this as RegisterDto));+ return RegisterDtoMapper.ensureInitialized()+ .encodeJson<RegisterDto>(this as RegisterDto);}Map<String, dynamic> toJson() {- return RegisterDtoMapper._guard((c) => c.toMap(this as RegisterDto));+ return RegisterDtoMapper.ensureInitialized()+ .encodeMap<RegisterDto>(this as RegisterDto);}RegisterDtoCopyWith<RegisterDto, RegisterDto, RegisterDto> get copyWith =>_RegisterDtoCopyWithImpl(this as RegisterDto, $identity, $identity);@overrideString toString() {- return RegisterDtoMapper._guard((c) => c.asString(this));+ return RegisterDtoMapper.ensureInitialized()+ .stringifyValue(this as RegisterDto);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- RegisterDtoMapper._guard((c) => c.isEqual(this, other)));+ RegisterDtoMapper.ensureInitialized()+ .isValueEqual(this as RegisterDto, other));}@overrideint get hashCode {- return RegisterDtoMapper._guard((c) => c.hash(this));+ return RegisterDtoMapper.ensureInitialized().hashValue(this as RegisterDto);}}diff --git a/app/lib/model/file_type.mapper.dart b/app/lib/model/file_type.mapper.dartindex 76c4056d..b0be20d7 100644--- a/app/lib/model/file_type.mapper.dart+++ b/app/lib/model/file_type.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'file_type.dart';diff --git a/app/lib/model/log_entry.mapper.dart b/app/lib/model/log_entry.mapper.dartindex e72bdb43..fa0c5d97 100644--- a/app/lib/model/log_entry.mapper.dart+++ b/app/lib/model/log_entry.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'log_entry.dart';@@ -16,11 +17,6 @@ class LogEntryMapper extends ClassMapperBase<LogEntry> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'LogEntry';@@ -44,40 +40,43 @@ class LogEntryMapper extends ClassMapperBase<LogEntry> {final Function instantiate = _instantiate;static LogEntry fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<LogEntry>(map));+ return ensureInitialized().decodeMap<LogEntry>(map);}static LogEntry deserialize(String json) {- return _guard((c) => c.fromJson<LogEntry>(json));+ return ensureInitialized().decodeJson<LogEntry>(json);}}mixin LogEntryMappable {String serialize() {- return LogEntryMapper._guard((c) => c.toJson(this as LogEntry));+ return LogEntryMapper.ensureInitialized()+ .encodeJson<LogEntry>(this as LogEntry);}Map<String, dynamic> toJson() {- return LogEntryMapper._guard((c) => c.toMap(this as LogEntry));+ return LogEntryMapper.ensureInitialized()+ .encodeMap<LogEntry>(this as LogEntry);}LogEntryCopyWith<LogEntry, LogEntry, LogEntry> get copyWith =>_LogEntryCopyWithImpl(this as LogEntry, $identity, $identity);@overrideString toString() {- return LogEntryMapper._guard((c) => c.asString(this));+ return LogEntryMapper.ensureInitialized().stringifyValue(this as LogEntry);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- LogEntryMapper._guard((c) => c.isEqual(this, other)));+ LogEntryMapper.ensureInitialized()+ .isValueEqual(this as LogEntry, other));}@overrideint get hashCode {- return LogEntryMapper._guard((c) => c.hash(this));+ return LogEntryMapper.ensureInitialized().hashValue(this as LogEntry);}}diff --git a/app/lib/model/persistence/favorite_device.mapper.dart b/app/lib/model/persistence/favorite_device.mapper.dartindex 9174e58d..929e0c00 100644--- a/app/lib/model/persistence/favorite_device.mapper.dart+++ b/app/lib/model/persistence/favorite_device.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'favorite_device.dart';@@ -16,11 +17,6 @@ class FavoriteDeviceMapper extends ClassMapperBase<FavoriteDevice> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'FavoriteDevice';@@ -58,21 +54,23 @@ class FavoriteDeviceMapper extends ClassMapperBase<FavoriteDevice> {final Function instantiate = _instantiate;static FavoriteDevice fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<FavoriteDevice>(map));+ return ensureInitialized().decodeMap<FavoriteDevice>(map);}static FavoriteDevice deserialize(String json) {- return _guard((c) => c.fromJson<FavoriteDevice>(json));+ return ensureInitialized().decodeJson<FavoriteDevice>(json);}}mixin FavoriteDeviceMappable {String serialize() {- return FavoriteDeviceMapper._guard((c) => c.toJson(this as FavoriteDevice));+ return FavoriteDeviceMapper.ensureInitialized()+ .encodeJson<FavoriteDevice>(this as FavoriteDevice);}Map<String, dynamic> toJson() {- return FavoriteDeviceMapper._guard((c) => c.toMap(this as FavoriteDevice));+ return FavoriteDeviceMapper.ensureInitialized()+ .encodeMap<FavoriteDevice>(this as FavoriteDevice);}FavoriteDeviceCopyWith<FavoriteDevice, FavoriteDevice, FavoriteDevice>@@ -80,19 +78,22 @@ mixin FavoriteDeviceMappable {this as FavoriteDevice, $identity, $identity);@overrideString toString() {- return FavoriteDeviceMapper._guard((c) => c.asString(this));+ return FavoriteDeviceMapper.ensureInitialized()+ .stringifyValue(this as FavoriteDevice);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- FavoriteDeviceMapper._guard((c) => c.isEqual(this, other)));+ FavoriteDeviceMapper.ensureInitialized()+ .isValueEqual(this as FavoriteDevice, other));}@overrideint get hashCode {- return FavoriteDeviceMapper._guard((c) => c.hash(this));+ return FavoriteDeviceMapper.ensureInitialized()+ .hashValue(this as FavoriteDevice);}}diff --git a/app/lib/model/persistence/receive_history_entry.mapper.dart b/app/lib/model/persistence/receive_history_entry.mapper.dartindex e211e785..99630a06 100644--- a/app/lib/model/persistence/receive_history_entry.mapper.dart+++ b/app/lib/model/persistence/receive_history_entry.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'receive_history_entry.dart';@@ -17,11 +18,6 @@ class ReceiveHistoryEntryMapper extends ClassMapperBase<ReceiveHistoryEntry> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'ReceiveHistoryEntry';@@ -77,23 +73,23 @@ class ReceiveHistoryEntryMapper extends ClassMapperBase<ReceiveHistoryEntry> {final Function instantiate = _instantiate;static ReceiveHistoryEntry fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<ReceiveHistoryEntry>(map));+ return ensureInitialized().decodeMap<ReceiveHistoryEntry>(map);}static ReceiveHistoryEntry deserialize(String json) {- return _guard((c) => c.fromJson<ReceiveHistoryEntry>(json));+ return ensureInitialized().decodeJson<ReceiveHistoryEntry>(json);}}mixin ReceiveHistoryEntryMappable {String serialize() {- return ReceiveHistoryEntryMapper._guard(- (c) => c.toJson(this as ReceiveHistoryEntry));+ return ReceiveHistoryEntryMapper.ensureInitialized()+ .encodeJson<ReceiveHistoryEntry>(this as ReceiveHistoryEntry);}Map<String, dynamic> toJson() {- return ReceiveHistoryEntryMapper._guard(- (c) => c.toMap(this as ReceiveHistoryEntry));+ return ReceiveHistoryEntryMapper.ensureInitialized()+ .encodeMap<ReceiveHistoryEntry>(this as ReceiveHistoryEntry);}ReceiveHistoryEntryCopyWith<ReceiveHistoryEntry, ReceiveHistoryEntry,@@ -102,19 +98,22 @@ mixin ReceiveHistoryEntryMappable {this as ReceiveHistoryEntry, $identity, $identity);@overrideString toString() {- return ReceiveHistoryEntryMapper._guard((c) => c.asString(this));+ return ReceiveHistoryEntryMapper.ensureInitialized()+ .stringifyValue(this as ReceiveHistoryEntry);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- ReceiveHistoryEntryMapper._guard((c) => c.isEqual(this, other)));+ ReceiveHistoryEntryMapper.ensureInitialized()+ .isValueEqual(this as ReceiveHistoryEntry, other));}@overrideint get hashCode {- return ReceiveHistoryEntryMapper._guard((c) => c.hash(this));+ return ReceiveHistoryEntryMapper.ensureInitialized()+ .hashValue(this as ReceiveHistoryEntry);}}diff --git a/app/lib/model/persistence/stored_security_context.mapper.dart b/app/lib/model/persistence/stored_security_context.mapper.dartindex 855adae2..28bd116d 100644--- a/app/lib/model/persistence/stored_security_context.mapper.dart+++ b/app/lib/model/persistence/stored_security_context.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'stored_security_context.dart';@@ -17,11 +18,6 @@ class StoredSecurityContextMapperreturn _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'StoredSecurityContext';@@ -58,23 +54,23 @@ class StoredSecurityContextMapperfinal Function instantiate = _instantiate;static StoredSecurityContext fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<StoredSecurityContext>(map));+ return ensureInitialized().decodeMap<StoredSecurityContext>(map);}static StoredSecurityContext deserialize(String json) {- return _guard((c) => c.fromJson<StoredSecurityContext>(json));+ return ensureInitialized().decodeJson<StoredSecurityContext>(json);}}mixin StoredSecurityContextMappable {String serialize() {- return StoredSecurityContextMapper._guard(- (c) => c.toJson(this as StoredSecurityContext));+ return StoredSecurityContextMapper.ensureInitialized()+ .encodeJson<StoredSecurityContext>(this as StoredSecurityContext);}Map<String, dynamic> toJson() {- return StoredSecurityContextMapper._guard(- (c) => c.toMap(this as StoredSecurityContext));+ return StoredSecurityContextMapper.ensureInitialized()+ .encodeMap<StoredSecurityContext>(this as StoredSecurityContext);}StoredSecurityContextCopyWith<StoredSecurityContext, StoredSecurityContext,@@ -83,19 +79,22 @@ mixin StoredSecurityContextMappable {this as StoredSecurityContext, $identity, $identity);@overrideString toString() {- return StoredSecurityContextMapper._guard((c) => c.asString(this));+ return StoredSecurityContextMapper.ensureInitialized()+ .stringifyValue(this as StoredSecurityContext);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- StoredSecurityContextMapper._guard((c) => c.isEqual(this, other)));+ StoredSecurityContextMapper.ensureInitialized()+ .isValueEqual(this as StoredSecurityContext, other));}@overrideint get hashCode {- return StoredSecurityContextMapper._guard((c) => c.hash(this));+ return StoredSecurityContextMapper.ensureInitialized()+ .hashValue(this as StoredSecurityContext);}}diff --git a/app/lib/model/state/nearby_devices_state.mapper.dart b/app/lib/model/state/nearby_devices_state.mapper.dartindex 2ff691e1..6c9b7970 100644--- a/app/lib/model/state/nearby_devices_state.mapper.dart+++ b/app/lib/model/state/nearby_devices_state.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'nearby_devices_state.dart';@@ -17,11 +18,6 @@ class NearbyDevicesStateMapper extends ClassMapperBase<NearbyDevicesState> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'NearbyDevicesState';@@ -54,23 +50,23 @@ class NearbyDevicesStateMapper extends ClassMapperBase<NearbyDevicesState> {final Function instantiate = _instantiate;static NearbyDevicesState fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<NearbyDevicesState>(map));+ return ensureInitialized().decodeMap<NearbyDevicesState>(map);}static NearbyDevicesState deserialize(String json) {- return _guard((c) => c.fromJson<NearbyDevicesState>(json));+ return ensureInitialized().decodeJson<NearbyDevicesState>(json);}}mixin NearbyDevicesStateMappable {String serialize() {- return NearbyDevicesStateMapper._guard(- (c) => c.toJson(this as NearbyDevicesState));+ return NearbyDevicesStateMapper.ensureInitialized()+ .encodeJson<NearbyDevicesState>(this as NearbyDevicesState);}Map<String, dynamic> toJson() {- return NearbyDevicesStateMapper._guard(- (c) => c.toMap(this as NearbyDevicesState));+ return NearbyDevicesStateMapper.ensureInitialized()+ .encodeMap<NearbyDevicesState>(this as NearbyDevicesState);}NearbyDevicesStateCopyWith<NearbyDevicesState, NearbyDevicesState,@@ -79,19 +75,22 @@ mixin NearbyDevicesStateMappable {this as NearbyDevicesState, $identity, $identity);@overrideString toString() {- return NearbyDevicesStateMapper._guard((c) => c.asString(this));+ return NearbyDevicesStateMapper.ensureInitialized()+ .stringifyValue(this as NearbyDevicesState);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- NearbyDevicesStateMapper._guard((c) => c.isEqual(this, other)));+ NearbyDevicesStateMapper.ensureInitialized()+ .isValueEqual(this as NearbyDevicesState, other));}@overrideint get hashCode {- return NearbyDevicesStateMapper._guard((c) => c.hash(this));+ return NearbyDevicesStateMapper.ensureInitialized()+ .hashValue(this as NearbyDevicesState);}}diff --git a/app/lib/model/state/network_state.mapper.dart b/app/lib/model/state/network_state.mapper.dartindex 98556b4b..f93c3d8e 100644--- a/app/lib/model/state/network_state.mapper.dart+++ b/app/lib/model/state/network_state.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'network_state.dart';@@ -16,11 +17,6 @@ class NetworkStateMapper extends ClassMapperBase<NetworkState> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'NetworkState';@@ -46,40 +42,45 @@ class NetworkStateMapper extends ClassMapperBase<NetworkState> {final Function instantiate = _instantiate;static NetworkState fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<NetworkState>(map));+ return ensureInitialized().decodeMap<NetworkState>(map);}static NetworkState deserialize(String json) {- return _guard((c) => c.fromJson<NetworkState>(json));+ return ensureInitialized().decodeJson<NetworkState>(json);}}mixin NetworkStateMappable {String serialize() {- return NetworkStateMapper._guard((c) => c.toJson(this as NetworkState));+ return NetworkStateMapper.ensureInitialized()+ .encodeJson<NetworkState>(this as NetworkState);}Map<String, dynamic> toJson() {- return NetworkStateMapper._guard((c) => c.toMap(this as NetworkState));+ return NetworkStateMapper.ensureInitialized()+ .encodeMap<NetworkState>(this as NetworkState);}NetworkStateCopyWith<NetworkState, NetworkState, NetworkState> get copyWith =>_NetworkStateCopyWithImpl(this as NetworkState, $identity, $identity);@overrideString toString() {- return NetworkStateMapper._guard((c) => c.asString(this));+ return NetworkStateMapper.ensureInitialized()+ .stringifyValue(this as NetworkState);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- NetworkStateMapper._guard((c) => c.isEqual(this, other)));+ NetworkStateMapper.ensureInitialized()+ .isValueEqual(this as NetworkState, other));}@overrideint get hashCode {- return NetworkStateMapper._guard((c) => c.hash(this));+ return NetworkStateMapper.ensureInitialized()+ .hashValue(this as NetworkState);}}diff --git a/app/lib/model/state/purchase_state.mapper.dart b/app/lib/model/state/purchase_state.mapper.dartindex 75b46280..67830be5 100644--- a/app/lib/model/state/purchase_state.mapper.dart+++ b/app/lib/model/state/purchase_state.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'purchase_state.dart';@@ -16,11 +17,6 @@ class PurchaseStateMapper extends ClassMapperBase<PurchaseState> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'PurchaseState';@@ -53,21 +49,23 @@ class PurchaseStateMapper extends ClassMapperBase<PurchaseState> {final Function instantiate = _instantiate;static PurchaseState fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<PurchaseState>(map));+ return ensureInitialized().decodeMap<PurchaseState>(map);}static PurchaseState deserialize(String json) {- return _guard((c) => c.fromJson<PurchaseState>(json));+ return ensureInitialized().decodeJson<PurchaseState>(json);}}mixin PurchaseStateMappable {String serialize() {- return PurchaseStateMapper._guard((c) => c.toJson(this as PurchaseState));+ return PurchaseStateMapper.ensureInitialized()+ .encodeJson<PurchaseState>(this as PurchaseState);}Map<String, dynamic> toJson() {- return PurchaseStateMapper._guard((c) => c.toMap(this as PurchaseState));+ return PurchaseStateMapper.ensureInitialized()+ .encodeMap<PurchaseState>(this as PurchaseState);}PurchaseStateCopyWith<PurchaseState, PurchaseState, PurchaseState>@@ -75,19 +73,22 @@ mixin PurchaseStateMappable {this as PurchaseState, $identity, $identity);@overrideString toString() {- return PurchaseStateMapper._guard((c) => c.asString(this));+ return PurchaseStateMapper.ensureInitialized()+ .stringifyValue(this as PurchaseState);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- PurchaseStateMapper._guard((c) => c.isEqual(this, other)));+ PurchaseStateMapper.ensureInitialized()+ .isValueEqual(this as PurchaseState, other));}@overrideint get hashCode {- return PurchaseStateMapper._guard((c) => c.hash(this));+ return PurchaseStateMapper.ensureInitialized()+ .hashValue(this as PurchaseState);}}diff --git a/app/lib/model/state/send/send_session_state.mapper.dart b/app/lib/model/state/send/send_session_state.mapper.dartindex cd22dc8f..41122d04 100644--- a/app/lib/model/state/send/send_session_state.mapper.dart+++ b/app/lib/model/state/send/send_session_state.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'send_session_state.dart';@@ -18,11 +19,6 @@ class SendSessionStateMapper extends ClassMapperBase<SendSessionState> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'SendSessionState';@@ -89,23 +85,23 @@ class SendSessionStateMapper extends ClassMapperBase<SendSessionState> {final Function instantiate = _instantiate;static SendSessionState fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<SendSessionState>(map));+ return ensureInitialized().decodeMap<SendSessionState>(map);}static SendSessionState deserialize(String json) {- return _guard((c) => c.fromJson<SendSessionState>(json));+ return ensureInitialized().decodeJson<SendSessionState>(json);}}mixin SendSessionStateMappable {String serialize() {- return SendSessionStateMapper._guard(- (c) => c.toJson(this as SendSessionState));+ return SendSessionStateMapper.ensureInitialized()+ .encodeJson<SendSessionState>(this as SendSessionState);}Map<String, dynamic> toJson() {- return SendSessionStateMapper._guard(- (c) => c.toMap(this as SendSessionState));+ return SendSessionStateMapper.ensureInitialized()+ .encodeMap<SendSessionState>(this as SendSessionState);}SendSessionStateCopyWith<SendSessionState, SendSessionState, SendSessionState>@@ -113,19 +109,22 @@ mixin SendSessionStateMappable {this as SendSessionState, $identity, $identity);@overrideString toString() {- return SendSessionStateMapper._guard((c) => c.asString(this));+ return SendSessionStateMapper.ensureInitialized()+ .stringifyValue(this as SendSessionState);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- SendSessionStateMapper._guard((c) => c.isEqual(this, other)));+ SendSessionStateMapper.ensureInitialized()+ .isValueEqual(this as SendSessionState, other));}@overrideint get hashCode {- return SendSessionStateMapper._guard((c) => c.hash(this));+ return SendSessionStateMapper.ensureInitialized()+ .hashValue(this as SendSessionState);}}diff --git a/app/lib/model/state/send/sending_file.mapper.dart b/app/lib/model/state/send/sending_file.mapper.dartindex 1e9e5923..2c3b10be 100644--- a/app/lib/model/state/send/sending_file.mapper.dart+++ b/app/lib/model/state/send/sending_file.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'sending_file.dart';@@ -16,11 +17,6 @@ class SendingFileMapper extends ClassMapperBase<SendingFile> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'SendingFile';@@ -73,40 +69,44 @@ class SendingFileMapper extends ClassMapperBase<SendingFile> {final Function instantiate = _instantiate;static SendingFile fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<SendingFile>(map));+ return ensureInitialized().decodeMap<SendingFile>(map);}static SendingFile deserialize(String json) {- return _guard((c) => c.fromJson<SendingFile>(json));+ return ensureInitialized().decodeJson<SendingFile>(json);}}mixin SendingFileMappable {String serialize() {- return SendingFileMapper._guard((c) => c.toJson(this as SendingFile));+ return SendingFileMapper.ensureInitialized()+ .encodeJson<SendingFile>(this as SendingFile);}Map<String, dynamic> toJson() {- return SendingFileMapper._guard((c) => c.toMap(this as SendingFile));+ return SendingFileMapper.ensureInitialized()+ .encodeMap<SendingFile>(this as SendingFile);}SendingFileCopyWith<SendingFile, SendingFile, SendingFile> get copyWith =>_SendingFileCopyWithImpl(this as SendingFile, $identity, $identity);@overrideString toString() {- return SendingFileMapper._guard((c) => c.asString(this));+ return SendingFileMapper.ensureInitialized()+ .stringifyValue(this as SendingFile);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- SendingFileMapper._guard((c) => c.isEqual(this, other)));+ SendingFileMapper.ensureInitialized()+ .isValueEqual(this as SendingFile, other));}@overrideint get hashCode {- return SendingFileMapper._guard((c) => c.hash(this));+ return SendingFileMapper.ensureInitialized().hashValue(this as SendingFile);}}diff --git a/app/lib/model/state/send/web/web_send_file.mapper.dart b/app/lib/model/state/send/web/web_send_file.mapper.dartindex 68c9bfca..b2df295f 100644--- a/app/lib/model/state/send/web/web_send_file.mapper.dart+++ b/app/lib/model/state/send/web/web_send_file.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'web_send_file.dart';@@ -16,11 +17,6 @@ class WebSendFileMapper extends ClassMapperBase<WebSendFile> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'WebSendFile';@@ -54,40 +50,44 @@ class WebSendFileMapper extends ClassMapperBase<WebSendFile> {final Function instantiate = _instantiate;static WebSendFile fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<WebSendFile>(map));+ return ensureInitialized().decodeMap<WebSendFile>(map);}static WebSendFile deserialize(String json) {- return _guard((c) => c.fromJson<WebSendFile>(json));+ return ensureInitialized().decodeJson<WebSendFile>(json);}}mixin WebSendFileMappable {String serialize() {- return WebSendFileMapper._guard((c) => c.toJson(this as WebSendFile));+ return WebSendFileMapper.ensureInitialized()+ .encodeJson<WebSendFile>(this as WebSendFile);}Map<String, dynamic> toJson() {- return WebSendFileMapper._guard((c) => c.toMap(this as WebSendFile));+ return WebSendFileMapper.ensureInitialized()+ .encodeMap<WebSendFile>(this as WebSendFile);}WebSendFileCopyWith<WebSendFile, WebSendFile, WebSendFile> get copyWith =>_WebSendFileCopyWithImpl(this as WebSendFile, $identity, $identity);@overrideString toString() {- return WebSendFileMapper._guard((c) => c.asString(this));+ return WebSendFileMapper.ensureInitialized()+ .stringifyValue(this as WebSendFile);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- WebSendFileMapper._guard((c) => c.isEqual(this, other)));+ WebSendFileMapper.ensureInitialized()+ .isValueEqual(this as WebSendFile, other));}@overrideint get hashCode {- return WebSendFileMapper._guard((c) => c.hash(this));+ return WebSendFileMapper.ensureInitialized().hashValue(this as WebSendFile);}}diff --git a/app/lib/model/state/send/web/web_send_session.mapper.dart b/app/lib/model/state/send/web/web_send_session.mapper.dartindex 22acd8b3..e5ee714b 100644--- a/app/lib/model/state/send/web/web_send_session.mapper.dart+++ b/app/lib/model/state/send/web/web_send_session.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'web_send_session.dart';@@ -16,11 +17,6 @@ class WebSendSessionMapper extends ClassMapperBase<WebSendSession> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'WebSendSession';@@ -57,21 +53,23 @@ class WebSendSessionMapper extends ClassMapperBase<WebSendSession> {final Function instantiate = _instantiate;static WebSendSession fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<WebSendSession>(map));+ return ensureInitialized().decodeMap<WebSendSession>(map);}static WebSendSession deserialize(String json) {- return _guard((c) => c.fromJson<WebSendSession>(json));+ return ensureInitialized().decodeJson<WebSendSession>(json);}}mixin WebSendSessionMappable {String serialize() {- return WebSendSessionMapper._guard((c) => c.toJson(this as WebSendSession));+ return WebSendSessionMapper.ensureInitialized()+ .encodeJson<WebSendSession>(this as WebSendSession);}Map<String, dynamic> toJson() {- return WebSendSessionMapper._guard((c) => c.toMap(this as WebSendSession));+ return WebSendSessionMapper.ensureInitialized()+ .encodeMap<WebSendSession>(this as WebSendSession);}WebSendSessionCopyWith<WebSendSession, WebSendSession, WebSendSession>@@ -79,19 +77,22 @@ mixin WebSendSessionMappable {this as WebSendSession, $identity, $identity);@overrideString toString() {- return WebSendSessionMapper._guard((c) => c.asString(this));+ return WebSendSessionMapper.ensureInitialized()+ .stringifyValue(this as WebSendSession);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- WebSendSessionMapper._guard((c) => c.isEqual(this, other)));+ WebSendSessionMapper.ensureInitialized()+ .isValueEqual(this as WebSendSession, other));}@overrideint get hashCode {- return WebSendSessionMapper._guard((c) => c.hash(this));+ return WebSendSessionMapper.ensureInitialized()+ .hashValue(this as WebSendSession);}}diff --git a/app/lib/model/state/send/web/web_send_state.mapper.dart b/app/lib/model/state/send/web/web_send_state.mapper.dartindex 4f3a8426..f4d5ffa7 100644--- a/app/lib/model/state/send/web/web_send_state.mapper.dart+++ b/app/lib/model/state/send/web/web_send_state.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'web_send_state.dart';@@ -18,11 +19,6 @@ class WebSendStateMapper extends ClassMapperBase<WebSendState> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'WebSendState';@@ -48,40 +44,45 @@ class WebSendStateMapper extends ClassMapperBase<WebSendState> {final Function instantiate = _instantiate;static WebSendState fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<WebSendState>(map));+ return ensureInitialized().decodeMap<WebSendState>(map);}static WebSendState deserialize(String json) {- return _guard((c) => c.fromJson<WebSendState>(json));+ return ensureInitialized().decodeJson<WebSendState>(json);}}mixin WebSendStateMappable {String serialize() {- return WebSendStateMapper._guard((c) => c.toJson(this as WebSendState));+ return WebSendStateMapper.ensureInitialized()+ .encodeJson<WebSendState>(this as WebSendState);}Map<String, dynamic> toJson() {- return WebSendStateMapper._guard((c) => c.toMap(this as WebSendState));+ return WebSendStateMapper.ensureInitialized()+ .encodeMap<WebSendState>(this as WebSendState);}WebSendStateCopyWith<WebSendState, WebSendState, WebSendState> get copyWith =>_WebSendStateCopyWithImpl(this as WebSendState, $identity, $identity);@overrideString toString() {- return WebSendStateMapper._guard((c) => c.asString(this));+ return WebSendStateMapper.ensureInitialized()+ .stringifyValue(this as WebSendState);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- WebSendStateMapper._guard((c) => c.isEqual(this, other)));+ WebSendStateMapper.ensureInitialized()+ .isValueEqual(this as WebSendState, other));}@overrideint get hashCode {- return WebSendStateMapper._guard((c) => c.hash(this));+ return WebSendStateMapper.ensureInitialized()+ .hashValue(this as WebSendState);}}diff --git a/app/lib/model/state/server/receive_session_state.mapper.dart b/app/lib/model/state/server/receive_session_state.mapper.dartindex 527046e9..ecac77ac 100644--- a/app/lib/model/state/server/receive_session_state.mapper.dart+++ b/app/lib/model/state/server/receive_session_state.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'receive_session_state.dart';@@ -18,11 +19,6 @@ class ReceiveSessionStateMapper extends ClassMapperBase<ReceiveSessionState> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'ReceiveSessionState';@@ -88,23 +84,23 @@ class ReceiveSessionStateMapper extends ClassMapperBase<ReceiveSessionState> {final Function instantiate = _instantiate;static ReceiveSessionState fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<ReceiveSessionState>(map));+ return ensureInitialized().decodeMap<ReceiveSessionState>(map);}static ReceiveSessionState deserialize(String json) {- return _guard((c) => c.fromJson<ReceiveSessionState>(json));+ return ensureInitialized().decodeJson<ReceiveSessionState>(json);}}mixin ReceiveSessionStateMappable {String serialize() {- return ReceiveSessionStateMapper._guard(- (c) => c.toJson(this as ReceiveSessionState));+ return ReceiveSessionStateMapper.ensureInitialized()+ .encodeJson<ReceiveSessionState>(this as ReceiveSessionState);}Map<String, dynamic> toJson() {- return ReceiveSessionStateMapper._guard(- (c) => c.toMap(this as ReceiveSessionState));+ return ReceiveSessionStateMapper.ensureInitialized()+ .encodeMap<ReceiveSessionState>(this as ReceiveSessionState);}ReceiveSessionStateCopyWith<ReceiveSessionState, ReceiveSessionState,@@ -113,19 +109,22 @@ mixin ReceiveSessionStateMappable {this as ReceiveSessionState, $identity, $identity);@overrideString toString() {- return ReceiveSessionStateMapper._guard((c) => c.asString(this));+ return ReceiveSessionStateMapper.ensureInitialized()+ .stringifyValue(this as ReceiveSessionState);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- ReceiveSessionStateMapper._guard((c) => c.isEqual(this, other)));+ ReceiveSessionStateMapper.ensureInitialized()+ .isValueEqual(this as ReceiveSessionState, other));}@overrideint get hashCode {- return ReceiveSessionStateMapper._guard((c) => c.hash(this));+ return ReceiveSessionStateMapper.ensureInitialized()+ .hashValue(this as ReceiveSessionState);}}diff --git a/app/lib/model/state/server/receiving_file.mapper.dart b/app/lib/model/state/server/receiving_file.mapper.dartindex 08e92af0..38c0a5ba 100644--- a/app/lib/model/state/server/receiving_file.mapper.dart+++ b/app/lib/model/state/server/receiving_file.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'receiving_file.dart';@@ -16,11 +17,6 @@ class ReceivingFileMapper extends ClassMapperBase<ReceivingFile> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'ReceivingFile';@@ -69,21 +65,23 @@ class ReceivingFileMapper extends ClassMapperBase<ReceivingFile> {final Function instantiate = _instantiate;static ReceivingFile fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<ReceivingFile>(map));+ return ensureInitialized().decodeMap<ReceivingFile>(map);}static ReceivingFile deserialize(String json) {- return _guard((c) => c.fromJson<ReceivingFile>(json));+ return ensureInitialized().decodeJson<ReceivingFile>(json);}}mixin ReceivingFileMappable {String serialize() {- return ReceivingFileMapper._guard((c) => c.toJson(this as ReceivingFile));+ return ReceivingFileMapper.ensureInitialized()+ .encodeJson<ReceivingFile>(this as ReceivingFile);}Map<String, dynamic> toJson() {- return ReceivingFileMapper._guard((c) => c.toMap(this as ReceivingFile));+ return ReceivingFileMapper.ensureInitialized()+ .encodeMap<ReceivingFile>(this as ReceivingFile);}ReceivingFileCopyWith<ReceivingFile, ReceivingFile, ReceivingFile>@@ -91,19 +89,22 @@ mixin ReceivingFileMappable {this as ReceivingFile, $identity, $identity);@overrideString toString() {- return ReceivingFileMapper._guard((c) => c.asString(this));+ return ReceivingFileMapper.ensureInitialized()+ .stringifyValue(this as ReceivingFile);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- ReceivingFileMapper._guard((c) => c.isEqual(this, other)));+ ReceivingFileMapper.ensureInitialized()+ .isValueEqual(this as ReceivingFile, other));}@overrideint get hashCode {- return ReceivingFileMapper._guard((c) => c.hash(this));+ return ReceivingFileMapper.ensureInitialized()+ .hashValue(this as ReceivingFile);}}diff --git a/app/lib/model/state/server/server_state.mapper.dart b/app/lib/model/state/server/server_state.mapper.dartindex 1895cdfa..fd88c409 100644--- a/app/lib/model/state/server/server_state.mapper.dart+++ b/app/lib/model/state/server/server_state.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'server_state.dart';@@ -18,11 +19,6 @@ class ServerStateMapper extends ClassMapperBase<ServerState> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'ServerState';@@ -66,40 +62,44 @@ class ServerStateMapper extends ClassMapperBase<ServerState> {final Function instantiate = _instantiate;static ServerState fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<ServerState>(map));+ return ensureInitialized().decodeMap<ServerState>(map);}static ServerState deserialize(String json) {- return _guard((c) => c.fromJson<ServerState>(json));+ return ensureInitialized().decodeJson<ServerState>(json);}}mixin ServerStateMappable {String serialize() {- return ServerStateMapper._guard((c) => c.toJson(this as ServerState));+ return ServerStateMapper.ensureInitialized()+ .encodeJson<ServerState>(this as ServerState);}Map<String, dynamic> toJson() {- return ServerStateMapper._guard((c) => c.toMap(this as ServerState));+ return ServerStateMapper.ensureInitialized()+ .encodeMap<ServerState>(this as ServerState);}ServerStateCopyWith<ServerState, ServerState, ServerState> get copyWith =>_ServerStateCopyWithImpl(this as ServerState, $identity, $identity);@overrideString toString() {- return ServerStateMapper._guard((c) => c.asString(this));+ return ServerStateMapper.ensureInitialized()+ .stringifyValue(this as ServerState);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- ServerStateMapper._guard((c) => c.isEqual(this, other)));+ ServerStateMapper.ensureInitialized()+ .isValueEqual(this as ServerState, other));}@overrideint get hashCode {- return ServerStateMapper._guard((c) => c.hash(this));+ return ServerStateMapper.ensureInitialized().hashValue(this as ServerState);}}diff --git a/app/lib/model/state/settings_state.mapper.dart b/app/lib/model/state/settings_state.mapper.dartindex fd41edc0..cd9a426e 100644--- a/app/lib/model/state/settings_state.mapper.dart+++ b/app/lib/model/state/settings_state.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'settings_state.dart';@@ -17,11 +18,6 @@ class SettingsStateMapper extends ClassMapperBase<SettingsState> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'SettingsState';@@ -136,21 +132,23 @@ class SettingsStateMapper extends ClassMapperBase<SettingsState> {final Function instantiate = _instantiate;static SettingsState fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<SettingsState>(map));+ return ensureInitialized().decodeMap<SettingsState>(map);}static SettingsState deserialize(String json) {- return _guard((c) => c.fromJson<SettingsState>(json));+ return ensureInitialized().decodeJson<SettingsState>(json);}}mixin SettingsStateMappable {String serialize() {- return SettingsStateMapper._guard((c) => c.toJson(this as SettingsState));+ return SettingsStateMapper.ensureInitialized()+ .encodeJson<SettingsState>(this as SettingsState);}Map<String, dynamic> toJson() {- return SettingsStateMapper._guard((c) => c.toMap(this as SettingsState));+ return SettingsStateMapper.ensureInitialized()+ .encodeMap<SettingsState>(this as SettingsState);}SettingsStateCopyWith<SettingsState, SettingsState, SettingsState>@@ -158,19 +156,22 @@ mixin SettingsStateMappable {this as SettingsState, $identity, $identity);@overrideString toString() {- return SettingsStateMapper._guard((c) => c.asString(this));+ return SettingsStateMapper.ensureInitialized()+ .stringifyValue(this as SettingsState);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- SettingsStateMapper._guard((c) => c.isEqual(this, other)));+ SettingsStateMapper.ensureInitialized()+ .isValueEqual(this as SettingsState, other));}@overrideint get hashCode {- return SettingsStateMapper._guard((c) => c.hash(this));+ return SettingsStateMapper.ensureInitialized()+ .hashValue(this as SettingsState);}}diff --git a/app/lib/pages/tabs/settings_tab_vm.mapper.dart b/app/lib/pages/tabs/settings_tab_vm.mapper.dartindex 0c703f4e..36292506 100644--- a/app/lib/pages/tabs/settings_tab_vm.mapper.dart+++ b/app/lib/pages/tabs/settings_tab_vm.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'settings_tab_vm.dart';@@ -18,11 +19,6 @@ class SettingsTabVmMapper extends ClassMapperBase<SettingsTabVm> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'SettingsTabVm';@@ -137,21 +133,23 @@ class SettingsTabVmMapper extends ClassMapperBase<SettingsTabVm> {final Function instantiate = _instantiate;static SettingsTabVm fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<SettingsTabVm>(map));+ return ensureInitialized().decodeMap<SettingsTabVm>(map);}static SettingsTabVm deserialize(String json) {- return _guard((c) => c.fromJson<SettingsTabVm>(json));+ return ensureInitialized().decodeJson<SettingsTabVm>(json);}}mixin SettingsTabVmMappable {String serialize() {- return SettingsTabVmMapper._guard((c) => c.toJson(this as SettingsTabVm));+ return SettingsTabVmMapper.ensureInitialized()+ .encodeJson<SettingsTabVm>(this as SettingsTabVm);}Map<String, dynamic> toJson() {- return SettingsTabVmMapper._guard((c) => c.toMap(this as SettingsTabVm));+ return SettingsTabVmMapper.ensureInitialized()+ .encodeMap<SettingsTabVm>(this as SettingsTabVm);}SettingsTabVmCopyWith<SettingsTabVm, SettingsTabVm, SettingsTabVm>@@ -159,19 +157,22 @@ mixin SettingsTabVmMappable {this as SettingsTabVm, $identity, $identity);@overrideString toString() {- return SettingsTabVmMapper._guard((c) => c.asString(this));+ return SettingsTabVmMapper.ensureInitialized()+ .stringifyValue(this as SettingsTabVm);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- SettingsTabVmMapper._guard((c) => c.isEqual(this, other)));+ SettingsTabVmMapper.ensureInitialized()+ .isValueEqual(this as SettingsTabVm, other));}@overrideint get hashCode {- return SettingsTabVmMapper._guard((c) => c.hash(this));+ return SettingsTabVmMapper.ensureInitialized()+ .hashValue(this as SettingsTabVm);}}diff --git a/app/lib/provider/param/apk_provider_param.mapper.dart b/app/lib/provider/param/apk_provider_param.mapper.dartindex c58e418c..dacb69ef 100644--- a/app/lib/provider/param/apk_provider_param.mapper.dart+++ b/app/lib/provider/param/apk_provider_param.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'apk_provider_param.dart';@@ -16,11 +17,6 @@ class ApkProviderParamMapper extends ClassMapperBase<ApkProviderParam> {return _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'ApkProviderParam';@@ -53,23 +49,23 @@ class ApkProviderParamMapper extends ClassMapperBase<ApkProviderParam> {final Function instantiate = _instantiate;static ApkProviderParam fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<ApkProviderParam>(map));+ return ensureInitialized().decodeMap<ApkProviderParam>(map);}static ApkProviderParam deserialize(String json) {- return _guard((c) => c.fromJson<ApkProviderParam>(json));+ return ensureInitialized().decodeJson<ApkProviderParam>(json);}}mixin ApkProviderParamMappable {String serialize() {- return ApkProviderParamMapper._guard(- (c) => c.toJson(this as ApkProviderParam));+ return ApkProviderParamMapper.ensureInitialized()+ .encodeJson<ApkProviderParam>(this as ApkProviderParam);}Map<String, dynamic> toJson() {- return ApkProviderParamMapper._guard(- (c) => c.toMap(this as ApkProviderParam));+ return ApkProviderParamMapper.ensureInitialized()+ .encodeMap<ApkProviderParam>(this as ApkProviderParam);}ApkProviderParamCopyWith<ApkProviderParam, ApkProviderParam, ApkProviderParam>@@ -77,19 +73,22 @@ mixin ApkProviderParamMappable {this as ApkProviderParam, $identity, $identity);@overrideString toString() {- return ApkProviderParamMapper._guard((c) => c.asString(this));+ return ApkProviderParamMapper.ensureInitialized()+ .stringifyValue(this as ApkProviderParam);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- ApkProviderParamMapper._guard((c) => c.isEqual(this, other)));+ ApkProviderParamMapper.ensureInitialized()+ .isValueEqual(this as ApkProviderParam, other));}@overrideint get hashCode {- return ApkProviderParamMapper._guard((c) => c.hash(this));+ return ApkProviderParamMapper.ensureInitialized()+ .hashValue(this as ApkProviderParam);}}diff --git a/app/lib/provider/param/cached_apk_provider_param.mapper.dart b/app/lib/provider/param/cached_apk_provider_param.mapper.dartindex 068d2888..82619f5e 100644--- a/app/lib/provider/param/cached_apk_provider_param.mapper.dart+++ b/app/lib/provider/param/cached_apk_provider_param.mapper.dart@@ -1,7 +1,8 @@// coverage:ignore-file// GENERATED CODE - DO NOT MODIFY BY HAND// ignore_for_file: type=lint-// ignore_for_file: unused_element+// ignore_for_file: unused_element, unnecessary_cast+// ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameterpart of 'cached_apk_provider_param.dart';@@ -17,11 +18,6 @@ class CachedApkProviderParamMapperreturn _instance!;}- static T _guard<T>(T Function(MapperContainer) fn) {- ensureInitialized();- return fn(MapperContainer.globals);- }-@overridefinal String id = 'CachedApkProviderParam';@@ -50,23 +46,23 @@ class CachedApkProviderParamMapperfinal Function instantiate = _instantiate;static CachedApkProviderParam fromJson(Map<String, dynamic> map) {- return _guard((c) => c.fromMap<CachedApkProviderParam>(map));+ return ensureInitialized().decodeMap<CachedApkProviderParam>(map);}static CachedApkProviderParam deserialize(String json) {- return _guard((c) => c.fromJson<CachedApkProviderParam>(json));+ return ensureInitialized().decodeJson<CachedApkProviderParam>(json);}}mixin CachedApkProviderParamMappable {String serialize() {- return CachedApkProviderParamMapper._guard(- (c) => c.toJson(this as CachedApkProviderParam));+ return CachedApkProviderParamMapper.ensureInitialized()+ .encodeJson<CachedApkProviderParam>(this as CachedApkProviderParam);}Map<String, dynamic> toJson() {- return CachedApkProviderParamMapper._guard(- (c) => c.toMap(this as CachedApkProviderParam));+ return CachedApkProviderParamMapper.ensureInitialized()+ .encodeMap<CachedApkProviderParam>(this as CachedApkProviderParam);}CachedApkProviderParamCopyWith<CachedApkProviderParam, CachedApkProviderParam,@@ -75,19 +71,22 @@ mixin CachedApkProviderParamMappable {this as CachedApkProviderParam, $identity, $identity);@overrideString toString() {- return CachedApkProviderParamMapper._guard((c) => c.asString(this));+ return CachedApkProviderParamMapper.ensureInitialized()+ .stringifyValue(this as CachedApkProviderParam);}@overridebool operator ==(Object other) {return identical(this, other) ||(runtimeType == other.runtimeType &&- CachedApkProviderParamMapper._guard((c) => c.isEqual(this, other)));+ CachedApkProviderParamMapper.ensureInitialized()+ .isValueEqual(this as CachedApkProviderParam, other));}@overrideint get hashCode {- return CachedApkProviderParamMapper._guard((c) => c.hash(this));+ return CachedApkProviderParamMapper.ensureInitialized()+ .hashValue(this as CachedApkProviderParam);}}diff --git a/app/pubspec.lock b/app/pubspec.lockindex 01854113..e04286aa 100644--- a/app/pubspec.lock+++ b/app/pubspec.lock@@ -101,10 +101,10 @@ packages:dependency: "direct dev"description:name: build_runner- sha256: "10c6bcdbf9d049a0b666702cf1cee4ddfdc38f02a19d35ae392863b47519848b"+ sha256: "67d591d602906ef9201caf93452495ad1812bea2074f04e25dbd7c133785821b"url: "https://pub.dev"source: hosted- version: "2.4.6"+ version: "2.4.7"build_runner_core:dependency: transitivedescription:@@ -268,18 +268,18 @@ packages:dependency: "direct main"description:name: dart_mappable- sha256: f3c0dacde18fe0a05818a797e811f76ab58d7295cdd326c5dbe3592fe62466da+ sha256: c2d4775336d7166590766a1c4451edde2a302efe2a2a35ac09eef9025102e10furl: "https://pub.dev"source: hosted- version: "3.3.1"+ version: "4.0.1"dart_mappable_builder:dependency: "direct dev"description:name: dart_mappable_builder- sha256: ce10c4c19cb9071461703e6186bb50ff7ec806c99ef717cab9ed25099d09f8bd+ sha256: "41926353f9bc20f659c39f1d83d90c9ae5fd0d14aec9b59732cf714eee589b7a"url: "https://pub.dev"source: hosted- version: "3.3.0"+ version: "4.0.1"dart_style:dependency: transitivedescription:@@ -518,10 +518,10 @@ packages:dependency: "direct main"description:name: flutter_markdown- sha256: "8afc9a6aa6d8e8063523192ba837149dbf3d377a37c0b0fc579149a1fbd4a619"+ sha256: "35108526a233cc0755664d445f8a6b4b61e6f8fe993b3658b80b4a26827fc196"url: "https://pub.dev"source: hosted- version: "0.6.18"+ version: "0.6.18+2"flutter_plugin_android_lifecycle:dependency: transitivedescription:@@ -856,10 +856,10 @@ packages:dependency: "direct dev"description:name: msix- sha256: "6e76e2491d5c809d784ce2b68e6c3426097fb5c68e61fe121c8c3341ab89bf46"+ sha256: "957d04eee260e4bd15bec1fdb988dfc73718285e201cf89d97ef01ef38e66d4c"url: "https://pub.dev"source: hosted- version: "3.16.4"+ version: "3.16.6"nested:dependency: transitivedescription:@@ -1105,10 +1105,10 @@ packages:dependency: "direct main"description:name: pretty_qr_code- sha256: ea7ccb3069e0f5b89b441449b9ec10f4148ddda7a4bef89a130d2ebdaa0be647+ sha256: "799fa8d5c605028302cb7debbf3f180ce56678c4927fb2ecc4b174a3bee526d6"url: "https://pub.dev"source: hosted- version: "2.0.3"+ version: "3.0.0"provider:dependency: transitivedescription:@@ -1511,10 +1511,10 @@ packages:dependency: transitivedescription:name: type_plus- sha256: "52af1140887d0ce0ea89c768dfde1b244cd531221c7f48c8c29b1d24ae8aed9a"+ sha256: "2e33cfac2e129297d5874567bdf7587502ec359881e9318551e014d91b02f84a"url: "https://pub.dev"source: hosted- version: "1.1.0"+ version: "2.1.0"typed_data:dependency: transitivedescription:diff --git a/app/pubspec.yaml b/app/pubspec.yamlindex 8922c8ab..259ad331 100644--- a/app/pubspec.yaml+++ b/app/pubspec.yaml@@ -15,7 +15,7 @@ dependencies:common:path: ../commonconnectivity_plus: 5.0.2- dart_mappable: 3.3.1+ dart_mappable: 4.0.1desktop_drop: 0.4.4device_apps: 2.2.0device_info_plus: 9.1.1@@ -28,7 +28,7 @@ dependencies:flutter_displaymode: 0.6.0flutter_localizations:sdk: flutter- flutter_markdown: 0.6.18+ flutter_markdown: 0.6.18+2gal: 2.1.3image_picker: 1.0.4in_app_purchase: 3.1.11@@ -47,7 +47,7 @@ dependencies:# Remove this when wechat_assets_picker is updated to 8.9.0photo_manager: 3.0.0-dev.2- pretty_qr_code: 2.0.3+ pretty_qr_code: 3.0.0refena_flutter: 1.5.0refena_inspector_client: 1.2.0routerino: 0.8.0@@ -75,11 +75,11 @@ dependencies:yaru: 1.2.0dev_dependencies:- build_runner: 2.4.6- dart_mappable_builder: 3.3.0+ build_runner: 2.4.7+ dart_mappable_builder: 4.0.1flutter_gen_runner: 5.3.2flutter_lints: 3.0.1- msix: 3.16.4+ msix: 3.16.6refena_inspector: 1.2.0slang_build_runner: 3.25.0slang_gpt: 0.10.0