copyWith method
Implementation
Job copyWith({
String? id,
String? name,
DateTime? createdAt,
DateTime? updatedAt,
JobStatus? status,
String? error,
Artifact? artifact,
}) {
return Job(
id: id ?? this.id,
name: name ?? this.name,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
artifact: artifact ?? this.artifact,
status: status ?? this.status,
error: error ?? this.error,
);
}