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