DKResponseObjectSerializable

public protocol DKResponseObjectSerializable

When applied to classes in Dropmark’s model, a class conforming to DKResponseObjectSerializable can serialize JSON into an object instance.

  • Serializes a new instance from the provided network response and key-value representation. The representation is validated for the required parameters, then fills in optional parameters as necessary.

    Declaration

    Swift

    init?(response: HTTPURLResponse, representation: Any)

    Parameters

    response

    A network response assocated with serialization

    representation

    A key-value object representing parameters and child objects.