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