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