CreateArtifactRequest constructor

CreateArtifactRequest({
  1. Kref? revisionKref,
  2. String? name,
  3. String? location,
  4. bool? existsError,
  5. Iterable<MapEntry<String, String>>? metadata,
})

Implementation

factory CreateArtifactRequest({
  Kref? revisionKref,
  $core.String? name,
  $core.String? location,
  $core.bool? existsError,
  $core.Iterable<$core.MapEntry<$core.String, $core.String>>? metadata,
}) {
  final result = create();
  if (revisionKref != null) result.revisionKref = revisionKref;
  if (name != null) result.name = name;
  if (location != null) result.location = location;
  if (existsError != null) result.existsError = existsError;
  if (metadata != null) result.metadata.addEntries(metadata);
  return result;
}