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