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