copyWith method

ImageSourceSpec copyWith({
  1. String? registry,
  2. String? registryType,
  3. String? repository,
  4. String? tag,
  5. bool? autoDeploy,
})

Implementation

ImageSourceSpec copyWith({
  String? registry,
  String? registryType,
  String? repository,
  String? tag,
  bool? autoDeploy,
}) {
  return ImageSourceSpec(
    registry: registry ?? this.registry,
    registryType: registryType ?? this.registryType,
    repository: repository ?? this.repository,
    tag: tag ?? this.tag,
    autoDeploy: autoDeploy ?? this.autoDeploy,
  );
}