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