ListThesauriResponse.fromJson constructor

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

Implementation

factory ListThesauriResponse.fromJson(Map<String, dynamic> json) {
  return ListThesauriResponse(
    nextToken: json['NextToken'] as String?,
    thesaurusSummaryItems: (json['ThesaurusSummaryItems'] as List?)
        ?.whereNotNull()
        .map((e) => ThesaurusSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}