RawRepresentable
protocol RawRepresentable
-
An initializer to create an instance of
RawRepresentable
from aJSON
value. - parameter json: An instance ofJSON
. - throws: The initializer will throw an instance ofJSON.Error
if an instance ofRawRepresentable
cannot be created from theJSON
value that was passed to this initializer.Declaration
Swift
public init(json: JSON) throws
Parameters
json
An instance of
JSON
.