Map<String, dynamic> toMap() { return { 'uploadId': uploadId, 'bytesUploaded': bytesUploaded, 'totalBytes': totalBytes, 'status': status.name, }; }