TranslateTextResponse.fromJson constructor

TranslateTextResponse.fromJson(
  1. Map json_
)

Implementation

TranslateTextResponse.fromJson(core.Map json_)
    : this(
        glossaryTranslations: json_.containsKey('glossaryTranslations')
            ? (json_['glossaryTranslations'] as core.List)
                .map((value) => Translation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        translations: json_.containsKey('translations')
            ? (json_['translations'] as core.List)
                .map((value) => Translation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );