Inherits from NSObject
Conforms to RKObjectMappingOperationDelegate
Declared in RKObjectSerializer.h
RKObjectSerializer.m

Overview

Performs a serialization of an object and its relationships back into a dictionary representation according to the mappings specified. The transformed object is then enclosed in an RKRequestSerializable representation that is suitable for inclusion in an RKRequest.

Tasks

  • – serializedObject:

    Return a serialized representation of the source object by applying an object mapping with a target object type of NSMutableDictionary. The serialized object will contain attributes and relationships composed of simple KVC compliant Cocoa types.

  • – serializedObjectForMIMEType:error:

    Return a serialized representation of the source object by mapping it into a NSMutableDictionary and then encoding it into the destination MIME Type via an instance of RKParser that is registered for the specified MIME Type

  • – serializationForMIMEType:error:

    Return a request serialization for the source object by mapping it to an NSMutableDictionary, encoding the data via a parser into the specified MIME Type, and wrapping it into a serializable format that can be used as the params of an RKRequest or RKObjectLoader

Instance Methods

serializationForMIMEType:error:

Return a request serialization for the source object by mapping it to an NSMutableDictionary, encoding the data via a parser into the specified MIME Type, and wrapping it into a serializable format that can be used as the params of an RKRequest or RKObjectLoader

- (id<RKRequestSerializable>)serializationForMIMEType:(NSString *)mimeType error:(NSError **)error

Declared In

RKObjectSerializer.h

serializedObject:

Return a serialized representation of the source object by applying an object mapping with a target object type of NSMutableDictionary. The serialized object will contain attributes and relationships composed of simple KVC compliant Cocoa types.

- (NSMutableDictionary *)serializedObject:(NSError **)error

Declared In

RKObjectSerializer.h

serializedObjectForMIMEType:error:

Return a serialized representation of the source object by mapping it into a NSMutableDictionary and then encoding it into the destination MIME Type via an instance of RKParser that is registered for the specified MIME Type

- (NSString *)serializedObjectForMIMEType:(NSString *)MIMEType error:(NSError **)error

Declared In

RKObjectSerializer.h