mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-08 20:07:46 -06:00
Remove all generated files, add fdroid metadata skeleton
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -49,8 +49,9 @@ app.*.map.json
|
|||||||
/android/app/profile
|
/android/app/profile
|
||||||
/android/app/release
|
/android/app/release
|
||||||
|
|
||||||
# Injectable generated files
|
# build_runner generated files
|
||||||
di_initializer.config.dart
|
lib/**/*.g.dart
|
||||||
|
packages/**/*.g.dart
|
||||||
|
|
||||||
# mockito generated files
|
# mockito generated files
|
||||||
*.mocks.dart
|
*.mocks.dart
|
||||||
|
|||||||
0
android/metadata/en-US/full_description.txt
Normal file
0
android/metadata/en-US/full_description.txt
Normal file
BIN
android/metadata/en-US/images/icon.png
Normal file
BIN
android/metadata/en-US/images/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
0
android/metadata/en-US/short_description.txt
Normal file
0
android/metadata/en-US/short_description.txt
Normal file
@@ -1,25 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'correspondent_repository_state.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
CorrespondentRepositoryState _$CorrespondentRepositoryStateFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
CorrespondentRepositoryState(
|
|
||||||
values: (json['values'] as Map<String, dynamic>?)?.map(
|
|
||||||
(k, e) => MapEntry(int.parse(k),
|
|
||||||
Correspondent.fromJson(e as Map<String, dynamic>)),
|
|
||||||
) ??
|
|
||||||
const {},
|
|
||||||
hasLoaded: json['hasLoaded'] as bool? ?? false,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$CorrespondentRepositoryStateToJson(
|
|
||||||
CorrespondentRepositoryState instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'values': instance.values?.map((k, e) => MapEntry(k.toString(), e)),
|
|
||||||
'hasLoaded': instance.hasLoaded,
|
|
||||||
};
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'document_type_repository_state.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
DocumentTypeRepositoryState _$DocumentTypeRepositoryStateFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
DocumentTypeRepositoryState(
|
|
||||||
values: (json['values'] as Map<String, dynamic>?)?.map(
|
|
||||||
(k, e) => MapEntry(
|
|
||||||
int.parse(k), DocumentType.fromJson(e as Map<String, dynamic>)),
|
|
||||||
) ??
|
|
||||||
const {},
|
|
||||||
hasLoaded: json['hasLoaded'] as bool? ?? false,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$DocumentTypeRepositoryStateToJson(
|
|
||||||
DocumentTypeRepositoryState instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'values': instance.values?.map((k, e) => MapEntry(k.toString(), e)),
|
|
||||||
'hasLoaded': instance.hasLoaded,
|
|
||||||
};
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'saved_view_repository_state.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
SavedViewRepositoryState _$SavedViewRepositoryStateFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
SavedViewRepositoryState(
|
|
||||||
values: (json['values'] as Map<String, dynamic>?)?.map(
|
|
||||||
(k, e) => MapEntry(
|
|
||||||
int.parse(k), SavedView.fromJson(e as Map<String, dynamic>)),
|
|
||||||
) ??
|
|
||||||
const {},
|
|
||||||
hasLoaded: json['hasLoaded'] as bool? ?? false,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$SavedViewRepositoryStateToJson(
|
|
||||||
SavedViewRepositoryState instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'values': instance.values?.map((k, e) => MapEntry(k.toString(), e)),
|
|
||||||
'hasLoaded': instance.hasLoaded,
|
|
||||||
};
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'storage_path_repository_state.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
StoragePathRepositoryState _$StoragePathRepositoryStateFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
StoragePathRepositoryState(
|
|
||||||
values: (json['values'] as Map<String, dynamic>?)?.map(
|
|
||||||
(k, e) => MapEntry(
|
|
||||||
int.parse(k), StoragePath.fromJson(e as Map<String, dynamic>)),
|
|
||||||
) ??
|
|
||||||
const {},
|
|
||||||
hasLoaded: json['hasLoaded'] as bool? ?? false,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$StoragePathRepositoryStateToJson(
|
|
||||||
StoragePathRepositoryState instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'values': instance.values?.map((k, e) => MapEntry(k.toString(), e)),
|
|
||||||
'hasLoaded': instance.hasLoaded,
|
|
||||||
};
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'tag_repository_state.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
TagRepositoryState _$TagRepositoryStateFromJson(Map<String, dynamic> json) =>
|
|
||||||
TagRepositoryState(
|
|
||||||
values: (json['values'] as Map<String, dynamic>?)?.map(
|
|
||||||
(k, e) =>
|
|
||||||
MapEntry(int.parse(k), Tag.fromJson(e as Map<String, dynamic>)),
|
|
||||||
) ??
|
|
||||||
const {},
|
|
||||||
hasLoaded: json['hasLoaded'] as bool? ?? false,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$TagRepositoryStateToJson(TagRepositoryState instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'values': instance.values?.map((k, e) => MapEntry(k.toString(), e)),
|
|
||||||
'hasLoaded': instance.hasLoaded,
|
|
||||||
};
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'document_search_state.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
DocumentSearchState _$DocumentSearchStateFromJson(Map<String, dynamic> json) =>
|
|
||||||
DocumentSearchState(
|
|
||||||
searchHistory: (json['searchHistory'] as List<dynamic>?)
|
|
||||||
?.map((e) => e as String)
|
|
||||||
.toList() ??
|
|
||||||
const [],
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$DocumentSearchStateToJson(
|
|
||||||
DocumentSearchState instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'searchHistory': instance.searchHistory,
|
|
||||||
};
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'inbox_state.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
InboxState _$InboxStateFromJson(Map<String, dynamic> json) => InboxState(
|
|
||||||
isHintAcknowledged: json['isHintAcknowledged'] as bool? ?? false,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$InboxStateToJson(InboxState instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'isHintAcknowledged': instance.isHintAcknowledged,
|
|
||||||
};
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'authentication_state.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
AuthenticationState _$AuthenticationStateFromJson(Map<String, dynamic> json) =>
|
|
||||||
AuthenticationState(
|
|
||||||
wasLoginStored: json['wasLoginStored'] as bool,
|
|
||||||
authentication: json['authentication'] == null
|
|
||||||
? null
|
|
||||||
: AuthenticationInformation.fromJson(
|
|
||||||
json['authentication'] as Map<String, dynamic>),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$AuthenticationStateToJson(
|
|
||||||
AuthenticationState instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'wasLoginStored': instance.wasLoginStored,
|
|
||||||
'authentication': instance.authentication,
|
|
||||||
};
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'authentication_information.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
AuthenticationInformation _$AuthenticationInformationFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
AuthenticationInformation(
|
|
||||||
token: json['token'] as String?,
|
|
||||||
serverUrl: json['serverUrl'] as String,
|
|
||||||
clientCertificate: json['clientCertificate'] == null
|
|
||||||
? null
|
|
||||||
: ClientCertificate.fromJson(
|
|
||||||
json['clientCertificate'] as Map<String, dynamic>),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$AuthenticationInformationToJson(
|
|
||||||
AuthenticationInformation instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'token': instance.token,
|
|
||||||
'serverUrl': instance.serverUrl,
|
|
||||||
'clientCertificate': instance.clientCertificate,
|
|
||||||
};
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'open_created_document_notification_payload.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
CreateDocumentSuccessNotificationResponsePayload
|
|
||||||
_$CreateDocumentSuccessNotificationResponsePayloadFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
CreateDocumentSuccessNotificationResponsePayload(
|
|
||||||
json['documentId'] as int,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$CreateDocumentSuccessNotificationResponsePayloadToJson(
|
|
||||||
CreateDocumentSuccessNotificationResponsePayload instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'documentId': instance.documentId,
|
|
||||||
};
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'application_settings_state.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
ApplicationSettingsState _$ApplicationSettingsStateFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
ApplicationSettingsState(
|
|
||||||
preferredLocaleSubtag: json['preferredLocaleSubtag'] as String,
|
|
||||||
preferredThemeMode:
|
|
||||||
$enumDecodeNullable(_$ThemeModeEnumMap, json['preferredThemeMode']) ??
|
|
||||||
ThemeMode.system,
|
|
||||||
isLocalAuthenticationEnabled:
|
|
||||||
json['isLocalAuthenticationEnabled'] as bool? ?? false,
|
|
||||||
preferredViewType:
|
|
||||||
$enumDecodeNullable(_$ViewTypeEnumMap, json['preferredViewType']) ??
|
|
||||||
ViewType.list,
|
|
||||||
preferredColorSchemeOption: $enumDecodeNullable(
|
|
||||||
_$ColorSchemeOptionEnumMap, json['preferredColorSchemeOption']) ??
|
|
||||||
ColorSchemeOption.classic,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$ApplicationSettingsStateToJson(
|
|
||||||
ApplicationSettingsState instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'isLocalAuthenticationEnabled': instance.isLocalAuthenticationEnabled,
|
|
||||||
'preferredLocaleSubtag': instance.preferredLocaleSubtag,
|
|
||||||
'preferredThemeMode': _$ThemeModeEnumMap[instance.preferredThemeMode]!,
|
|
||||||
'preferredViewType': _$ViewTypeEnumMap[instance.preferredViewType]!,
|
|
||||||
'preferredColorSchemeOption':
|
|
||||||
_$ColorSchemeOptionEnumMap[instance.preferredColorSchemeOption]!,
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$ThemeModeEnumMap = {
|
|
||||||
ThemeMode.system: 'system',
|
|
||||||
ThemeMode.light: 'light',
|
|
||||||
ThemeMode.dark: 'dark',
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$ViewTypeEnumMap = {
|
|
||||||
ViewType.grid: 'grid',
|
|
||||||
ViewType.list: 'list',
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$ColorSchemeOptionEnumMap = {
|
|
||||||
ColorSchemeOption.classic: 'classic',
|
|
||||||
ColorSchemeOption.dynamic: 'dynamic',
|
|
||||||
};
|
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'document_filter.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
DocumentFilter _$DocumentFilterFromJson(Map<String, dynamic> json) =>
|
|
||||||
DocumentFilter(
|
|
||||||
documentType: json['documentType'] == null
|
|
||||||
? const IdQueryParameter.unset()
|
|
||||||
: IdQueryParameter.fromJson(
|
|
||||||
json['documentType'] as Map<String, dynamic>),
|
|
||||||
correspondent: json['correspondent'] == null
|
|
||||||
? const IdQueryParameter.unset()
|
|
||||||
: IdQueryParameter.fromJson(
|
|
||||||
json['correspondent'] as Map<String, dynamic>),
|
|
||||||
storagePath: json['storagePath'] == null
|
|
||||||
? const IdQueryParameter.unset()
|
|
||||||
: IdQueryParameter.fromJson(
|
|
||||||
json['storagePath'] as Map<String, dynamic>),
|
|
||||||
asnQuery: json['asnQuery'] == null
|
|
||||||
? const IdQueryParameter.unset()
|
|
||||||
: IdQueryParameter.fromJson(json['asnQuery'] as Map<String, dynamic>),
|
|
||||||
tags: json['tags'] == null
|
|
||||||
? const IdsTagsQuery()
|
|
||||||
: const TagsQueryJsonConverter()
|
|
||||||
.fromJson(json['tags'] as Map<String, dynamic>),
|
|
||||||
sortField: $enumDecodeNullable(_$SortFieldEnumMap, json['sortField']) ??
|
|
||||||
SortField.created,
|
|
||||||
sortOrder: $enumDecodeNullable(_$SortOrderEnumMap, json['sortOrder']) ??
|
|
||||||
SortOrder.descending,
|
|
||||||
page: json['page'] as int? ?? 1,
|
|
||||||
pageSize: json['pageSize'] as int? ?? 25,
|
|
||||||
query: json['query'] == null
|
|
||||||
? const TextQuery()
|
|
||||||
: TextQuery.fromJson(json['query'] as Map<String, dynamic>),
|
|
||||||
added: json['added'] == null
|
|
||||||
? const UnsetDateRangeQuery()
|
|
||||||
: const DateRangeQueryJsonConverter()
|
|
||||||
.fromJson(json['added'] as Map<String, dynamic>),
|
|
||||||
created: json['created'] == null
|
|
||||||
? const UnsetDateRangeQuery()
|
|
||||||
: const DateRangeQueryJsonConverter()
|
|
||||||
.fromJson(json['created'] as Map<String, dynamic>),
|
|
||||||
modified: json['modified'] == null
|
|
||||||
? const UnsetDateRangeQuery()
|
|
||||||
: const DateRangeQueryJsonConverter()
|
|
||||||
.fromJson(json['modified'] as Map<String, dynamic>),
|
|
||||||
moreLike: json['moreLike'] as int?,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$DocumentFilterToJson(DocumentFilter instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'pageSize': instance.pageSize,
|
|
||||||
'page': instance.page,
|
|
||||||
'documentType': instance.documentType.toJson(),
|
|
||||||
'correspondent': instance.correspondent.toJson(),
|
|
||||||
'storagePath': instance.storagePath.toJson(),
|
|
||||||
'asnQuery': instance.asnQuery.toJson(),
|
|
||||||
'tags': const TagsQueryJsonConverter().toJson(instance.tags),
|
|
||||||
'sortField': _$SortFieldEnumMap[instance.sortField],
|
|
||||||
'sortOrder': _$SortOrderEnumMap[instance.sortOrder]!,
|
|
||||||
'created': const DateRangeQueryJsonConverter().toJson(instance.created),
|
|
||||||
'added': const DateRangeQueryJsonConverter().toJson(instance.added),
|
|
||||||
'modified': const DateRangeQueryJsonConverter().toJson(instance.modified),
|
|
||||||
'query': instance.query.toJson(),
|
|
||||||
'moreLike': instance.moreLike,
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$SortFieldEnumMap = {
|
|
||||||
SortField.archiveSerialNumber: 'archive_serial_number',
|
|
||||||
SortField.correspondentName: 'correspondent__name',
|
|
||||||
SortField.title: 'title',
|
|
||||||
SortField.documentType: 'document_type__name',
|
|
||||||
SortField.created: 'created',
|
|
||||||
SortField.added: 'added',
|
|
||||||
SortField.modified: 'modified',
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$SortOrderEnumMap = {
|
|
||||||
SortOrder.ascending: 'ascending',
|
|
||||||
SortOrder.descending: 'descending',
|
|
||||||
};
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'document_model.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
DocumentModel _$DocumentModelFromJson(Map<String, dynamic> json) =>
|
|
||||||
DocumentModel(
|
|
||||||
id: json['id'] as int,
|
|
||||||
title: json['title'] as String,
|
|
||||||
content: json['content'] as String?,
|
|
||||||
tags: (json['tags'] as List<dynamic>?)?.map((e) => e as int) ??
|
|
||||||
const <int>[],
|
|
||||||
documentType: json['document_type'] as int?,
|
|
||||||
correspondent: json['correspondent'] as int?,
|
|
||||||
created: const LocalDateTimeJsonConverter()
|
|
||||||
.fromJson(json['created'] as String),
|
|
||||||
modified: const LocalDateTimeJsonConverter()
|
|
||||||
.fromJson(json['modified'] as String),
|
|
||||||
added:
|
|
||||||
const LocalDateTimeJsonConverter().fromJson(json['added'] as String),
|
|
||||||
archiveSerialNumber: json['archive_serial_number'] as int?,
|
|
||||||
originalFileName: json['original_file_name'] as String,
|
|
||||||
archivedFileName: json['archived_file_name'] as String?,
|
|
||||||
storagePath: json['storage_path'] as int?,
|
|
||||||
searchHit: json['__search_hit__'] == null
|
|
||||||
? null
|
|
||||||
: SearchHit.fromJson(json['__search_hit__'] as Map<String, dynamic>),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$DocumentModelToJson(DocumentModel instance) {
|
|
||||||
final val = <String, dynamic>{
|
|
||||||
'id': instance.id,
|
|
||||||
'title': instance.title,
|
|
||||||
'content': instance.content,
|
|
||||||
'tags': instance.tags.toList(),
|
|
||||||
'document_type': instance.documentType,
|
|
||||||
'correspondent': instance.correspondent,
|
|
||||||
'storage_path': instance.storagePath,
|
|
||||||
'created': const LocalDateTimeJsonConverter().toJson(instance.created),
|
|
||||||
'modified': const LocalDateTimeJsonConverter().toJson(instance.modified),
|
|
||||||
'added': const LocalDateTimeJsonConverter().toJson(instance.added),
|
|
||||||
'archive_serial_number': instance.archiveSerialNumber,
|
|
||||||
'original_file_name': instance.originalFileName,
|
|
||||||
'archived_file_name': instance.archivedFileName,
|
|
||||||
};
|
|
||||||
|
|
||||||
void writeNotNull(String key, dynamic value) {
|
|
||||||
if (value != null) {
|
|
||||||
val[key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
writeNotNull('__search_hit__', instance.searchHit);
|
|
||||||
return val;
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'field_suggestions.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
FieldSuggestions _$FieldSuggestionsFromJson(Map<String, dynamic> json) =>
|
|
||||||
FieldSuggestions(
|
|
||||||
documentId: json['document_id'] as int?,
|
|
||||||
correspondents:
|
|
||||||
(json['correspondents'] as List<dynamic>?)?.map((e) => e as int) ??
|
|
||||||
const [],
|
|
||||||
tags: (json['tags'] as List<dynamic>?)?.map((e) => e as int) ?? const [],
|
|
||||||
documentTypes:
|
|
||||||
(json['document_types'] as List<dynamic>?)?.map((e) => e as int) ??
|
|
||||||
const [],
|
|
||||||
dates: (json['dates'] as List<dynamic>?)?.map((e) =>
|
|
||||||
const LocalDateTimeJsonConverter().fromJson(e as String)) ??
|
|
||||||
const [],
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$FieldSuggestionsToJson(FieldSuggestions instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'document_id': instance.documentId,
|
|
||||||
'correspondents': instance.correspondents.toList(),
|
|
||||||
'tags': instance.tags.toList(),
|
|
||||||
'document_types': instance.documentTypes.toList(),
|
|
||||||
'dates': instance.dates
|
|
||||||
.map(const LocalDateTimeJsonConverter().toJson)
|
|
||||||
.toList(),
|
|
||||||
};
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'filter_rule_model.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
FilterRule _$FilterRuleFromJson(Map<String, dynamic> json) => FilterRule(
|
|
||||||
json['rule_type'] as int,
|
|
||||||
json['value'] as String?,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$FilterRuleToJson(FilterRule instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'rule_type': instance.ruleType,
|
|
||||||
'value': instance.value,
|
|
||||||
};
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'correspondent_model.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
Correspondent _$CorrespondentFromJson(Map<String, dynamic> json) =>
|
|
||||||
Correspondent(
|
|
||||||
id: json['id'] as int?,
|
|
||||||
name: json['name'] as String,
|
|
||||||
slug: json['slug'] as String?,
|
|
||||||
match: json['match'] as String?,
|
|
||||||
matchingAlgorithm: $enumDecodeNullable(
|
|
||||||
_$MatchingAlgorithmEnumMap, json['matching_algorithm']) ??
|
|
||||||
MatchingAlgorithm.defaultValue,
|
|
||||||
isInsensitive: json['is_insensitive'] as bool? ?? true,
|
|
||||||
documentCount: json['document_count'] as int?,
|
|
||||||
lastCorrespondence: _$JsonConverterFromJson<String, DateTime>(
|
|
||||||
json['last_correspondence'],
|
|
||||||
const LocalDateTimeJsonConverter().fromJson),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$CorrespondentToJson(Correspondent instance) {
|
|
||||||
final val = <String, dynamic>{};
|
|
||||||
|
|
||||||
void writeNotNull(String key, dynamic value) {
|
|
||||||
if (value != null) {
|
|
||||||
val[key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
writeNotNull('id', instance.id);
|
|
||||||
val['name'] = instance.name;
|
|
||||||
writeNotNull('slug', instance.slug);
|
|
||||||
writeNotNull('match', instance.match);
|
|
||||||
val['matching_algorithm'] =
|
|
||||||
_$MatchingAlgorithmEnumMap[instance.matchingAlgorithm]!;
|
|
||||||
writeNotNull('is_insensitive', instance.isInsensitive);
|
|
||||||
writeNotNull('document_count', instance.documentCount);
|
|
||||||
writeNotNull(
|
|
||||||
'last_correspondence',
|
|
||||||
_$JsonConverterToJson<String, DateTime>(instance.lastCorrespondence,
|
|
||||||
const LocalDateTimeJsonConverter().toJson));
|
|
||||||
return val;
|
|
||||||
}
|
|
||||||
|
|
||||||
const _$MatchingAlgorithmEnumMap = {
|
|
||||||
MatchingAlgorithm.anyWord: 1,
|
|
||||||
MatchingAlgorithm.allWords: 2,
|
|
||||||
MatchingAlgorithm.exactMatch: 3,
|
|
||||||
MatchingAlgorithm.regex: 4,
|
|
||||||
MatchingAlgorithm.fuzzy: 5,
|
|
||||||
MatchingAlgorithm.auto: 6,
|
|
||||||
};
|
|
||||||
|
|
||||||
Value? _$JsonConverterFromJson<Json, Value>(
|
|
||||||
Object? json,
|
|
||||||
Value? Function(Json json) fromJson,
|
|
||||||
) =>
|
|
||||||
json == null ? null : fromJson(json as Json);
|
|
||||||
|
|
||||||
Json? _$JsonConverterToJson<Json, Value>(
|
|
||||||
Value? value,
|
|
||||||
Json? Function(Value value) toJson,
|
|
||||||
) =>
|
|
||||||
value == null ? null : toJson(value);
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'document_type_model.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
DocumentType _$DocumentTypeFromJson(Map<String, dynamic> json) => DocumentType(
|
|
||||||
id: json['id'] as int?,
|
|
||||||
name: json['name'] as String,
|
|
||||||
slug: json['slug'] as String?,
|
|
||||||
match: json['match'] as String?,
|
|
||||||
matchingAlgorithm: $enumDecodeNullable(
|
|
||||||
_$MatchingAlgorithmEnumMap, json['matching_algorithm']) ??
|
|
||||||
MatchingAlgorithm.defaultValue,
|
|
||||||
isInsensitive: json['is_insensitive'] as bool? ?? true,
|
|
||||||
documentCount: json['document_count'] as int?,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$DocumentTypeToJson(DocumentType instance) {
|
|
||||||
final val = <String, dynamic>{};
|
|
||||||
|
|
||||||
void writeNotNull(String key, dynamic value) {
|
|
||||||
if (value != null) {
|
|
||||||
val[key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
writeNotNull('id', instance.id);
|
|
||||||
val['name'] = instance.name;
|
|
||||||
writeNotNull('slug', instance.slug);
|
|
||||||
writeNotNull('match', instance.match);
|
|
||||||
val['matching_algorithm'] =
|
|
||||||
_$MatchingAlgorithmEnumMap[instance.matchingAlgorithm]!;
|
|
||||||
writeNotNull('is_insensitive', instance.isInsensitive);
|
|
||||||
writeNotNull('document_count', instance.documentCount);
|
|
||||||
return val;
|
|
||||||
}
|
|
||||||
|
|
||||||
const _$MatchingAlgorithmEnumMap = {
|
|
||||||
MatchingAlgorithm.anyWord: 1,
|
|
||||||
MatchingAlgorithm.allWords: 2,
|
|
||||||
MatchingAlgorithm.exactMatch: 3,
|
|
||||||
MatchingAlgorithm.regex: 4,
|
|
||||||
MatchingAlgorithm.fuzzy: 5,
|
|
||||||
MatchingAlgorithm.auto: 6,
|
|
||||||
};
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'storage_path_model.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
StoragePath _$StoragePathFromJson(Map<String, dynamic> json) => StoragePath(
|
|
||||||
id: json['id'] as int?,
|
|
||||||
name: json['name'] as String,
|
|
||||||
path: json['path'] as String,
|
|
||||||
slug: json['slug'] as String?,
|
|
||||||
match: json['match'] as String?,
|
|
||||||
matchingAlgorithm: $enumDecodeNullable(
|
|
||||||
_$MatchingAlgorithmEnumMap, json['matching_algorithm']) ??
|
|
||||||
MatchingAlgorithm.defaultValue,
|
|
||||||
isInsensitive: json['is_insensitive'] as bool? ?? true,
|
|
||||||
documentCount: json['document_count'] as int?,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$StoragePathToJson(StoragePath instance) {
|
|
||||||
final val = <String, dynamic>{};
|
|
||||||
|
|
||||||
void writeNotNull(String key, dynamic value) {
|
|
||||||
if (value != null) {
|
|
||||||
val[key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
writeNotNull('id', instance.id);
|
|
||||||
val['name'] = instance.name;
|
|
||||||
writeNotNull('slug', instance.slug);
|
|
||||||
writeNotNull('match', instance.match);
|
|
||||||
val['matching_algorithm'] =
|
|
||||||
_$MatchingAlgorithmEnumMap[instance.matchingAlgorithm]!;
|
|
||||||
writeNotNull('is_insensitive', instance.isInsensitive);
|
|
||||||
writeNotNull('document_count', instance.documentCount);
|
|
||||||
val['path'] = instance.path;
|
|
||||||
return val;
|
|
||||||
}
|
|
||||||
|
|
||||||
const _$MatchingAlgorithmEnumMap = {
|
|
||||||
MatchingAlgorithm.anyWord: 1,
|
|
||||||
MatchingAlgorithm.allWords: 2,
|
|
||||||
MatchingAlgorithm.exactMatch: 3,
|
|
||||||
MatchingAlgorithm.regex: 4,
|
|
||||||
MatchingAlgorithm.fuzzy: 5,
|
|
||||||
MatchingAlgorithm.auto: 6,
|
|
||||||
};
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'tag_model.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
Tag _$TagFromJson(Map<String, dynamic> json) => Tag._(
|
|
||||||
id: json['id'] as int?,
|
|
||||||
name: json['name'] as String,
|
|
||||||
documentCount: json['document_count'] as int?,
|
|
||||||
isInsensitive: json['is_insensitive'] as bool? ?? true,
|
|
||||||
match: json['match'] as String?,
|
|
||||||
matchingAlgorithm: $enumDecodeNullable(
|
|
||||||
_$MatchingAlgorithmEnumMap, json['matching_algorithm']) ??
|
|
||||||
MatchingAlgorithm.defaultValue,
|
|
||||||
slug: json['slug'] as String?,
|
|
||||||
colorv1: const HexColorJsonConverter().fromJson(json['colour']),
|
|
||||||
colorv2: const HexColorJsonConverter().fromJson(json['color']),
|
|
||||||
textColor: const HexColorJsonConverter().fromJson(json['text_color']),
|
|
||||||
isInboxTag: json['is_inbox_tag'] as bool? ?? false,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$TagToJson(Tag instance) => <String, dynamic>{
|
|
||||||
'id': instance.id,
|
|
||||||
'name': instance.name,
|
|
||||||
'slug': instance.slug,
|
|
||||||
'match': instance.match,
|
|
||||||
'matching_algorithm':
|
|
||||||
_$MatchingAlgorithmEnumMap[instance.matchingAlgorithm]!,
|
|
||||||
'is_insensitive': instance.isInsensitive,
|
|
||||||
'document_count': instance.documentCount,
|
|
||||||
'text_color': const HexColorJsonConverter().toJson(instance.textColor),
|
|
||||||
'is_inbox_tag': instance.isInboxTag,
|
|
||||||
'color': const HexColorJsonConverter().toJson(instance.colorv2),
|
|
||||||
'colour': const HexColorJsonConverter().toJson(instance.colorv1),
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$MatchingAlgorithmEnumMap = {
|
|
||||||
MatchingAlgorithm.anyWord: 1,
|
|
||||||
MatchingAlgorithm.allWords: 2,
|
|
||||||
MatchingAlgorithm.exactMatch: 3,
|
|
||||||
MatchingAlgorithm.regex: 4,
|
|
||||||
MatchingAlgorithm.fuzzy: 5,
|
|
||||||
MatchingAlgorithm.auto: 6,
|
|
||||||
};
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'absolute_date_range_query.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
AbsoluteDateRangeQuery _$AbsoluteDateRangeQueryFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
AbsoluteDateRangeQuery(
|
|
||||||
after: _$JsonConverterFromJson<String, DateTime>(
|
|
||||||
json['after'], const LocalDateTimeJsonConverter().fromJson),
|
|
||||||
before: _$JsonConverterFromJson<String, DateTime>(
|
|
||||||
json['before'], const LocalDateTimeJsonConverter().fromJson),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$AbsoluteDateRangeQueryToJson(
|
|
||||||
AbsoluteDateRangeQuery instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'after': _$JsonConverterToJson<String, DateTime>(
|
|
||||||
instance.after, const LocalDateTimeJsonConverter().toJson),
|
|
||||||
'before': _$JsonConverterToJson<String, DateTime>(
|
|
||||||
instance.before, const LocalDateTimeJsonConverter().toJson),
|
|
||||||
};
|
|
||||||
|
|
||||||
Value? _$JsonConverterFromJson<Json, Value>(
|
|
||||||
Object? json,
|
|
||||||
Value? Function(Json json) fromJson,
|
|
||||||
) =>
|
|
||||||
json == null ? null : fromJson(json as Json);
|
|
||||||
|
|
||||||
Json? _$JsonConverterToJson<Json, Value>(
|
|
||||||
Value? value,
|
|
||||||
Json? Function(Value value) toJson,
|
|
||||||
) =>
|
|
||||||
value == null ? null : toJson(value);
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'relative_date_range_query.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
RelativeDateRangeQuery _$RelativeDateRangeQueryFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
RelativeDateRangeQuery(
|
|
||||||
json['offset'] as int? ?? 1,
|
|
||||||
$enumDecodeNullable(_$DateRangeUnitEnumMap, json['unit']) ??
|
|
||||||
DateRangeUnit.day,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$RelativeDateRangeQueryToJson(
|
|
||||||
RelativeDateRangeQuery instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'offset': instance.offset,
|
|
||||||
'unit': _$DateRangeUnitEnumMap[instance.unit]!,
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$DateRangeUnitEnumMap = {
|
|
||||||
DateRangeUnit.day: 'day',
|
|
||||||
DateRangeUnit.week: 'week',
|
|
||||||
DateRangeUnit.month: 'month',
|
|
||||||
DateRangeUnit.year: 'year',
|
|
||||||
};
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'id_query_parameter.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
IdQueryParameter _$IdQueryParameterFromJson(Map<String, dynamic> json) =>
|
|
||||||
IdQueryParameter(
|
|
||||||
json['assignmentStatus'] as int?,
|
|
||||||
json['id'] as int?,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$IdQueryParameterToJson(IdQueryParameter instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'assignmentStatus': instance.assignmentStatus,
|
|
||||||
'id': instance.id,
|
|
||||||
};
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'any_assigned_tags_query.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
AnyAssignedTagsQuery _$AnyAssignedTagsQueryFromJson(
|
|
||||||
Map<String, dynamic> json) =>
|
|
||||||
AnyAssignedTagsQuery(
|
|
||||||
tagIds:
|
|
||||||
(json['tagIds'] as List<dynamic>?)?.map((e) => e as int) ?? const [],
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$AnyAssignedTagsQueryToJson(
|
|
||||||
AnyAssignedTagsQuery instance) =>
|
|
||||||
<String, dynamic>{
|
|
||||||
'tagIds': instance.tagIds.toList(),
|
|
||||||
};
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'text_query.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
TextQuery _$TextQueryFromJson(Map<String, dynamic> json) => TextQuery(
|
|
||||||
queryType: $enumDecodeNullable(_$QueryTypeEnumMap, json['queryType']) ??
|
|
||||||
QueryType.titleAndContent,
|
|
||||||
queryText: json['queryText'] as String?,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$TextQueryToJson(TextQuery instance) => <String, dynamic>{
|
|
||||||
'queryType': _$QueryTypeEnumMap[instance.queryType]!,
|
|
||||||
'queryText': instance.queryText,
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$QueryTypeEnumMap = {
|
|
||||||
QueryType.title: 'title',
|
|
||||||
QueryType.titleAndContent: 'titleAndContent',
|
|
||||||
QueryType.extended: 'extended',
|
|
||||||
QueryType.asn: 'asn',
|
|
||||||
};
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'saved_view_model.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
SavedView _$SavedViewFromJson(Map<String, dynamic> json) => SavedView(
|
|
||||||
id: json['id'] as int?,
|
|
||||||
name: json['name'] as String,
|
|
||||||
showOnDashboard: json['show_on_dashboard'] as bool,
|
|
||||||
showInSidebar: json['show_in_sidebar'] as bool,
|
|
||||||
sortField: $enumDecodeNullable(_$SortFieldEnumMap, json['sort_field']),
|
|
||||||
sortReverse: json['sort_reverse'] as bool,
|
|
||||||
filterRules: (json['filter_rules'] as List<dynamic>)
|
|
||||||
.map((e) => FilterRule.fromJson(e as Map<String, dynamic>))
|
|
||||||
.toList(),
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$SavedViewToJson(SavedView instance) => <String, dynamic>{
|
|
||||||
'id': instance.id,
|
|
||||||
'name': instance.name,
|
|
||||||
'show_on_dashboard': instance.showOnDashboard,
|
|
||||||
'show_in_sidebar': instance.showInSidebar,
|
|
||||||
'sort_field': _$SortFieldEnumMap[instance.sortField],
|
|
||||||
'sort_reverse': instance.sortReverse,
|
|
||||||
'filter_rules': instance.filterRules,
|
|
||||||
};
|
|
||||||
|
|
||||||
const _$SortFieldEnumMap = {
|
|
||||||
SortField.archiveSerialNumber: 'archive_serial_number',
|
|
||||||
SortField.correspondentName: 'correspondent__name',
|
|
||||||
SortField.title: 'title',
|
|
||||||
SortField.documentType: 'document_type__name',
|
|
||||||
SortField.created: 'created',
|
|
||||||
SortField.added: 'added',
|
|
||||||
SortField.modified: 'modified',
|
|
||||||
};
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'search_hit.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
SearchHit _$SearchHitFromJson(Map<String, dynamic> json) => SearchHit(
|
|
||||||
score: (json['score'] as num?)?.toDouble(),
|
|
||||||
highlights: json['highlights'] as String?,
|
|
||||||
rank: json['rank'] as int?,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$SearchHitToJson(SearchHit instance) => <String, dynamic>{
|
|
||||||
'score': instance.score,
|
|
||||||
'highlights': instance.highlights,
|
|
||||||
'rank': instance.rank,
|
|
||||||
};
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'task.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// JsonSerializableGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
Task _$TaskFromJson(Map<String, dynamic> json) => Task(
|
|
||||||
id: json['id'] as int,
|
|
||||||
taskId: json['task_id'] as String?,
|
|
||||||
taskFileName: json['task_file_name'] as String?,
|
|
||||||
dateCreated: const LocalDateTimeJsonConverter()
|
|
||||||
.fromJson(json['date_created'] as String),
|
|
||||||
dateDone: _$JsonConverterFromJson<String, DateTime>(
|
|
||||||
json['date_done'], const LocalDateTimeJsonConverter().fromJson),
|
|
||||||
type: json['type'] as String?,
|
|
||||||
status: $enumDecodeNullable(_$TaskStatusEnumMap, json['status']),
|
|
||||||
acknowledged: json['acknowledged'] as bool? ?? false,
|
|
||||||
relatedDocument: tryParseNullable(json['related_document'] as String?),
|
|
||||||
result: json['result'] as String?,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> _$TaskToJson(Task instance) => <String, dynamic>{
|
|
||||||
'id': instance.id,
|
|
||||||
'task_id': instance.taskId,
|
|
||||||
'task_file_name': instance.taskFileName,
|
|
||||||
'date_created':
|
|
||||||
const LocalDateTimeJsonConverter().toJson(instance.dateCreated),
|
|
||||||
'date_done': _$JsonConverterToJson<String, DateTime>(
|
|
||||||
instance.dateDone, const LocalDateTimeJsonConverter().toJson),
|
|
||||||
'type': instance.type,
|
|
||||||
'status': _$TaskStatusEnumMap[instance.status],
|
|
||||||
'result': instance.result,
|
|
||||||
'acknowledged': instance.acknowledged,
|
|
||||||
'related_document': instance.relatedDocument,
|
|
||||||
};
|
|
||||||
|
|
||||||
Value? _$JsonConverterFromJson<Json, Value>(
|
|
||||||
Object? json,
|
|
||||||
Value? Function(Json json) fromJson,
|
|
||||||
) =>
|
|
||||||
json == null ? null : fromJson(json as Json);
|
|
||||||
|
|
||||||
const _$TaskStatusEnumMap = {
|
|
||||||
TaskStatus.started: 'STARTED',
|
|
||||||
TaskStatus.pending: 'PENDING',
|
|
||||||
TaskStatus.failure: 'FAILURE',
|
|
||||||
TaskStatus.success: 'SUCCESS',
|
|
||||||
};
|
|
||||||
|
|
||||||
Json? _$JsonConverterToJson<Json, Value>(
|
|
||||||
Value? value,
|
|
||||||
Json? Function(Value value) toJson,
|
|
||||||
) =>
|
|
||||||
value == null ? null : toJson(value);
|
|
||||||
Reference in New Issue
Block a user