SingleSelectCollector
public class SingleSelectCollector : ValidatedCollector, @unchecked Sendable
A class representing a DROPDOWN or RADIO type with SINGLE_SELECT inputType.
Inherits from ValidatedCollector
and is used to collect multiple values from a list of options.
-
Initializes the
SingleSelectCollector
with the given input.Declaration
Swift
public required init(with json: [String : Any])
Parameters
json
A dictionary representing the JSON object to parse.