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.

  • Holds a list of Option objects. The setter is private, so it can only be assigned within this class.

    Declaration

    Swift

    public private(set) var options: [Option] { get }
  • 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.