DirectlyEncodable

public protocol DirectlyEncodable : Encodable

Implement this protocol if a type is supported directly by the Translator.

MetaSerialization will throw an error, if a translator does not support your type directly.

  • encode(to:) Extension method

    Declaration

    Swift

    func encode(to encoder: Encoder) throws