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