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