Conforms to NSObject
Declared in NMBSerializer.h

Overview

The instance confirms this protocol is responsible to serialize the object can’t be translated to JSON directly.

Instance Methods

deserialize:attribute:ofEntity:context:

Deserialize the value with give information.

- (id)deserialize:(id)value attribute:(NSAttributeDescription *)attribute ofEntity:(NSEntityDescription *)entity context:(id)context

Parameters

value

The value should be deserialized.

attribute

From what attribute the value comes.

entity

To which entity the attribute belongs.

context

To identidy the caller of this method.

Return Value

The deserialized value.

Discussion

If you don’t want deserialize the value, just return it directly.

Declared In

NMBSerializer.h

serialize:attribute:ofEntity:context:

Serialize the value with given information.

- (id)serialize:(id)value attribute:(NSAttributeDescription *)attribute ofEntity:(NSEntityDescription *)entity context:(id)context

Parameters

value

The value should be serialized.

attribute

From what attribute the value comes.

entity

To which entity the attribute belongs.

context

To identidy the caller of this method.

Return Value

The serialized value.

Discussion

If you don’t want serialize the value, just return it directly.

Declared In

NMBSerializer.h