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