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