DetectLanguageResponse.fromJson constructor

DetectLanguageResponse.fromJson(
  1. Map json_
)

Implementation

DetectLanguageResponse.fromJson(core.Map json_)
    : this(
        languages: json_.containsKey('languages')
            ? (json_['languages'] as core.List)
                .map((value) => DetectedLanguage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );