BatchDetectDominantLanguageItemResult.fromJson constructor

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

Implementation

factory BatchDetectDominantLanguageItemResult.fromJson(
    Map<String, dynamic> json) {
  return BatchDetectDominantLanguageItemResult(
    index: json['Index'] as int?,
    languages: (json['Languages'] as List?)
        ?.whereNotNull()
        .map((e) => DominantLanguage.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}