GetVocabularyResponse.fromJson constructor

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

Implementation

factory GetVocabularyResponse.fromJson(Map<String, dynamic> json) {
  return GetVocabularyResponse(
    downloadUri: json['DownloadUri'] as String?,
    failureReason: json['FailureReason'] as String?,
    languageCode: (json['LanguageCode'] as String?)?.toLanguageCode(),
    lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
    vocabularyName: json['VocabularyName'] as String?,
    vocabularyState:
        (json['VocabularyState'] as String?)?.toVocabularyState(),
  );
}