JWJSONDecodable

@objc
public protocol JWJSONDecodable

An object that can decode itself from a JSONObject representation.

  • Returns a new object from the native JSON representation object.

    Declaration

    Swift

    @objc(initFromJSON:)
    init?(from json: JSONObject)

    Parameters

    json

    A JSONObject (alias for [String: Any]) representing the required data to construct a valid object.