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