Class YMKMasstransitRouteSerializer

Instance Methods

- loadWithData:

Deserializes the route.

- saveWithRoute:

Serializes the route.

Method Detail

-loadWithData:

- (nullable YMKMasstransitRoute *)loadWithData:(nonnull NSData *)data 

Deserializes the route.

Returns:

Deserialized Route. Null in case of any errors.

-saveWithRoute:

- (nonnull NSData *)saveWithRoute:(nonnull YMKMasstransitRoute *)route 

Serializes the route.

Returns:

Route's serialized representation. Empty array in case of any errors.