QueueTask.fromMap constructor
Creates a QueueTask from a SQLite row.
Implementation
factory QueueTask.fromMap(Map<String, Object?> map) {
return QueueTask(
processId: map['process_id'].toString(),
parentProcessId: map['parent_process_id']?.toString(),
processName: map['process_name'].toString(),
state: _mapState(map['state'].toString()),
retryCount: map['retry_count'] as int,
priority: mapPriorityValue(map['priority'] as int),
createdAt: map['created_at'] as int,
);
}