# `GSElement setPropertyListValue:format:`

*Instance Method*

Restores the common element values from a Glyphs source representation.

## Declaration

```swift
func setPropertyListValue(_ dict: [AnyHashable : Any], format: GSFormatVersion)
```

```objc
- (void) setPropertyListValue:(NSDictionary *) dict format:(GSFormatVersion) format;
```

```python
setPropertyListValue_format_(dict: dict, format: GSFormatVersion)
```

## Parameters

- `dict` — The property-list representation.
- `format` — The Glyphs file format version used to interpret the representation.

## Discussion

Subclasses that override this method must also restore their type-specific values.

## See Also

### Encoding

- [`GSElement propertyListValueFormat:error:`](/Core/GlyphsCore/GSElement/propertyListValueFormat:error:) — A property-list representation of the common element values, or `nil` when all values have their defaults.
- [`GSElement propertyListToData:format:error:`](/Core/GlyphsCore/GSElement/propertyListToData:format:error:) — Appends a Glyphs source representation to a data buffer.

