GoogleCloudDocumentaiV1OcrConfig.fromJson constructor

GoogleCloudDocumentaiV1OcrConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1OcrConfig.fromJson(core.Map json_)
  : this(
      advancedOcrOptions: (json_['advancedOcrOptions'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
      computeStyleInfo: json_['computeStyleInfo'] as core.bool?,
      disableCharacterBoxesDetection:
          json_['disableCharacterBoxesDetection'] as core.bool?,
      enableImageQualityScores:
          json_['enableImageQualityScores'] as core.bool?,
      enableNativePdfParsing: json_['enableNativePdfParsing'] as core.bool?,
      enableSymbol: json_['enableSymbol'] as core.bool?,
      hints: json_.containsKey('hints')
          ? GoogleCloudDocumentaiV1OcrConfigHints.fromJson(
              json_['hints'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      premiumFeatures: json_.containsKey('premiumFeatures')
          ? GoogleCloudDocumentaiV1OcrConfigPremiumFeatures.fromJson(
              json_['premiumFeatures'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );