copyWith method

AiStateModel copyWith({
  1. num? taskId,
  2. num? userId,
  3. String? deviceType,
  4. String? originalInput,
  5. String? status,
  6. dynamic failReason,
  7. String? createdAt,
  8. String? updatedAt,
  9. CurrentStage? currentStage,
  10. List<AllStages>? allStages,
})

Implementation

AiStateModel copyWith({  num? taskId,
  num? userId,
  String? deviceType,
  String? originalInput,
  String? status,
  dynamic failReason,
  String? createdAt,
  String? updatedAt,
  CurrentStage? currentStage,
  List<AllStages>? allStages,
}) => AiStateModel(  taskId: taskId ?? this.taskId,
  userId: userId ?? this.userId,
  deviceType: deviceType ?? this.deviceType,
  originalInput: originalInput ?? this.originalInput,
  status: status ?? this.status,
  failReason: failReason ?? this.failReason,
  createdAt: createdAt ?? this.createdAt,
  updatedAt: updatedAt ?? this.updatedAt,
  currentStage: currentStage ?? this.currentStage,
  allStages: allStages ?? this.allStages,
);