Contents

decode(_:)

Decodes a single value of the given type.

Declaration

func decode<T>(_ type: T.Type) throws -> T where T : Decodable

Parameters

  • type:

    The type to decode as.

Return Value

A value of the requested type.

Discussion