BDPJSONDeserializable

Objective-C

@protocol BDPJSONDeserializable <NSObject>

Swift

protocol BDPJSONDeserializable : NSObjectProtocol

Any object can be Json-deserialized and instantiated from a Json Dictionary

  • Declaration

    Objective-C

    - (nonnull instancetype)initWithDictionary:(nonnull NSDictionary *)dictionary;

    Swift

    init(dictionary: [AnyHashable : Any])

    Parameters

    dictionary

    The Json dictionary used for deserialization

    Return Value

    an instance of the object with details parsed from the input dictionary