ListSpeechSynthesisTasksOutput.fromJson constructor

ListSpeechSynthesisTasksOutput.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListSpeechSynthesisTasksOutput.fromJson(Map<String, dynamic> json) {
  return ListSpeechSynthesisTasksOutput(
    nextToken: json['NextToken'] as String?,
    synthesisTasks: (json['SynthesisTasks'] as List?)
        ?.whereNotNull()
        .map((e) => SynthesisTask.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}