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
responseA network response assocated with serialization
representationA key-value object representing a list of objects.
View on GitHub
Install in Dash
DKResponseListSerializable Protocol Reference