bodySpeechToTextV1SpeechToTextPostTimestampsGranularityListFromJson function

List<BodySpeechToTextV1SpeechToTextPostTimestampsGranularity> bodySpeechToTextV1SpeechToTextPostTimestampsGranularityListFromJson(
  1. List? bodySpeechToTextV1SpeechToTextPostTimestampsGranularity, [
  2. List<BodySpeechToTextV1SpeechToTextPostTimestampsGranularity>? defaultValue
])

Implementation

List<enums.BodySpeechToTextV1SpeechToTextPostTimestampsGranularity>
    bodySpeechToTextV1SpeechToTextPostTimestampsGranularityListFromJson(
  List? bodySpeechToTextV1SpeechToTextPostTimestampsGranularity, [
  List<enums.BodySpeechToTextV1SpeechToTextPostTimestampsGranularity>?
      defaultValue,
]) {
  if (bodySpeechToTextV1SpeechToTextPostTimestampsGranularity == null) {
    return defaultValue ?? [];
  }

  return bodySpeechToTextV1SpeechToTextPostTimestampsGranularity
      .map((e) =>
          bodySpeechToTextV1SpeechToTextPostTimestampsGranularityFromJson(
              e.toString()))
      .toList();
}