SingleValueCollector
open class SingleValueCollector : FieldCollector<String>, @unchecked Sendable
A class representing a single value collector,
Inheriting from FieldCollector and conforming to Collector.
-
The single value to collect.
Declaration
Swift
public var value: String -
Initializes the single value collector with the given input.
Declaration
Swift
public required init(with json: [String : Any])Parameters
jsonA dictionary representing the JSON element to parse.
-
Initializes the
SingleValueCollectorwith the given value.Declaration
Swift
public override func initialize(with value: Any)Parameters
valueThe value to initialize the collector with.
-
Declaration
Swift
public override func payload() -> String?
View on GitHub