tTSOutputFormatNullableListFromJson function

List<TTSOutputFormat>? tTSOutputFormatNullableListFromJson(
  1. List? tTSOutputFormat, [
  2. List<TTSOutputFormat>? defaultValue
])

Implementation

List<enums.TTSOutputFormat>? tTSOutputFormatNullableListFromJson(
  List? tTSOutputFormat, [
  List<enums.TTSOutputFormat>? defaultValue,
]) {
  if (tTSOutputFormat == null) {
    return defaultValue;
  }

  return tTSOutputFormat
      .map((e) => tTSOutputFormatFromJson(e.toString()))
      .toList();
}