BinaryMetadata constructor

BinaryMetadata({
  1. String? id,
  2. CaptureMetadata? captureMetadata,
  3. Timestamp? timeRequested,
  4. Timestamp? timeReceived,
  5. String? fileName,
  6. String? fileExt,
  7. String? uri,
  8. Annotations? annotations,
  9. Iterable<String>? datasetIds,
})

Implementation

factory BinaryMetadata({
  $core.String? id,
  CaptureMetadata? captureMetadata,
  $44.Timestamp? timeRequested,
  $44.Timestamp? timeReceived,
  $core.String? fileName,
  $core.String? fileExt,
  $core.String? uri,
  Annotations? annotations,
  $core.Iterable<$core.String>? datasetIds,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (captureMetadata != null) {
    $result.captureMetadata = captureMetadata;
  }
  if (timeRequested != null) {
    $result.timeRequested = timeRequested;
  }
  if (timeReceived != null) {
    $result.timeReceived = timeReceived;
  }
  if (fileName != null) {
    $result.fileName = fileName;
  }
  if (fileExt != null) {
    $result.fileExt = fileExt;
  }
  if (uri != null) {
    $result.uri = uri;
  }
  if (annotations != null) {
    $result.annotations = annotations;
  }
  if (datasetIds != null) {
    $result.datasetIds.addAll(datasetIds);
  }
  return $result;
}