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