build method
override
Implementation
@override
Map<String, Object?> build() => {
...super.build(),
'custom_id': customId,
if (options != null) 'options': options?.map((e) => e.build()).toList(),
if (channelTypes != null) 'channel_types': channelTypes?.map((e) => e.value).toList(),
if (placeholder != null) 'placeholder': placeholder,
if (defaultValues != null) 'default_values': defaultValues!.map((e) => e.build()).toList(),
if (minValues != null) 'min_values': minValues,
if (maxValues != null) 'max_values': maxValues,
if (isDisabled != null) 'disabled': isDisabled,
};