decode(_:)
Decodes a value of the given type.
Declaration
mutating func decode<T>(_ type: T.Type) throws -> T where T : DecodableParameters
- type:
The type of value to decode.
Return Value
A value of the requested type, if present for the given key and convertible to the requested type.