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