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