aSRInputFormatListFromJson function

List<ASRInputFormat> aSRInputFormatListFromJson(
  1. List? aSRInputFormat, [
  2. List<ASRInputFormat>? defaultValue
])

Implementation

List<enums.ASRInputFormat> aSRInputFormatListFromJson(
  List? aSRInputFormat, [
  List<enums.ASRInputFormat>? defaultValue,
]) {
  if (aSRInputFormat == null) {
    return defaultValue ?? [];
  }

  return aSRInputFormat
      .map((e) => aSRInputFormatFromJson(e.toString()))
      .toList();
}