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