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