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