Files
immich/mobile/lib/domain/models/asset/metadata.model.dart
shenlong-tanwen 36680e4279 send cloudId during upload
# Conflicts:
#	mobile/lib/services/upload.service.dart
2025-09-06 01:55:54 +05:30

21 lines
361 B
Dart

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());
}