copyWith method

WorkflowUpdate copyWith({
  1. List<StatusMigration>? defaultStatusMappings,
  2. String? description,
  3. String? id,
  4. WorkflowLayout? startPointLayout,
  5. List<StatusMappingDTO>? statusMappings,
  6. List<StatusLayoutUpdate>? statuses,
  7. List<TransitionUpdateDTO>? transitions,
  8. 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,
  );
}