toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (customizedAttribution != null)
        'customizedAttribution': customizedAttribution!,
      if (documentInputConfig != null)
        'documentInputConfig': documentInputConfig!,
      if (documentOutputConfig != null)
        'documentOutputConfig': documentOutputConfig!,
      if (enableRotationCorrection != null)
        'enableRotationCorrection': enableRotationCorrection!,
      if (enableShadowRemovalNativePdf != null)
        'enableShadowRemovalNativePdf': enableShadowRemovalNativePdf!,
      if (glossaryConfig != null) 'glossaryConfig': glossaryConfig!,
      if (isTranslateNativePdfOnly != null)
        'isTranslateNativePdfOnly': isTranslateNativePdfOnly!,
      if (labels != null) 'labels': labels!,
      if (model != null) 'model': model!,
      if (sourceLanguageCode != null)
        'sourceLanguageCode': sourceLanguageCode!,
      if (targetLanguageCode != null)
        'targetLanguageCode': targetLanguageCode!,
    };