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