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