@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user