CreateVocabularyResponse.fromJson constructor

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

Implementation

factory CreateVocabularyResponse.fromJson(Map<String, dynamic> json) {
  return CreateVocabularyResponse(
    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(),
  );
}