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