# `GSBaseObject propertyListValueFormat:error:`

*Instance Method*

A property-list representation in a Glyphs source format, or `nil` when the object cannot be encoded.

## 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 used for the representation.
- `error` — On failure, an error describing why the representation could not be created.

## See Also

### Encoding

- [`GSBaseObject saveToFile:format:context:error:`](/Core/GlyphsCore/GSBaseObject/saveToFile:format:context:error:) — Writes a Glyphs source representation to a file.

