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