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