TranslateDocumentResponse.fromJson constructor

TranslateDocumentResponse.fromJson(
  1. Map json_
)

Implementation

TranslateDocumentResponse.fromJson(core.Map json_)
    : this(
        documentTranslation: json_.containsKey('documentTranslation')
            ? DocumentTranslation.fromJson(json_['documentTranslation']
                as core.Map<core.String, core.dynamic>)
            : null,
        glossaryConfig: json_.containsKey('glossaryConfig')
            ? TranslateTextGlossaryConfig.fromJson(json_['glossaryConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        glossaryDocumentTranslation:
            json_.containsKey('glossaryDocumentTranslation')
                ? DocumentTranslation.fromJson(
                    json_['glossaryDocumentTranslation']
                        as core.Map<core.String, core.dynamic>)
                : null,
        model:
            json_.containsKey('model') ? json_['model'] as core.String : null,
      );