textResponseFormatMimeTypeToString function

String textResponseFormatMimeTypeToString(
  1. TextResponseFormatMimeType value
)

Converts a TextResponseFormatMimeType enum value to a string.

Implementation

String textResponseFormatMimeTypeToString(TextResponseFormatMimeType value) {
  return switch (value) {
    TextResponseFormatMimeType.applicationJson => 'APPLICATION_JSON',
    TextResponseFormatMimeType.textPlain => 'TEXT_PLAIN',
    TextResponseFormatMimeType.unspecified => 'MIME_TYPE_UNSPECIFIED',
  };
}