toMap method
Converts the TaskTransfer instance to a map
Implementation
Map<String, dynamic> toMap() {
return {
'taskId': taskId,
'type': type,
'url': url,
'path': path,
'headers': headers,
'fields': fields,
'createdAt': createdAt,
'progress': progress,
'status': status,
};
}