SourceProvenance constructor

SourceProvenance({
  1. StorageSource? resolvedStorageSource,
  2. Map<String, FileHashes>? fileHashes,
  3. RepoSource? resolvedRepoSource,
})

Implementation

factory SourceProvenance({
  StorageSource? resolvedStorageSource,
  $core.Map<$core.String, FileHashes>? fileHashes,
  RepoSource? resolvedRepoSource,
}) {
  final $result = create();
  if (resolvedStorageSource != null) {
    $result.resolvedStorageSource = resolvedStorageSource;
  }
  if (fileHashes != null) {
    $result.fileHashes.addAll(fileHashes);
  }
  if (resolvedRepoSource != null) {
    $result.resolvedRepoSource = resolvedRepoSource;
  }
  return $result;
}