Translation.fromJson constructor

Translation.fromJson(
  1. Map json_
)

Implementation

Translation.fromJson(core.Map json_)
    : this(
        detectedLanguageCode: json_.containsKey('detectedLanguageCode')
            ? json_['detectedLanguageCode'] as core.String
            : null,
        glossaryConfig: json_.containsKey('glossaryConfig')
            ? TranslateTextGlossaryConfig.fromJson(json_['glossaryConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        model:
            json_.containsKey('model') ? json_['model'] as core.String : null,
        translatedText: json_.containsKey('translatedText')
            ? json_['translatedText'] as core.String
            : null,
      );