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
responseA network response assocated with serialization
representationA key-value object representing parameters and child objects.
View on GitHub
Install in Dash
DKResponseObjectSerializable Protocol Reference