Instance Method (Default implementation)swift 6.0.1Swift
decodeIfPresent(_:forKey:)
- iOS
- 18.0+
- macOS
- 15.0+
- tvOS
- 18.0+
- visionOS
- 2.0+
- watchOS
- 11.0+
func decodeIfPresent(_ type: UInt128.Type, forKey key: Self.Key) throws -> UInt128?
Implements
func decodeIfPresent(String.Type, forKey: Self.Key
) throws -> String? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(Bool.Type, forKey: Self.Key
) throws -> Bool? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(Double.Type, forKey: Self.Key
) throws -> Double? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(Float.Type, forKey: Self.Key
) throws -> Float? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(Int.Type, forKey: Self.Key
) throws -> Int? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(UInt.Type, forKey: Self.Key
) throws -> UInt? Decodes a value of the given type for the given key, if present.
func decodeIfPresent<T>(T.Type, forKey: Self.Key
) throws -> T? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(Int8.Type, forKey: Self.Key
) throws -> Int8? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(Int16.Type, forKey: Self.Key
) throws -> Int16? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(Int32.Type, forKey: Self.Key
) throws -> Int32? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(Int64.Type, forKey: Self.Key
) throws -> Int64? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(UInt8.Type, forKey: Self.Key
) throws -> UInt8? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(Int128.Type, forKey: Self.Key
) throws -> Int128? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(UInt16.Type, forKey: Self.Key
) throws -> UInt16? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(UInt32.Type, forKey: Self.Key
) throws -> UInt32? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(UInt64.Type, forKey: Self.Key
) throws -> UInt64? Decodes a value of the given type for the given key, if present.
func decodeIfPresent(UInt128.Type, forKey: Self.Key
) throws -> UInt128? Decodes a value of the given type for the given key, if present.
Other members in extension
Instance members
func decode(Int128.Type, forKey: Self.Key
) throws -> Int128 func decode(UInt128.Type, forKey: Self.Key
) throws -> UInt128 func decodeIfPresent(String.Type, forKey: Self.Key
) throws -> String? func decodeIfPresent(Bool.Type, forKey: Self.Key
) throws -> Bool? func decodeIfPresent(Double.Type, forKey: Self.Key
) throws -> Double? func decodeIfPresent(Float.Type, forKey: Self.Key
) throws -> Float? func decodeIfPresent(Int.Type, forKey: Self.Key
) throws -> Int? func decodeIfPresent(UInt.Type, forKey: Self.Key
) throws -> UInt? func decodeIfPresent<T>(T.Type, forKey: Self.Key
) throws -> T? func decodeIfPresent(Int8.Type, forKey: Self.Key
) throws -> Int8? func decodeIfPresent(Int16.Type, forKey: Self.Key
) throws -> Int16? func decodeIfPresent(Int32.Type, forKey: Self.Key
) throws -> Int32? func decodeIfPresent(Int64.Type, forKey: Self.Key
) throws -> Int64? func decodeIfPresent(UInt8.Type, forKey: Self.Key
) throws -> UInt8? func decodeIfPresent(Int128.Type, forKey: Self.Key
) throws -> Int128? func decodeIfPresent(UInt16.Type, forKey: Self.Key
) throws -> UInt16? func decodeIfPresent(UInt32.Type, forKey: Self.Key
) throws -> UInt32? func decodeIfPresent(UInt64.Type, forKey: Self.Key
) throws -> UInt64?