About Unions
Unions are abstract types that can be used to return one of a number of different objects. They are useful for defining a common set of fields that objects can implement.
Example
EmailEventTypeActionType
Actions are things to do upon a user interaction, such as tapping a button.
Possible types
Example
DeeplinkActionTypeBackendScreenType
A backend screen is the top-level container for mobile UI.
Example
ComponentListTypeCardItemType
Items are sections making up a card.
Example
TextTypeExample
StringCharacteristicValueTypeItemType
Items are sections making up a screen. They can be different types, hence Union.
Example
TextTypePaymentPreferenceUnion
One of PreferredInstructionType or UserManagedPaymentType
Possible types
Example
PreferredInstructionPossible types
Example
SmartFlexChargingErrorExample
SpecialCircumstanceRecordTypePossible types
Example
ElectricityFiltersOutput