interactionImageResponseFormatSizeToString function
Converts an InteractionImageResponseFormatSize to its JSON string.
Implementation
String interactionImageResponseFormatSizeToString(
InteractionImageResponseFormatSize value,
) {
return switch (value) {
InteractionImageResponseFormatSize.size512 => '512',
InteractionImageResponseFormatSize.size1k => '1K',
InteractionImageResponseFormatSize.size2k => '2K',
InteractionImageResponseFormatSize.size4k => '4K',
};
}