DBPAPERCursorSerializer

Objective-C

@interface DBPAPERCursorSerializer : NSObject

Swift

class DBPAPERCursorSerializer : NSObject

The serialization class for the Cursor struct.

  • Serializes DBPAPERCursor instances.

    Declaration

    Objective-C

    + (nullable NSDictionary<NSString *, id> *)serialize:
        (nonnull DBPAPERCursor *)instance;

    Swift

    class func serialize(_ instance: DBPAPERCursor) -> [String : Any]?

    Parameters

    instance

    An instance of the DBPAPERCursor API object.

    Return Value

    A json-compatible dictionary representation of the DBPAPERCursor API object.

  • Deserializes DBPAPERCursor instances.

    Declaration

    Objective-C

    + (nonnull DBPAPERCursor *)deserialize:
        (nonnull NSDictionary<NSString *, id> *)dict;

    Swift

    class func deserialize(_ dict: [String : Any]) -> DBPAPERCursor

    Parameters

    dict

    A json-compatible dictionary representation of the DBPAPERCursor API object.

    Return Value

    An instantiation of the DBPAPERCursor object.