deactivateWorkflow method
Deactivate a workflow
Implementation
Future<Response> deactivateWorkflow(String id) async {
try {
final response = await _dio.post(
'/workflows/$id/deactivate',
);
return response;
} on DioException catch (e) {
throw Exception('Failed to deactivate workflow: ${e.message}');
}
}