JSONCreated
public protocol JSONCreated
Portocol defining a standard method of creating an object from a SwiftyJSON
object.
-
Initialise this object using a
SwiftyJSON
object. If theJSON
object is incorrect, this should throw an error.Declaration
Swift
init(json:JSON) throws