Raw
1 //
2 // TWTRJSONConvertible.h
3 // TwitterKit
4 //
5 // Copyright © 2016 Twitter. All rights reserved.
6 //
7
8 #import <Foundation/Foundation.h>
9
10 NS_ASSUME_NONNULL_BEGIN
11
12 @protocol TWTRJSONConvertible <NSObject>
13
14 /**
15 * Initialize the receiver with its JSON object representation.
16 *
17 * @param dictionary the JSON object representing this object.
18 * @return the fully formed object or nil if the JSON is not valid.
19 */
20 - (nullable instancetype)initWithJSONDictionary:(NSDictionary *)dictionary;
21
22 @end
23
24 NS_ASSUME_NONNULL_END