GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation.fromJson constructor

GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation.fromJson(
    core.Map _json)
    : this(
        datasetErrorCount: _json.containsKey('datasetErrorCount')
            ? _json['datasetErrorCount'] as core.int
            : null,
        datasetErrors: _json.containsKey('datasetErrors')
            ? (_json['datasetErrors'] as core.List)
                .map<GoogleRpcStatus>((value) => GoogleRpcStatus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        documentErrorCount: _json.containsKey('documentErrorCount')
            ? _json['documentErrorCount'] as core.int
            : null,
        documentErrors: _json.containsKey('documentErrors')
            ? (_json['documentErrors'] as core.List)
                .map<GoogleRpcStatus>((value) => GoogleRpcStatus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );