Skip to content

Instance Method

decode(_:as:)

Use the default configured decoder for the contentType parameter to read a value of type D from the container.
func decode<D>(_: D.Type, as contentType: HTTPMediaType) throws -> D where D : Decodable