AutoSerializable

public protocol AutoSerializable:Serializable

When a struct that conforms to AutoSerializable is serialized, its stored properties (those with types that conform to Serializable) are automatically included in the serialization.

-ss_serialize() and -init?(fromSerialized:) are implemented in an extension; only -init?(withValuesForKeys:) needs to be implemented by the conforming struct.

  • init(fromSerialized:) Extension method

    Undocumented

    Declaration

    Swift

    public protocol AutoSerializable:Serializable