GoogleCloudDocumentaiV1OcrConfig.fromJson constructor

GoogleCloudDocumentaiV1OcrConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1OcrConfig.fromJson(core.Map json_)
    : this(
        advancedOcrOptions: json_.containsKey('advancedOcrOptions')
            ? (json_['advancedOcrOptions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        computeStyleInfo: json_.containsKey('computeStyleInfo')
            ? json_['computeStyleInfo'] as core.bool
            : null,
        disableCharacterBoxesDetection:
            json_.containsKey('disableCharacterBoxesDetection')
                ? json_['disableCharacterBoxesDetection'] as core.bool
                : null,
        enableImageQualityScores:
            json_.containsKey('enableImageQualityScores')
                ? json_['enableImageQualityScores'] as core.bool
                : null,
        enableNativePdfParsing: json_.containsKey('enableNativePdfParsing')
            ? json_['enableNativePdfParsing'] as core.bool
            : null,
        enableSymbol: json_.containsKey('enableSymbol')
            ? json_['enableSymbol'] as core.bool
            : null,
        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,
      );