tTSOutputFormatFromJson function

TTSOutputFormat tTSOutputFormatFromJson(
  1. Object? tTSOutputFormat, [
  2. TTSOutputFormat? defaultValue
])

Implementation

enums.TTSOutputFormat tTSOutputFormatFromJson(
  Object? tTSOutputFormat, [
  enums.TTSOutputFormat? defaultValue,
]) {
  return enums.TTSOutputFormat.values
          .firstWhereOrNull((e) => e.value == tTSOutputFormat) ??
      defaultValue ??
      enums.TTSOutputFormat.swaggerGeneratedUnknown;
}