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