---
title: "export(to:error:)"
framework: gameplaykit
role: symbol
role_heading: Instance Method
path: "gameplaykit/gkdecisiontree/export(to:error:)"
---

# export(to:error:)

## Declaration

```swift
func export(to url: URL, error: (any Error)?) -> Bool
```
