MSALJsonDeserializable

Objective-C

@protocol MSALJsonDeserializable <NSObject>

Swift

protocol MSALJsonDeserializable : NSObjectProtocol

A protocol that objects adopt to provide deserialization from JSON.

  • Initialize with a JSON string.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithJsonString:(nonnull NSString *)jsonString
                                         error:(NSError *_Nullable *_Nullable)error;

    Swift

    init(jsonString: String, error: NSErrorPointer)

    Parameters

    jsonString

    JSON string to deserialize from.

    error

    The error that occurred during deserialization.