copyWith method
      
  
AssignmentModel
copyWith({ 
    
    
- String? documentID,
- String? appId,
- String? reporterId,
- String? assigneeId,
- TaskModel? task,
- WorkflowModel? workflow,
- int? workflowTaskSeqNumber,
- DateTime? timestamp,
- AssignmentStatus? status,
- List<AssignmentResultModel> ? resultsCurrent,
- List<AssignmentResultModel> ? resultsPrevious,
- String? triggeredById,
- WorkflowNotificationModel? confirmMessage,
- WorkflowNotificationModel? rejectMessage,
override
    Implementation
@override
AssignmentModel copyWith({
  String? documentID,
  String? appId,
  String? reporterId,
  String? assigneeId,
  TaskModel? task,
  WorkflowModel? workflow,
  int? workflowTaskSeqNumber,
  DateTime? timestamp,
  AssignmentStatus? status,
  List<AssignmentResultModel>? resultsCurrent,
  List<AssignmentResultModel>? resultsPrevious,
  String? triggeredById,
  WorkflowNotificationModel? confirmMessage,
  WorkflowNotificationModel? rejectMessage,
}) {
  return AssignmentModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    reporterId: reporterId ?? this.reporterId,
    assigneeId: assigneeId ?? this.assigneeId,
    task: task ?? this.task,
    workflow: workflow ?? this.workflow,
    workflowTaskSeqNumber:
        workflowTaskSeqNumber ?? this.workflowTaskSeqNumber,
    timestamp: timestamp ?? this.timestamp,
    status: status ?? this.status,
    resultsCurrent: resultsCurrent ?? this.resultsCurrent,
    resultsPrevious: resultsPrevious ?? this.resultsPrevious,
    triggeredById: triggeredById ?? this.triggeredById,
    confirmMessage: confirmMessage ?? this.confirmMessage,
    rejectMessage: rejectMessage ?? this.rejectMessage,
  );
}