GoogleCloudDocumentaiV1beta3BatchProcessRequest.fromJson constructor

GoogleCloudDocumentaiV1beta3BatchProcessRequest.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDocumentaiV1beta3BatchProcessRequest.fromJson(core.Map _json)
    : this(
        documentOutputConfig: _json.containsKey('documentOutputConfig')
            ? GoogleCloudDocumentaiV1beta3DocumentOutputConfig.fromJson(
                _json['documentOutputConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        inputConfigs: _json.containsKey('inputConfigs')
            ? (_json['inputConfigs'] as core.List)
                .map<GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig>(
                    (value) =>
                        GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchInputConfig
                            .fromJson(
                                value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        inputDocuments: _json.containsKey('inputDocuments')
            ? GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig.fromJson(
                _json['inputDocuments']
                    as core.Map<core.String, core.dynamic>)
            : null,
        outputConfig: _json.containsKey('outputConfig')
            ? GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig
                .fromJson(_json['outputConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        skipHumanReview: _json.containsKey('skipHumanReview')
            ? _json['skipHumanReview'] as core.bool
            : null,
      );