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