Required Instance Methodswift 6.0.1Swift

    decode(_:)

    Decodes a single value of the given type.

    func decode(_ type: UInt.Type) throws -> UInt

    Parameters

    type

    The type to decode as.

    Returns

    A value of the requested type.

    Throws

    DecodingError.typeMismatch if the encountered encoded value cannot be converted to the requested type.

    DecodingError.valueNotFound if the encountered encoded value is null.

    Other requirements

    View members

    Hide members

    This section is hidden by default because it contains too many (18) members.

    Instance members

    Citizens in Swift

    Default implementations