BatchTranslateDocumentRequest.fromJson constructor
BatchTranslateDocumentRequest.fromJson(
- Map json_
Implementation
BatchTranslateDocumentRequest.fromJson(core.Map json_)
: this(
customizedAttribution: json_['customizedAttribution'] as core.String?,
enableRotationCorrection:
json_['enableRotationCorrection'] as core.bool?,
enableShadowRemovalNativePdf:
json_['enableShadowRemovalNativePdf'] as core.bool?,
formatConversions: (json_['formatConversions']
as core.Map<core.String, core.dynamic>?)
?.map((key, value) => core.MapEntry(key, value as core.String)),
glossaries:
(json_['glossaries'] as core.Map<core.String, core.dynamic>?)?.map(
(key, value) => core.MapEntry(
key,
TranslateTextGlossaryConfig.fromJson(
value as core.Map<core.String, core.dynamic>,
),
),
),
inputConfigs:
(json_['inputConfigs'] as core.List?)
?.map(
(value) => BatchDocumentInputConfig.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
models: (json_['models'] as core.Map<core.String, core.dynamic>?)?.map(
(key, value) => core.MapEntry(key, value as core.String),
),
outputConfig:
json_.containsKey('outputConfig')
? BatchDocumentOutputConfig.fromJson(
json_['outputConfig'] as core.Map<core.String, core.dynamic>,
)
: null,
sourceLanguageCode: json_['sourceLanguageCode'] as core.String?,
targetLanguageCodes:
(json_['targetLanguageCodes'] as core.List?)
?.map((value) => value as core.String)
.toList(),
);