send cloudId during upload

# Conflicts:
#	mobile/lib/services/upload.service.dart
This commit is contained in:
shenlong-tanwen
2025-07-31 01:29:12 +05:30
parent 816fb1746a
commit 36680e4279
2 changed files with 25 additions and 0 deletions
@@ -0,0 +1,20 @@
import 'dart:convert';
class AssetMetadata {
final String? cloudId;
const AssetMetadata({this.cloudId});
Map<String, dynamic> toMap() {
return {
"metadata": [
{
"key": "mobile-app",
"value": cloudId != null ? {"iCloudId": cloudId} : {},
},
],
};
}
String toJson() => json.encode(toMap());
}