ClassFamily

protocol ClassFamily : Decodable

To support a new class family, create an enum that conforms to this protocol and contains the different types.

  • The discriminator key.

    Declaration

    Swift

    static var discriminator: Discriminator { get }
  • Returns the class type of the object coresponding to the value.

    Declaration

    Swift

    func getType() -> AnyObject.Type