KBAManagedObjectEntityMapping
@protocol KBAManagedObjectEntityMapping <NSObject>
Protocol for objects that map JSON keys to entity names.
-
Return the entity name for JSON key. For example,
my_document
->MyDocument
.@parm JSONName The JSON name
Declaration
Objective-C
- (nonnull NSString *)entityNameForJSONEntityName:(nonnull NSString *)JSONName;
Return Value
The entity name
-
Return the JSON key for entity name. For example,
MyDocument
->my_document
.Declaration
Objective-C
- (nonnull NSString *)JSONEntityNameForEntityName: (nonnull NSString *)entityName;
Parameters
entityName
The entity name
Return Value
The JSON name