Deserializer

public protocol Deserializer

Deserializer protocol.

Additional deserializers (i.e. for unsupported file formats) may be used by implementing this protocol.

  • A unique name that identifies this deserializer.

    Declaration

    Swift

    var name: String
  • Function that deserializes raw data into a Foundation object.

    Declaration

    Swift

    func deserialize(data: Data) throws -> Any

    Parameters

    data

    The raw data to be deserialized.