---
title: "decodeIfPresent(_:configuration:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/unkeyeddecodingcontainer/decodeifpresent(_:configuration:)-7nafo"
---

# decodeIfPresent(_:configuration:)

## Declaration

```swift
mutating func decodeIfPresent<T>(_: T.Type, configuration: T.DecodingConfiguration) throws -> T? where T : DecodableWithConfiguration
```
