BatchDetectDominantLanguageResponse.fromJson constructor
BatchDetectDominantLanguageResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BatchDetectDominantLanguageResponse.fromJson(
Map<String, dynamic> json) {
return BatchDetectDominantLanguageResponse(
errorList: (json['ErrorList'] as List)
.whereNotNull()
.map((e) => BatchItemError.fromJson(e as Map<String, dynamic>))
.toList(),
resultList: (json['ResultList'] as List)
.whereNotNull()
.map((e) => BatchDetectDominantLanguageItemResult.fromJson(
e as Map<String, dynamic>))
.toList(),
);
}