copyWith method
WorkflowUpdate
copyWith({
- List<
StatusMigration> ? defaultStatusMappings, - String? description,
- String? id,
- WorkflowLayout? startPointLayout,
- List<
StatusMappingDTO> ? statusMappings, - List<
StatusLayoutUpdate> ? statuses, - List<
TransitionUpdateDTO> ? transitions, - DocumentVersion? version,
Implementation
WorkflowUpdate copyWith(
{List<StatusMigration>? defaultStatusMappings,
String? description,
String? id,
WorkflowLayout? startPointLayout,
List<StatusMappingDTO>? statusMappings,
List<StatusLayoutUpdate>? statuses,
List<TransitionUpdateDTO>? transitions,
DocumentVersion? version}) {
return WorkflowUpdate(
defaultStatusMappings:
defaultStatusMappings ?? this.defaultStatusMappings,
description: description ?? this.description,
id: id ?? this.id,
startPointLayout: startPointLayout ?? this.startPointLayout,
statusMappings: statusMappings ?? this.statusMappings,
statuses: statuses ?? this.statuses,
transitions: transitions ?? this.transitions,
version: version ?? this.version,
);
}