JWJSONEncodable
@objc
public protocol JWJSONEncodable
Objects which need the ability to be converted into JSON conform to this protocol.
-
Calling this method converts the object into a
JSONObject.Declaration
Swift
func toJSONObject() -> JSONObjectReturn Value
A
JSONObjectrepresenting this object. -
Calling this method converts the
JSONObjectinto an object.Declaration
Swift
static func from(json: JSONObject) -> AnyObject?Return Value
An object, or
nilif it does not succeed.
JWJSONEncodable Protocol Reference