setMetadata method
Sets metadata for this artifact.
Each key/value is stored as an attribute on the artifact kref. Metadata is immediately available to other SDK callers and in the web console. Existing keys are overwritten; to remove a key, set its value to an empty string.
await artifact.setMetadata({
'file_size': '125MB',
'format': 'FBX',
});
Implementation
Future<void> setMetadata(Map<String, String> metadata) async {
for (final entry in metadata.entries) {
await client.setAttribute(kref.uri, entry.key, entry.value);
}
}