decode(_:)
Decodes a single value of the given type.
Declaration
func decode<T>(_ type: T.Type) throws -> T where T : DecodableParameters
- type:
The type to decode as.
Return Value
A value of the requested type.
Decodes a single value of the given type.
func decode<T>(_ type: T.Type) throws -> T where T : DecodableThe type to decode as.
A value of the requested type.