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