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