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