mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 16:07:58 -06:00
chore: Update go_router configuration to use go_router_builder
This commit is contained in:
@@ -185,7 +185,7 @@ class DocumentFilter extends Equatable {
|
||||
added.matches(document.added) &&
|
||||
modified.matches(document.modified) &&
|
||||
query.matches(
|
||||
title: document.title,
|
||||
title: document.title ?? '',
|
||||
content: document.content,
|
||||
asn: document.archiveSerialNumber,
|
||||
);
|
||||
|
||||
@@ -26,7 +26,7 @@ class DocumentModel extends Equatable {
|
||||
static const storagePathKey = 'storage_path';
|
||||
|
||||
final int id;
|
||||
final String title;
|
||||
final String? title;
|
||||
final String? content;
|
||||
final Iterable<int> tags;
|
||||
final int? documentType;
|
||||
@@ -71,7 +71,8 @@ class DocumentModel extends Equatable {
|
||||
this.permissions,
|
||||
});
|
||||
|
||||
factory DocumentModel.fromJson(Map<String, dynamic> json) => _$DocumentModelFromJson(json);
|
||||
factory DocumentModel.fromJson(Map<String, dynamic> json) =>
|
||||
_$DocumentModelFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$DocumentModelToJson(this);
|
||||
|
||||
@@ -94,15 +95,17 @@ class DocumentModel extends Equatable {
|
||||
title: title ?? this.title,
|
||||
content: content ?? this.content,
|
||||
documentType: documentType != null ? documentType() : this.documentType,
|
||||
correspondent: correspondent != null ? correspondent() : this.correspondent,
|
||||
correspondent:
|
||||
correspondent != null ? correspondent() : this.correspondent,
|
||||
storagePath: storagePath != null ? storagePath() : this.storagePath,
|
||||
tags: tags ?? this.tags,
|
||||
created: created ?? this.created,
|
||||
modified: modified ?? this.modified,
|
||||
added: added ?? this.added,
|
||||
originalFileName: originalFileName ?? this.originalFileName,
|
||||
archiveSerialNumber:
|
||||
archiveSerialNumber != null ? archiveSerialNumber() : this.archiveSerialNumber,
|
||||
archiveSerialNumber: archiveSerialNumber != null
|
||||
? archiveSerialNumber()
|
||||
: this.archiveSerialNumber,
|
||||
archivedFileName: archivedFileName ?? this.archivedFileName,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user