# `GSNode propertyListValueFormat:error:`

*Instance Method*

Returns a Property List representation of the node.

## Declaration

```swift
func propertyListValue(format: GSFormatVersion) throws -> [String : Any]
```

```objc
- (NSDictionary<NSString *,id> *) propertyListValueFormat:(GSFormatVersion) format error:(NSError **) error;
```

```python
propertyListValueFormat_error_(format: GSFormatVersion) -> tuple[dict[str, object], NSError]
```

## Parameters

- `format` — The Glyphs file format version for which to encode the node.
- `error` — On output, a pointer to an error object that describes why the method failed, or `nil` if no error occurred. If you are not interested in the error information, pass `nil` for this parameter.

## See Also

### Encoding

- [`GSNode elementString`](/Core/GlyphsCore/GSNode/elementString) — Returns an element string representation of the node.

