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