ListVocabulariesResponse.fromJson constructor

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

Implementation

factory ListVocabulariesResponse.fromJson(Map<String, dynamic> json) {
  return ListVocabulariesResponse(
    nextToken: json['NextToken'] as String?,
    status: (json['Status'] as String?)?.toVocabularyState(),
    vocabularies: (json['Vocabularies'] as List?)
        ?.whereNotNull()
        .map((e) => VocabularyInfo.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}