DescribeVoicesOutput.fromJson constructor

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

Implementation

factory DescribeVoicesOutput.fromJson(Map<String, dynamic> json) {
  return DescribeVoicesOutput(
    nextToken: json['NextToken'] as String?,
    voices: (json['Voices'] as List?)
        ?.whereNotNull()
        .map((e) => Voice.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}