---
title: "serializedValue(forKey:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/qcplugin/serializedvalue(forkey:)"
---

# serializedValue(forKey:)

A method implemented to override serialization.

## Declaration

```swift
func serializedValue(forKey key: String!) -> Any!
```

## Parameters

- `key`: The key for the value to retrieve.

## Return Value

Return Value Either nil or a value that’s compliant with property lists:  NSString, NSNumber, NSDate, NSData, NSArray, or NSDictionary.

## Discussion

Discussion Provides custom serialization for patch internal settings that do not comply to the NSCoding protocol. Discussion If your patch has internal settings that do not conform to the NSCoding protocol, you must implement this method.

## See Also

### Supporting Saving and Retrieving Internal Settings

- [setSerializedValue(_:forKey:)](quartz/qcplugin/setserializedvalue(_:forkey:).md)
