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