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 the JSON object is incorrect, this should throw an error.

    Declaration

    Swift

    init(json:JSON) throws