copyWith method

Job copyWith({
  1. String? id,
  2. String? name,
  3. DateTime? createdAt,
  4. DateTime? updatedAt,
  5. JobStatus? status,
  6. String? error,
  7. Artifact? artifact,
})

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,
  );
}