TMBObjectDecodable

@protocol TMBObjectDecodable <NSObject>

Tamber Decodable Objects can be parsed from NSJSON Serialized API responses.

  • Parses a response from the Tamber API (in JSON format; represented as an NSDictionary) into an instance of the class. Returns nil if the object could not be decoded.

    Declaration

    Objective-C

    + (nullable instancetype)decodedObjectFromAPIResponse:
        (nullable NSDictionary *)response;

    Swift

    static func decodedObject(fromAPIResponse response: [AnyHashable : Any]?) -> Self?