Decodable

protocol Decodable
  • Helper method to decode Data to Decodable type.

    Throws

    Decoding error.

    Declaration

    Swift

    public static func decode(from data: Data) throws -> Self

    Parameters

    data

    data to decode.

    Return Value

    object of decodable type.