TranslateDocumentRequest.fromJson constructor
TranslateDocumentRequest.fromJson(
- Map json_
Implementation
TranslateDocumentRequest.fromJson(core.Map json_)
: this(
customizedAttribution: json_['customizedAttribution'] as core.String?,
documentInputConfig:
json_.containsKey('documentInputConfig')
? DocumentInputConfig.fromJson(
json_['documentInputConfig']
as core.Map<core.String, core.dynamic>,
)
: null,
documentOutputConfig:
json_.containsKey('documentOutputConfig')
? DocumentOutputConfig.fromJson(
json_['documentOutputConfig']
as core.Map<core.String, core.dynamic>,
)
: null,
enableRotationCorrection:
json_['enableRotationCorrection'] as core.bool?,
enableShadowRemovalNativePdf:
json_['enableShadowRemovalNativePdf'] as core.bool?,
glossaryConfig:
json_.containsKey('glossaryConfig')
? TranslateTextGlossaryConfig.fromJson(
json_['glossaryConfig']
as core.Map<core.String, core.dynamic>,
)
: null,
isTranslateNativePdfOnly:
json_['isTranslateNativePdfOnly'] as core.bool?,
labels: (json_['labels'] as core.Map<core.String, core.dynamic>?)?.map(
(key, value) => core.MapEntry(key, value as core.String),
),
model: json_['model'] as core.String?,
sourceLanguageCode: json_['sourceLanguageCode'] as core.String?,
targetLanguageCode: json_['targetLanguageCode'] as core.String?,
);