DKResponseListSerializable

public protocol DKResponseListSerializable

When applied to classes in Dropmark’s model, a class conforming to DKResponseListSerializable can be serialized from JSON into an array of objects.

  • Serializes a list of new objects (of a specified type) from the provided network response and key-value representation. The representation is validated for the required list.

    Declaration

    Swift

    static func list(from response: HTTPURLResponse, withRepresentation representation: Any) -> [Self]

    Parameters

    response

    A network response assocated with serialization

    representation

    A key-value object representing a list of objects.