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