util/upload_description_metadata
library
Functions
-
resolveDartImageTagFromUploadDescription(String uploadDescription)
→ String?
-
Reads the
dart-version metadata from a Ground Control upload JSON
description.
Returns null if the Dart image is not found.
-
resolveMetadataFromUploadDescription(String uploadDescription, String key)
→ String?
-
Reads the object metadata
key from a Ground Control upload JSON
description: the metadata map of a resumable description, or the
x-goog-meta- header of a binary one.
Returns null if the value is not found or not a non-empty string.
-
resolveUploadIdFromUploadDescription(String uploadDescription)
→ UuidValue?
-
Reads the
upload-id metadata from a Ground Control upload JSON
description and converts it to the proper UuidValue.
Returns null if the upload ID is not found or in an invalid format.