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