Use the Type field to determine which variant is active, then access the corresponding field:
switch inputsContent2.Type { case components.InputsContent2TypeArrayOfInputsContent1: // inputsContent2.ArrayOfInputsContent1 is populated case components.InputsContent2TypeStr: // inputsContent2.Str is populated case components.InputsContent2TypeAny: // inputsContent2.Any is populated}
⌘I
Assistant
Responses are generated using AI and may contain mistakes.