---
title: "decode(_:forKey:configuration:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/keyeddecodingcontainer/decode(_:forkey:configuration:)-2rk0t"
---

# decode(_:forKey:configuration:)

## Declaration

```swift
func decode<T>(_: T.Type, forKey key: KeyedDecodingContainer<K>.Key, configuration: T.DecodingConfiguration) throws -> T where T : DecodableWithConfiguration
```
