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