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