JSONNull
public final class JSONNull<T>: JSONDeserializer
Deserializer for null values.
Use this when you expect a value to be null, if it is not
a JSONError.unexpectedType will be thrown.
-
Output is
nil.Declaration
Swift
public typealias Deserialized = T? -
Returns
nil.Throws
Does not throw any errors.Declaration
Swift
public static func deserialize(null: NSNull) throws -> Deserialized
View on GitHub
Install in Dash
JSONNull Class Reference