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