Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-04 12:50:00 +02:00
parent 212f33ff51
commit 68b075f0b1
15 changed files with 1345 additions and 15 deletions

View File

@@ -9,7 +9,7 @@ class AttachmentModel extends Equatable {
final String? operationId;
final String name;
final String extension;
final String storagePath;
final String? storagePath;
final int fileSize;
final Uint8List? localBytes;
final String companyId;
@@ -21,7 +21,7 @@ class AttachmentModel extends Equatable {
this.operationId,
required this.name,
required this.extension,
required this.storagePath,
this.storagePath,
required this.fileSize,
this.localBytes,
required this.companyId,
@@ -88,7 +88,7 @@ class AttachmentModel extends Equatable {
operationId: map['operation_id'] as String?,
name: map['name'] as String,
extension: map['extension'] as String,
storagePath: map['storage_path'] as String,
storagePath: map['storage_path'] as String?,
fileSize: map['file_size'] is int
? map['file_size']
: int.tryParse(map['file_size']?.toString() ?? '0') ?? 0,