DBPAPERPaperApiBaseErrorSerializer
Objective-C
@interface DBPAPERPaperApiBaseErrorSerializer : NSObject
Swift
class DBPAPERPaperApiBaseErrorSerializer : NSObject
The serialization class for the DBPAPERPaperApiBaseError
union.
-
Serializes
DBPAPERPaperApiBaseError
instances.Declaration
Objective-C
+ (nullable NSDictionary<NSString *, id> *)serialize: (nonnull DBPAPERPaperApiBaseError *)instance;
Swift
class func serialize(_ instance: DBPAPERPaperApiBaseError) -> [String : Any]?
Parameters
instance
An instance of the
DBPAPERPaperApiBaseError
API object.Return Value
A json-compatible dictionary representation of the
DBPAPERPaperApiBaseError
API object. -
Deserializes
DBPAPERPaperApiBaseError
instances.Declaration
Objective-C
+ (nonnull DBPAPERPaperApiBaseError *)deserialize: (nonnull NSDictionary<NSString *, id> *)dict;
Swift
class func deserialize(_ dict: [String : Any]) -> DBPAPERPaperApiBaseError
Parameters
dict
A json-compatible dictionary representation of the
DBPAPERPaperApiBaseError
API object.Return Value
An instantiation of the
DBPAPERPaperApiBaseError
object.