Coerce a heterogeneous list of dropdown options into FilterOptions.
Bare strings become an option whose value and label are both the
string. Objects missing a label fall back to using value as the
displayed label. Useful when the <trace-filter options="...">
attribute contains JSON that may have been authored either way.
Coerce a heterogeneous list of dropdown options into FilterOptions.
Bare strings become an option whose
valueandlabelare both the string. Objects missing alabelfall back to usingvalueas the displayed label. Useful when the<trace-filter options="...">attribute contains JSON that may have been authored either way.