Captainup
2.4
|
#import <CPTObject.h>
Instance Methods | |
(nonnull instancetype) | - initWithDictionary: |
(nonnull NSDictionary< NSString *, id > *) | - toDictionary |
Properties | |
NSDictionary< NSString *, id > * | sourceDictionary |
A protocol which all captain up entity classes conform to. It exposes the original JSON Dictionary that the entity was created from.
|
optional |
If the CPTObject is based on a Captain Up API Object , then it also must know how to initialize itself from a JSON dictionary
dictionary | source dictionary |
|
optional |
Any CPTObject must know how to transform itself to a JSON dictionary
|
readoptionalnonatomicassign |
Use this dictionary in case an attribute is missing from the actual entity protocol. For example, if an attribute was added to the Captain Up REST services, but it is not yet reflected in the iOS SDK. For all other situations, use the specific entity protocol properties.