   <p>Decodes a single value of the given type.</p>

<p><strong><code>type</code>:</strong>  The type to decode as.
<strong>returns:</strong> A value of the requested type.
<strong>throws:</strong> <code>DecodingError.typeMismatch</code> if the encountered encoded value
  cannot be converted to the requested type.
<strong>throws:</strong> <code>DecodingError.valueNotFound</code> if the encountered encoded value
  is null.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func decode(_ type: