copyWith method
AiStateModel
copyWith(
{ - num? taskId,
- num? userId,
- String? deviceType,
- String? originalInput,
- String? status,
- dynamic failReason,
- String? createdAt,
- String? updatedAt,
- CurrentStage? currentStage,
- 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,
);