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