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