# `GSElement propertyListValueFormat:error:`

*Instance Method*

A property-list representation of the common element values, or `nil` when all values have their defaults.

## Declaration

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

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

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

## Parameters

- `formatVersion` — The Glyphs file format version used for the representation.
- `error` — On failure, an error describing why the representation could not be created.

## Discussion

Subclasses extend this representation with their type-specific values.

## See Also

### Encoding

- [`GSElement setPropertyListValue:format:`](/Core/GlyphsCore/GSElement/setPropertyListValue:format:) — Restores the common element values from a Glyphs source representation.
- [`GSElement propertyListToData:format:error:`](/Core/GlyphsCore/GSElement/propertyListToData:format:error:) — Appends a Glyphs source representation to a data buffer.

