JSONDecodable
public protocol JSONDecodable
Object that could be initialized from JSON object
-
Undocumented
Declaration
Swift
init?(json: JSON)
-
array(json:
Default implementation) Undocumented
Default Implementation
Try to get one object into an array with size equal to one. otherwise return nil
Declaration
Swift
static func array(json: JSON) -> [Self]?
-
init(data:
Extension method) Init object with Data
Declaration
Swift
public init?(data: Data)
-
init(string:
Extension methodusing: ) Init object with string
Declaration
Swift
public init?(string: String, using: String.Encoding = .utf8)
-
init(fileURL:
Extension method) Init using content of file
Declaration
Swift
public init?(fileURL: URL)